/* 
 * iOS Unlocker - Premium Styling
 * Theme: White & Blue Modern iOS Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0071e3;          /* Apple Blue */
    --primary-hover: #0077ed;
    --primary-light: rgba(0, 113, 227, 0.08);
    --secondary: #5856d6;        /* iOS Indigo */
    --accent: #2fbcf9;           /* Electric Blue */
    --dark: #1d1d1f;             /* Apple Dark Gray */
    --light: #f5f5f7;            /* Apple Light Gray */
    --white: #ffffff;
    --gray-border: #d2d2d7;
    --text-muted: #86868b;
    --success: #34c759;          /* iOS Green */
    --error: #ff3b30;            /* iOS Red */
    --warning: #ff9500;          /* iOS Orange */
    
    --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 20px 48px rgba(0, 113, 227, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --- Layout Components --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Header Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.logo img {
    height: 36px;
    width: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.2);
}

.btn-nav:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 120px 0;
    background: radial-gradient(circle at 80% 30%, rgba(0, 113, 227, 0.08) 0%, rgba(88, 86, 214, 0.04) 30%, transparent 60%),
                radial-gradient(circle at 20% 70%, rgba(88, 86, 214, 0.06) 0%, rgba(0, 198, 255, 0.03) 40%, transparent 70%),
                #ffffff;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--dark);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #00c6ff 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 113, 227, 0.1));
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 113, 227, 0.08);
    padding: 16px 24px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 113, 227, 0.2);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 15px 35px rgba(0, 113, 227, 0.05);
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 113, 227, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover .stat-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: -0.2px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0060c0 100%);
    color: var(--white);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Shining glass glint animation */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary:hover::before {
    left: 150%;
    transition: left 0.8s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 113, 227, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--dark);
    text-decoration: none;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    border: 1.5px solid var(--gray-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.btn-secondary:hover {
    background: rgba(0, 113, 227, 0.03);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Stunning glowing circle aura behind the iPhone mockup */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, rgba(88, 86, 214, 0.05) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.hero-image-wrapper img,
.floating-phone-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 113, 227, 0.12));
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
    transform: scale(1.25);
    mix-blend-mode: multiply; /* Полностью убирает белый/светлый фон картинки, делая его прозрачным! */
    border-radius: 0;
    box-shadow: none;
    z-index: 2;
}

.floating-phone-svg:hover,
.hero-image-wrapper img:hover {
    transform: translateY(-8px) rotateY(10deg) rotateX(5deg) scale(1.25);
    filter: drop-shadow(0 35px 60px rgba(0, 113, 227, 0.22));
}

@keyframes float {
    0% { transform: translateY(0px) rotateY(0deg) scale(1.25); }
    50% { transform: translateY(-12px) rotateY(2deg) rotateX(1deg) scale(1.25); }
    100% { transform: translateY(0px) rotateY(0deg) scale(1.25); }
}


/* --- Features Section --- */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafdff 100%);
    border: 1px solid rgba(0, 113, 227, 0.05);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    color: inherit;
    min-height: 290px;
}

/* Beautiful dynamic gradient line at the top of each card */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Stunning glowing circle inside top-right corner of each card */
.feature-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(0, 113, 227, 0) 70%);
    filter: blur(15px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    transform: scale(0.7);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 113, 227, 0.1), 0 0 0 1px rgba(0, 113, 227, 0.08) inset;
    border-color: rgba(0, 113, 227, 0.25);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
    transform: scale(1.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(0, 113, 227, 0.04);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 113, 227, 0.08);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 113, 227, 0.25);
    border-color: transparent;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Dynamic Action Link revealed on hover */
.feature-card .card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
}

.feature-card:hover .card-action {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover .card-action .arrow {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

/* Testimonials / Live Stream */
.trust-banner {
    background: linear-gradient(135deg, #0e1e38 0%, #020710 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.trust-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-stat h4 {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
}

.trust-stat p {
    color: #a1a1a6;
    font-size: 14px;
    margin-top: 4px;
}

/* --- Wizard / Forms UI --- */
.wizard-section {
    padding: 60px 0 100px 0;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

.wizard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.wizard-header {
    background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%);
    padding: 40px;
    color: var(--white);
    position: relative;
}

.wizard-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wizard-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

/* Progress bar indicator */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.progress-bar-fill {
    height: 100%;
    width: 25%;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wizard-body {
    padding: 40px;
}

/* Wizard Steps transitions */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step 1 Device Selector Buttons */
.device-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.device-btn {
    border: 2px solid var(--gray-border);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.device-btn svg {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.device-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.device-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.device-btn.selected svg {
    fill: var(--primary);
}

/* Standard Inputs styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-border);
    font-size: 15px;
    background-color: var(--light);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Love pub style mandatory checkboxes */
.checkbox-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-container span strong {
    color: var(--dark);
}

/* Step 4 Reason Items Grid */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.reason-btn {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.reason-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.reason-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.reason-grid .reason-btn:last-child {
    grid-column: span 2;
}

/* Wizard Footer Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px 40px;
    background: var(--light);
}

.wizard-footer button {
    padding: 12px 28px;
    font-size: 15px;
}

/* --- Payment Screen --- */
.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-summary-card {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 30px;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-border);
    padding-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    margin-top: 20px;
    border-top: 1px solid var(--gray-border);
    padding-top: 16px;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.credit-card-box {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card-header-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.payment-badge {
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.payment-methods-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pay-tab {
    flex: 1;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    background: var(--white);
    transition: var(--transition);
}

.pay-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Spinner loader overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

/* --- Drag and Drop File Uploader --- */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--gray-border);
    border-radius: var(--radius-md);
    background: var(--light);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.upload-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.upload-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.file-preview {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: none;
}

/* --- Post Submission Timeline Screen --- */
.timeline-card {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.success-icon-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.1);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
}

.timeline {
    margin: 40px 0;
    text-align: left;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 8px; left: 11px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--gray-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-border);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-border);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-item.done .timeline-dot {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15);
}

.timeline-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.timeline-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.timeline-item.active h4 {
    color: var(--primary);
}

/* --- Admin Panel --- */
.admin-layout {
    min-height: 100vh;
    background: var(--light);
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.admin-container {
    padding: 40px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary);
}

.admin-stat-card.success-border { border-left-color: var(--success); }
.admin-stat-card.warning-border { border-left-color: var(--warning); }
.admin-stat-card.danger-border { border-left-color: var(--error); }

.admin-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.admin-stat-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-table-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--light);
    font-size: 14px;
}

.admin-table th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-table tr:hover td {
    background-color: rgba(0, 113, 227, 0.01);
}

.status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.paid { background: rgba(52, 199, 89, 0.1); color: var(--success); }
.status-badge.pending { background: rgba(255, 149, 0, 0.1); color: var(--warning); }
.status-badge.processing { background: rgba(0, 113, 227, 0.1); color: var(--primary); }
.status-badge.completed { background: rgba(52, 199, 89, 0.1); color: var(--success); }
.status-badge.failed { background: rgba(255, 59, 48, 0.1); color: var(--error); }

.action-btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    border: none;
    background: none;
}

.action-btn:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Modal styling */
.admin-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.admin-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 30px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-field {
    font-size: 14px;
}

.modal-label {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.modal-val {
    color: var(--dark);
    font-weight: 500;
}

.modal-val.full-width {
    grid-column: span 2;
}

.modal-photos {
    grid-column: span 2;
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.photo-preview-box {
    flex: 1;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 150px;
    position: relative;
    background: var(--light);
}

.photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label-badge {
    position: absolute;
    bottom: 8px; left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 500;
}

/* Simulated Email popup alert */
.email-sim-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-left: 5px solid var(--primary);
    padding: 20px;
    z-index: 1100;
    transform: translateY(120%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.email-sim-popup.active {
    transform: translateY(0);
}

.email-sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.email-sim-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.email-sim-close {
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
}

.email-sim-body {
    font-size: 12px;
    color: var(--dark);
    max-height: 150px;
    overflow-y: auto;
    background: var(--light);
    padding: 10px;
    border-radius: var(--radius-sm);
}

/* --- Premium Responsive Grid Utilities & Spacing --- */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-12-08 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}
.grid-09-11 {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
}
.flex-column-mobile {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.payment-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
}
.grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.wizard-card-wide {
    max-width: 1280px !important;
    width: 100%;
}
.wizard-card-medium {
    max-width: 760px !important;
    width: 100%;
}
.container-wide {
    max-width: 1320px !important;
}
.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}
.bullet-item span {
    color: var(--success);
    font-size: 20px;
}

/* --- Responsive & Mobile Optimization CSS --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .grid-09-11 {
        grid-template-columns: 1fr 1.2fr;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 50px;
        padding-top: 20px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
        width: 100%;
        gap: 30px;
    }
    
    .hero-cta {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .hero-cta a {
        flex: 1;
        min-width: 200px;
        max-width: 280px;
    }

    .hero-image-wrapper img {
        transform: scale(1.05) !important;
        max-width: 80%;
        margin: 0 auto;
    }
    
    .cabinet-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .grid-09-11 {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .payment-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

@media (max-width: 768px) {
    /* Fluid Utilities collapsing */
    .grid-2col, .grid-12-08, .grid-summary {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .flex-column-mobile {
        flex-direction: column !important;
        gap: 16px !important;
    }

    /* Form boxes spacing optimization */
    .order-summary-card {
        padding: 20px !important;
    }
    
    .credit-card-box {
        padding: 20px 16px !important;
    }

    /* Header optimization for mobile (prevent link overlapping) */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 10px;
        gap: 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a, .nav-links span {
        font-size: 13.5px;
    }
    
    .btn-nav {
        padding: 8px 16px;
    }

    .user-profile-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .user-dropdown-menu {
        right: 50%;
        transform: translateX(50%) translateY(10px) scale(0.95);
        transform-origin: top center;
    }

    .user-menu-container:hover .user-dropdown-menu {
        transform: translateX(50%) translateY(0) scale(1);
    }
    
    /* Hero scaling */
    .hero {
        padding: 40px 0 60px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-tagline {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Wizard Cards full width on mobile */
    .wizard-card {
        border-radius: var(--radius-md);
    }
    
    .wizard-header {
        padding: 24px 20px;
    }
    
    .wizard-header h2 {
        font-size: 20px;
    }
    
    .wizard-body {
        padding: 24px 20px;
    }
    
    /* Keep device buttons side-by-side and elegant on mobile! */
    .device-select-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    
    .device-btn {
        padding: 18px 10px !important;
        font-size: 15px !important;
    }
    
    .device-btn svg {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Forms Stack */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Grid stack */
    .order-details-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    .cabinet-photos-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .cabinet-photo-box {
        height: 140px;
    }
    
    /* Elegant side-by-side wizard footer on mobile */
    .wizard-footer {
        padding: 16px 20px;
        flex-direction: row !important;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }
    
    .wizard-footer button {
        width: auto !important;
        flex: 1;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* Features stack */
    .features {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px;
    }
    
    .feature-icon {
        margin-bottom: 20px;
    }
    
    /* Table cards */
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 15px;
    }
    
    .stat-num {
        font-size: 26px;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
    
    .order-card {
        padding: 20px 16px;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .order-card-header div {
        text-align: center;
    }
    
    .order-card-header div h3 {
        font-size: 16px;
    }
    
    .order-card-header div + div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .order-card-header form {
        margin-right: 0 !important;
        width: 100%;
    }
    
    .order-card-header form button {
        width: 100%;
        justify-content: center;
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    .status-badge {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -20px;
    }
    
    .timeline::before {
        left: 17px;
    }
    
    .custom-delete-modal .modal-content {
        margin: 10px;
    }
    
    /* Stack lock reasons grid on small devices to avoid squeezing */
    .reason-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .reason-grid .reason-btn:last-child {
        grid-column: span 1 !important;
    }
}

/* Premium User Dropdown Navigation Styles */
.user-menu-container {
    list-style: none;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.user-profile-btn:hover {
    border-color: var(--primary);
    background: var(--light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
}

.avatar-gradient {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.2);
}

.profile-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.user-menu-container:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Glassmorphic Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
    z-index: 1000;
}

.user-menu-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.dropdown-phone {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    color: var(--dark);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item svg {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-item:hover svg {
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--error);
}

.dropdown-item.logout:hover {
    background: rgba(255, 59, 48, 0.06);
    color: var(--error);
}

.dropdown-item.logout:hover svg {
    color: var(--error);
}

.user-dropdown-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Features concept section dedicated wrapper */
.features-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.features-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.features-image-wrapper img:hover {
    transform: translateY(-4px) scale(1.01);
}
