   * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #ff6b00;
            --secondary: #ffa500;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --accent: #0066cc;
            --text: #333;
            --white: #ffffff;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: var(--text);
            overflow-x: hidden;
        }

        /* Preloader */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .preloader.hide {
            opacity: 0;
            pointer-events: none;
        }

        .sun-loader {
            width: 80px;
            height: 80px;
            border: 6px solid var(--secondary);
            border-top: 6px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Top Bar */
        .top-bar {
            background: var(--dark);
            color: white;
            padding: 0.7rem 0;
            font-size: 0.9rem;
        }

        .top-bar .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .top-bar-left, .top-bar-right {
            display: flex;
            gap: 2rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .top-bar a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

        .top-bar a:hover {
            color: var(--secondary);
        }

        /* Navigation */
        nav {
            position: sticky;
            top: 0;
            width: 100%;
            background: white;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        nav.scrolled {
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        nav .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary);
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
        }

        .logo-text span {
            color: var(--dark);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2.5rem;
            align-items: center;
        }

        nav a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: color 0.3s;
        }

        nav a:hover {
            color: var(--primary);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s;
        }

        nav a:hover::after {
            width: 100%;
        }

        .nav-cta {
            background: var(--primary);
            color: white !important;
            padding: 0.7rem 1.5rem;
            border-radius: 30px;
            transition: all 0.3s;
        }

        .nav-cta:hover {
            background: var(--secondary);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
        }

        .nav-cta::after {
            display: none;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: 1.8rem;
            color: var(--dark);
            cursor: pointer;
        }

        /* AUTH PAGE  (login.html) */
   body.auth-page {
       background: var(--light);
   }

   .auth-page-body {
       display: grid;
       grid-template-columns: 1fr 1fr;
       min-height: calc(100vh - 160px);
   }

   /* Left branding panel */
   .auth-left-panel {
       background: linear-gradient(145deg, var(--dark) 0%, #003d80 100%);
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 4rem 3rem;
       color: white;
       position: relative;
       overflow: hidden;
   }

   .auth-left-panel::before {
       content: '';
       position: absolute;
       bottom: -80px;
       right: -80px;
       width: 360px;
       height: 360px;
       background: radial-gradient(circle, rgba(255,107,0,0.2), transparent 70%);
       pointer-events: none;
   }

   .auth-brand-content {
       position: relative;
       z-index: 1;
       max-width: 380px;
   }

   .auth-brand-logo {
       font-size: 4rem;
       margin-bottom: 1rem;
   }

   .auth-brand-content h2 {
       font-size: 2.2rem;
       color: white;
       margin-bottom: 1rem;
   }

   .auth-brand-content h2 span {
       color: var(--secondary);
       font-weight: 400;
   }

   .auth-brand-content > p {
       opacity: 0.85;
       font-size: 1.05rem;
       line-height: 1.7;
       margin-bottom: 2rem;
   }

   .auth-benefits {
       list-style: none;
       margin-bottom: 2.5rem;
   }

   .auth-benefits li {
       padding: 0.6rem 0;
       font-size: 1rem;
       opacity: 0.9;
       border-bottom: 1px solid rgba(255,255,255,0.1);
   }

   .auth-benefits li:last-child {
       border-bottom: none;
   }

   .auth-partner-badge {
       display: inline-block;
       background: rgba(255,107,0,0.2);
       border: 1px solid rgba(255,107,0,0.5);
       border-radius: 30px;
       padding: 0.6rem 1.4rem;
       font-size: 0.9rem;
       color: var(--secondary);
   }

   /* Right form panel */
   .auth-right-panel {
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 3rem 2rem;
       background: var(--light);
   }

   .auth-form-card {
       background: white;
       border-radius: 20px;
       padding: 2.5rem;
       width: 100%;
       max-width: 440px;
       box-shadow: 0 10px 40px rgba(0,0,0,0.1);
   }

   /* Auth tabs */
   .auth-tabs {
       display: flex;
       background: var(--light);
       border-radius: 12px;
       padding: 5px;
       margin-bottom: 2rem;
       gap: 4px;
   }

   .auth-tab {
       flex: 1;
       padding: 0.7rem;
       border: none;
       border-radius: 9px;
       font-size: 1rem;
       font-weight: 600;
       cursor: pointer;
       background: transparent;
       color: #888;
       transition: all 0.25s;
       font-family: inherit;
   }

   .auth-tab.active {
       background: white;
       color: var(--primary);
       box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   }

   /* Auth forms */
   .auth-form h2 {
       font-size: 1.8rem;
       color: var(--dark);
       margin-bottom: 0.3rem;
   }

   .auth-subtitle {
       color: #888;
       font-size: 0.95rem;
       margin-bottom: 1.8rem;
   }

   .auth-field {
       margin-bottom: 1.2rem;
   }

   .auth-field label {
       display: block;
       font-weight: 600;
       color: var(--dark);
       margin-bottom: 0.5rem;
       font-size: 0.93rem;
   }

   .auth-field label small {
       font-weight: 400;
       color: #888;
   }

   .auth-input-wrap {
       position: relative;
       display: flex;
       align-items: center;
       border: 2px solid #ddd;
       border-radius: 10px;
       overflow: hidden;
       transition: border-color 0.3s;
   }

   .auth-input-wrap:focus-within {
       border-color: var(--primary);
       box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
   }

   .auth-input-icon {
       padding: 0 0.7rem;
       font-size: 1.1rem;
       background: var(--light);
       height: 100%;
       display: flex;
       align-items: center;
       align-self: stretch;
   }

   .auth-input-wrap input {
       flex: 1;
       border: none;
       outline: none;
       padding: 0.85rem 0.9rem;
       font-size: 1rem;
       color: var(--dark);
       font-family: inherit;
       background: white;
   }

   .toggle-pw {
       background: none;
       border: none;
       cursor: pointer;
       padding: 0 0.7rem;
       font-size: 1rem;
       color: #888;
       transition: color 0.2s;
   }

   .toggle-pw:hover {
       color: var(--primary);
   }

   /* Auth feedback */
   .auth-feedback {
       border-radius: 8px;
       padding: 0.8rem 1rem;
       font-size: 0.92rem;
       font-weight: 500;
       margin-bottom: 1rem;
   }

   .auth-feedback.success {
       background: #d4edda;
       color: #155724;
       border: 1px solid #c3e6cb;
   }

   .auth-feedback.error {
       background: #f8d7da;
       color: #721c24;
       border: 1px solid #f5c6cb;
   }

   .auth-submit-btn {
       width: 100%;
       padding: 1rem;
       font-size: 1.05rem;
       border-radius: 10px;
       margin-bottom: 1.2rem;
   }

   .auth-switch-link {
       text-align: center;
       font-size: 0.92rem;
       color: #666;
   }

   .auth-switch-link a {
       color: var(--primary);
       font-weight: 600;
       text-decoration: none;
   }

   .auth-switch-link a:hover {
       text-decoration: underline;
   }
      .auth-buttons {
       display: flex;
       gap: 0.75rem;
       align-items: center;
   }

   .btn-outline {
       background: transparent;
       color: var(--primary);
       border: 2px solid var(--primary);
       padding: 0.6rem 1.4rem;
       border-radius: 30px;
       font-weight: 600;
       text-decoration: none;
       transition: all 0.3s;
       display: inline-block;
   }

   .btn-outline:hover {
       background: var(--primary);
       color: white;
   }

   .btn-sm {
       padding: 0.4rem 1rem !important;
       font-size: 0.88rem !important;
   }

   /* ── User menu (shown when logged in) ── */
   .user-menu {
       display: flex;
       align-items: center;
       gap: 0.75rem;
   }

   .user-avatar {
       width: 38px;
       height: 38px;
       background: linear-gradient(135deg, var(--primary), var(--secondary));
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       color: white;
       font-weight: 700;
       font-size: 1rem;
       flex-shrink: 0;
   }

   .user-name {
       font-weight: 600;
       color: var(--dark);
       font-size: 0.95rem;
   }

   .auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
 
.auth-modal-overlay .auth-page-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: unset;
    max-height: 90vh;
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    overflow-y: auto;
}
 
/* Close button inside the modal */
.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}
.auth-modal-close:hover { color: var(--primary); }
 
.auth-form-card { position: relative; }
 

 
/* Responsive: stack auth panels on mobile */
@media (max-width: 680px) {
    .auth-modal-overlay .auth-page-body {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .auth-left-panel {
        padding: 2rem 1.5rem;
    }
    .auth-left-panel .auth-benefits,
    .auth-left-panel .auth-partner-badge {
        display: none; /* hide on very small screens to save space */
    }
}

        /* Hero Section */
        .hero {
            position: relative;
            min-height: 100vh;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 102, 204, 0.9)),
                        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,107,0,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
            background-size: cover;
            background-position: center;
            color: white;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.15), transparent 50%),
                        radial-gradient(circle at 80% 50%, rgba(0, 102, 204, 0.15), transparent 50%);
        }

        .hero-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 4rem 2rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-left h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            animation: fadeInLeft 1s ease;
        }

        .hero-left h1 span {
            color: var(--secondary);
        }

        .hero-left p {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            opacity: 0.95;
            animation: fadeInLeft 1s ease 0.2s backwards;
        }

        .partnership-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 0.8rem 1.5rem;
            border-radius: 30px;
            margin: 1.5rem 0;
            font-weight: 600;
            border: 2px solid rgba(255, 255, 255, 0.3);
            animation: fadeInLeft 1s ease 0.4s backwards;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
            animation: fadeInLeft 1s ease 0.6s backwards;
        }

        .btn {
            padding: 1rem 2.5rem;
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
        }

        .btn-primary:hover {
            background: var(--secondary);
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
        }

        .btn-secondary {
            background: white;
            color: var(--dark);
            border: 2px solid white;
        }

        .btn-secondary:hover {
            background: transparent;
            color: white;
            transform: translateY(-3px);
        }

        .hero-right {
            position: relative;
            animation: fadeInRight 1s ease 0.4s backwards;
        }

        .hero-image {
            position: relative;
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(0, 102, 204, 0.2));
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8rem;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

       

        /* Features Bar */
        .features-bar {
            background: white;
            padding: 3rem 2rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            margin-top: -50px;
            position: relative;
            z-index: 2;
        }

        .features-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
        }

        .feature-item {
            text-align: center;
            padding: 1.5rem;
            transition: transform 0.3s;
        }

        .feature-item:hover {
            transform: translateY(-10px);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: inline-block;
        }

        .feature-item h3 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        .feature-item p {
            color: #666;
            font-size: 0.95rem;
        }

        /* Services Section */
        .services {
            padding: 6rem 2rem;
            background: var(--light);
        }

        .services-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-subtitle {
            color: var(--primary);
            font-weight: 600;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.5rem;
        }

        .section-title {
            font-size: 2.8rem;
            color: var(--dark);
            margin-bottom: 1rem;
        }

        .section-description {
            font-size: 1.1rem;
            color: #666;
            max-width: 700px;
            margin: 0 auto;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .service-card {
            background: white;
            padding: 3rem 2rem;
            border-radius: 20px;
            text-align: center;
            transition: all 0.3s;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            border-color: var(--primary);
        }

       

        .service-card:hover .service-icon-box {
            transform: scale(1.1) rotate(5deg);
        }

        .service-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .service-card p {
            color: #666;
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .service-link {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: gap 0.3s;
        }

        .service-link:hover {
            gap: 1rem;
        }

/*calculation section*/

.calculator-promo-card {
       background: linear-gradient(135deg, var(--dark), #003d80);
       color: white;
       border: 2px solid var(--primary) !important;
   }

   .calculator-promo-card h3,
   .calculator-promo-card p {
       color: white;
   }

   .calculator-promo-card .service-icon-box {
       background: linear-gradient(135deg, var(--primary), var(--secondary));
   }

   .calc-cta-link {
       color: var(--secondary) !important;
       font-weight: 700;
   }

   

   /*  CALCULATOR PAGE STYLES */
   .calc-page body,
   body.calc-page {
       background: var(--light);
   }

   /* Calculator Hero */
   .calc-hero {
       background: linear-gradient(135deg, var(--dark) 0%, #003d80 100%);
       padding: 4rem 2rem 3rem;
       color: white;
       position: relative;
       overflow: hidden;
   }

   .calc-hero::before {
       content: '';
       position: absolute;
       top: -50%;
       right: -10%;
       width: 500px;
       height: 500px;
       background: radial-gradient(circle, rgba(255,107,0,0.15), transparent 70%);
       pointer-events: none;
   }

   .calc-hero-inner {
       max-width: 860px;
       margin: 0 auto;
       text-align: center;
       position: relative;
       z-index: 1;
   }

   .welcome-badge {
       display: inline-block;
       background: rgba(255,107,0,0.25);
       border: 1px solid rgba(255,107,0,0.5);
       color: var(--secondary);
       padding: 0.4rem 1.2rem;
       border-radius: 30px;
       font-size: 0.95rem;
       margin-bottom: 1.2rem;
   }

   .calc-hero h1 {
       font-size: 3rem;
       margin-bottom: 1rem;
       line-height: 1.2;
       color: white;
   }

   .calc-hero h1 span {
       color: var(--secondary);
   }

   .calc-hero p {
       font-size: 1.15rem;
       opacity: 0.9;
       max-width: 680px;
       margin: 0 auto;
       line-height: 1.7;
   }

   /* Calculator Section Layout */
   .calculator-section {
       padding: 4rem 2rem;
   }

   .calculator-container {
       max-width: 1200px;
       margin: 0 auto;
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 2.5rem;
       align-items: start;
   }

   .calc-section-title {
       font-size: 1.3rem;
       font-weight: 700;
       color: var(--dark);
       margin-bottom: 1.5rem;
       padding-bottom: 0.75rem;
       border-bottom: 3px solid var(--primary);
   }

   /* Input Cards */
   .input-card {
       background: white;
       border-radius: 14px;
       padding: 1.2rem 1.5rem;
       margin-bottom: 1rem;
       box-shadow: 0 2px 12px rgba(0,0,0,0.06);
       transition: box-shadow 0.3s;
   }

   .input-card:hover {
       box-shadow: 0 4px 20px rgba(255,107,0,0.12);
   }

   .input-card label {
       display: block;
       font-weight: 600;
       color: var(--dark);
       margin-bottom: 0.6rem;
       font-size: 0.95rem;
   }

  

   .input-wrapper {
       display: flex;
       align-items: center;
       border: 2px solid #e0e0e0;
       border-radius: 8px;
       overflow: hidden;
       transition: border-color 0.3s;
   }

   .input-wrapper:focus-within {
       border-color: var(--primary);
       box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
   }

   .input-prefix, .input-suffix {
       background: var(--light);
       padding: 0.7rem 0.9rem;
       color: #666;
       font-weight: 600;
       font-size: 0.9rem;
       white-space: nowrap;
   }

   .input-wrapper input {
       flex: 1;
       border: none;
       outline: none;
       padding: 0.7rem 0.9rem;
       font-size: 1rem;
       font-family: inherit;
       color: var(--dark);
   }

   .input-card select {
       width: 100%;
       padding: 0.7rem 0.9rem;
       border: 2px solid #e0e0e0;
       border-radius: 8px;
       font-size: 0.97rem;
       color: var(--dark);
       font-family: inherit;
       outline: none;
       transition: border-color 0.3s;
       background: white;
   }

   .input-card select:focus {
       border-color: var(--primary);
       box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
   }

   .input-hint {
       display: block;
       font-size: 0.8rem;
       color: #888;
       margin-top: 0.4rem;
   }

   /* Calculate Button */
   .btn-calculate {
       width: 100%;
       padding: 1.1rem;
       background: linear-gradient(135deg, var(--primary), var(--secondary));
       color: white;
       border: none;
       border-radius: 12px;
       font-size: 1.1rem;
       font-weight: 700;
       cursor: pointer;
       margin-top: 0.5rem;
       transition: all 0.3s;
       box-shadow: 0 6px 20px rgba(255,107,0,0.35);
       letter-spacing: 0.3px;
   }

   .btn-calculate:hover {
       transform: translateY(-3px);
       box-shadow: 0 12px 32px rgba(255,107,0,0.45);
   }

   .btn-calculate:active {
       transform: translateY(-1px);
   }

   /* Results Panel */
   .calc-results-panel {
       background: white;
       border-radius: 16px;
       padding: 2rem;
       box-shadow: 0 4px 24px rgba(0,0,0,0.08);
       position: sticky;
       top: 100px;
   }

   .results-placeholder {
       text-align: center;
       padding: 3rem 1rem;
       color: #888;
   }

   .placeholder-icon {
       font-size: 3.5rem;
       margin-bottom: 1rem;
       opacity: 0.5;
   }

   .results-placeholder p {
       font-size: 1rem;
       line-height: 1.7;
   }

   /* Results content */
   .results-header {
       text-align: center;
       margin-bottom: 1.5rem;
   }

   .results-icon {
       font-size: 2.5rem;
       margin-bottom: 0.5rem;
   }

   .results-header h4 {
       font-size: 1.4rem;
       color: var(--dark);
       margin-bottom: 0.3rem;
   }

   .results-sub {
       color: #888;
       font-size: 0.9rem;
   }

   .results-grid {
       display: grid;
       grid-template-columns: repeat(2, 1fr);
       gap: 1rem;
       margin-bottom: 1.5rem;
   }

   .result-metric {
       background: var(--light);
       border-radius: 12px;
       padding: 1rem;
       text-align: center;
       border-left: 4px solid var(--primary);
   }

   .result-value {
       display: block;
       font-size: 1.6rem;
       font-weight: 800;
       color: var(--primary);
       line-height: 1.1;
   }

   .result-label {
       display: block;
       font-size: 0.8rem;
       font-weight: 700;
       color: var(--dark);
       text-transform: uppercase;
       letter-spacing: 0.5px;
       margin: 0.25rem 0;
   }

   .result-detail {
       display: block;
       font-size: 0.78rem;
       color: #777;
   }

   .results-cost-section {
       margin-bottom: 1.5rem;
   }

   .results-cost-section h5 {
       font-size: 1rem;
       color: var(--dark);
       margin-bottom: 0.75rem;
       font-weight: 700;
   }

   .cost-table {
       width: 100%;
       border-collapse: collapse;
   }

   .cost-table td {
       padding: 0.5rem 0.4rem;
       font-size: 0.88rem;
       color: #444;
       border-bottom: 1px solid #f0f0f0;
   }

   .cost-table td:last-child {
       text-align: right;
       font-weight: 600;
       color: var(--dark);
   }

   .cost-table .total-row td {
       border-top: 2px solid var(--primary);
       font-weight: 800;
       font-size: 1rem;
       color: var(--primary);
       padding-top: 0.75rem;
   }

   

   .results-disclaimer {
       font-size: 0.78rem;
       color: #999;
       margin-top: 0.5rem;
   }

   .calc-warning {
       background: #fff3cd;
       color: #856404;
       border: 1px solid #ffc107;
       border-radius: 8px;
       padding: 0.8rem 1rem;
       font-size: 0.9rem;
       margin-bottom: 1rem;
   }

   /* Calculator Info Section */
   .calc-info-section {
       background: white;
       padding: 4rem 2rem;
       border-top: 1px solid #eee;
   }

   .calc-info-grid {
       max-width: 1200px;
       margin: 0 auto;
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 2rem;
   }

   .calc-info-card {
       text-align: center;
       padding: 2rem 1.5rem;
       border-radius: 16px;
       background: var(--light);
       transition: transform 0.3s;
   }

   .calc-info-card:hover {
       transform: translateY(-6px);
   }

   .calc-info-icon {
       font-size: 2.5rem;
       margin-bottom: 1rem;
   }

   .calc-info-card h4 {
       font-size: 1.1rem;
       color: var(--dark);
       margin-bottom: 0.75rem;
   }

   .calc-info-card p {
       font-size: 0.92rem;
       color: #666;
       line-height: 1.7;
   }

  
  

        /* Why Choose Us */
        .why-choose {
            padding: 6rem 2rem;
            background: white;
        }

        .why-choose-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .why-choose-content h2 {
            font-size: 2.5rem;
            color: var(--dark);
            margin-bottom: 1.5rem;
        }

        .why-choose-content p {
            color: #666;
            margin-bottom: 2rem;
            line-height: 1.8;
            font-size: 1.1rem;
        }

        .benefits-list {
            list-style: none;
        }

        .benefit-item {
            display: flex;
            align-items: start;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: var(--light);
            border-radius: 10px;
            transition: all 0.3s;
        }

        .benefit-item:hover {
            background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(0, 102, 204, 0.1));
            transform: translateX(10px);
        }

        .benefit-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            flex-shrink: 0;
        }

        .benefit-text h4 {
            font-size: 1.2rem;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .benefit-text p {
            color: #666;
            font-size: 0.95rem;
            margin: 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .stat-box {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            padding: 2.5rem;
            border-radius: 20px;
            color: white;
            text-align: center;
            box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
            transition: all 0.3s;
        }

        .stat-box:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4);
        }

        .stat-number {
            font-size: 3.5rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            display: block;
        }

        .stat-text {
            font-size: 1.1rem;
            opacity: 0.95;
        }

        /* About Section */
        .about {
            padding: 6rem 2rem;
            background: var(--light);
        }

        .about-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-top: 3rem;
        }

        .about-image {
            position: relative;
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(0, 102, 204, 0.2));
            border-radius: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .about-content h3 {
            font-size: 2rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .about-content p {
            color: #666;
            margin-bottom: 1.5rem;
            line-height: 1.8;
            font-size: 1.05rem;
        }

        .owner-info {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            margin-top: 2rem;
            border-left: 4px solid var(--primary);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .owner-info h4 {
            font-size: 1.5rem;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }

        .owner-info p {
            color: #666;
            font-size: 1.1rem;
            margin: 0;
        }

        /* Contact Section */
        .contact {
            padding: 6rem 2rem;
            background: white;
        }

        .contact-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .contact-info-box {
            background: linear-gradient(135deg, var(--dark), #0066cc);
            padding: 3rem;
            border-radius: 25px;
            color: white;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
        }

        .contact-info-box h3 {
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--secondary);
        }

        .contact-item {
            display: flex;
            align-items: start;
            gap: 1.5rem;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s;
        }

        .contact-item:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateX(10px);
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .contact-details h4 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--secondary);
        }

        .contact-details p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            line-height: 1.6;
        }

        .contact-form-box {
            background: var(--light);
            padding: 3rem;
            border-radius: 25px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .contact-form-box h3 {
            font-size: 2rem;
            color: var(--dark);
            margin-bottom: 2rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--dark);
            font-size: 1rem;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #ddd;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-btn {
            width: 100%;
            padding: 1.2rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
        }

        .submit-btn:active {
            transform: translateY(-1px);
        }


        @media (max-width: 480px) {
            .hero-left h1 {
                font-size: 2rem;
            }

            .btn {
                padding: 0.9rem 1.8rem;
                font-size: 1rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .stat-number {
                font-size: 2.5rem;
            }
        }

        /* Animations */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        .pulse {
            animation: pulse 2s ease-in-out infinite;
        }

        /* Loading Animation */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}



/* ── Pay Deposit Button (appears below calculator results) ── */
.pay-deposit-section {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #0e1a2e 0%, #1a1a2e 100%);
    border-radius: 16px;
    padding: 1.4rem 1.5rem 1rem;
    border: 1.5px solid rgba(255,107,0,0.25);
    position: relative;
    overflow: hidden;
}
.pay-deposit-section::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(255,107,0,0.15), transparent 70%);
    pointer-events: none;
}
.pay-deposit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.pay-deposit-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.pay-deposit-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,165,0,0.85);
}
.pay-deposit-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.pay-deposit-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.1rem;
}
.btn-pay-deposit {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(255,107,0,0.35);
    flex-shrink: 0;
    font-family: inherit;
    text-align: left;
    min-width: 240px;
}
.btn-pay-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255,107,0,0.5);
}
.btn-pay-deposit:active  { transform: translateY(0); }
.btn-pay-deposit:disabled { cursor: not-allowed; opacity: 0.85; transform: none; }
.pay-btn-icon  { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.pay-btn-text  { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }
.pay-btn-text strong { font-size: 0.95rem; font-weight: 800; color: #fff; display: block; }
.pay-btn-text small  { font-size: 0.75rem; color: rgba(255,255,255,0.75); display: block; }
.pay-btn-arrow { font-size: 1.2rem; color: rgba(255,255,255,0.7); flex-shrink: 0; transition: transform 0.2s; }
.btn-pay-deposit:hover .pay-btn-arrow { transform: translateX(4px); }
.pay-deposit-note {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
}
@media (max-width: 600px) {
    .pay-deposit-top   { flex-direction: column; align-items: flex-start; }
    .btn-pay-deposit   { width: 100%; min-width: unset; }
    .pay-deposit-amount { font-size: 1.4rem; }
}


/* ── My Orders Section ── */
.orders-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}
.orders-page-header { margin-bottom: 2rem; }
.orders-page-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.orders-page-header p  { color: #888; font-size: 0.97rem; margin-top: 0.2rem; }


/* ── Summary Strip ── */
.orders-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.summary-card {
    background: white;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 8px 32px rgba(26,26,46,0.10);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
    transition: transform 0.2s;
}
.summary-card:hover { transform: translateY(-2px); }
.summary-card.orange { border-left-color: var(--primary); }
.summary-card.green  { border-left-color: #00c853; }
.summary-card.blue   { border-left-color: var(--accent); }
.summary-card.amber  { border-left-color: var(--secondary); }
.summary-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.summary-card.orange .summary-icon { background: rgba(255,107,0,0.10); }
.summary-card.green  .summary-icon { background: rgba(0,200,83,0.10); }
.summary-card.blue   .summary-icon { background: rgba(0,102,204,0.10); }
.summary-card.amber  .summary-icon { background: rgba(255,165,0,0.10); }
.summary-info strong {
    display: block;
    font-size: 1.4rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px;
}
.summary-info span { font-size: 0.82rem; color: #999; font-weight: 600; }


/* ── Filter Tabs ── */
.orders-filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 0.88rem; font-weight: 700; color: #888;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s;
}
.filter-tab:hover  { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: white; }


/* ── Loading / Error / Empty states ── */
.orders-loading {
    text-align: center;
    padding: 4rem 2rem;
    display: block;
}
.spinner {
    width: 48px; height: 48px;
    border: 5px solid #eee;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1rem;
}
.orders-loading p { color: #aaa; font-weight: 600; font-size: 0.95rem; }

.orders-error {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}
.orders-error p { color: #e53935; font-weight: 600; margin-bottom: 1rem; }

.orders-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26,26,46,0.10);
    display: none;
}
.orders-empty-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.orders-empty h3   { font-size: 1.4rem; color: var(--dark); font-weight: 800; margin-bottom: 0.5rem; }
.orders-empty p    { color: #999; margin-bottom: 1.5rem; }
.btn-go-calc {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-size: 0.97rem;
    box-shadow: 0 4px 16px rgba(255,107,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-go-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,0,0.4); }


/* ── Order List ── */
.orders-list { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Order Card ── */
.order-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26,26,46,0.10);
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
    border: 1.5px solid transparent;
    animation: cardIn 0.35s ease both;
}
.order-card:hover {
    box-shadow: 0 12px 40px rgba(255,107,0,0.13);
    transform: translateY(-2px);
    border-color: rgba(255,107,0,0.15);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.order-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.order-card-accent.blue  { background: linear-gradient(90deg, var(--accent), #00c6ff); }
.order-card-accent.green { background: linear-gradient(90deg, #00c853, #69f0ae); }
.order-card-accent.gray  { background: linear-gradient(90deg, #bbb, #ddd); }
.order-card-body { padding: 1.5rem 1.6rem 1.2rem; }

.order-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.order-ref {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem; font-weight: 700;
    color: var(--primary); letter-spacing: 0.5px; margin-bottom: 0.2rem;
}
.order-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.order-date  { font-size: 0.82rem; color: #aaa; margin-top: 0.15rem; }


/* ── Status Badge ── */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.9rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 800;
    white-space: nowrap; flex-shrink: 0;
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.status-badge.paid        { background: #e8faf0; color: #00c853; }
.status-badge.paid::before        { background: #00c853; }
.status-badge.pending     { background: #fff8e1; color: #e65100; }
.status-badge.pending::before     { background: var(--secondary); }
.status-badge.processing  { background: #e3f0ff; color: var(--accent); }
.status-badge.processing::before  { background: var(--accent); animation: pulseDot 1.2s ease-in-out infinite; }
.status-badge.canceled    { background: #fdecea; color: #e53935; }
.status-badge.canceled::before    { background: #e53935; }
@keyframes pulseDot {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.4; transform: scale(0.7); }
}


/* ── Spec Chips ── */
.order-specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.spec-chip {
    background: var(--light); border-radius: 10px;
    padding: 0.42rem 0.9rem; font-size: 0.84rem; font-weight: 600;
    color: #555; display: flex; align-items: center; gap: 0.35rem;
}
.spec-chip strong { color: var(--dark); }


/* ── Progress Bar ── */
.order-progress-wrap { margin-bottom: 1.2rem; }
.order-progress-label {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; font-weight: 700; color: #999; margin-bottom: 0.4rem;
}
.order-progress-label span:last-child { color: var(--accent); }
.order-progress-bar { height: 7px; background: #eee; border-radius: 99px; overflow: hidden; }
.order-progress-bar-fill {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.order-progress-bar-fill.blue { background: linear-gradient(90deg, var(--accent), #00c6ff); }


/* ── Step Timeline ── */
.order-steps {
    display: flex; align-items: flex-start;
    margin-bottom: 1.2rem; overflow-x: auto; padding-bottom: 0.3rem;
}
.step-item {
    display: flex; flex-direction: column; align-items: center;
    min-width: 80px; flex: 1; position: relative;
}
.step-item:not(:last-child)::after {
    content: ''; position: absolute;
    top: 13px; left: 50%; right: -50%;
    height: 2px; background: #eee; z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--primary); }
.step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    background: #eee; border: 2.5px solid #eee; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: #bbb; font-weight: 800;
}
.step-item.done   .step-dot { background: var(--primary); border-color: var(--primary); color: white; }
.step-item.active .step-dot { background: white; border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(0,102,204,0.12); }
.step-label { margin-top: 0.4rem; font-size: 0.72rem; font-weight: 700; color: #bbb; text-align: center; }
.step-item.done   .step-label { color: var(--primary); }
.step-item.active .step-label { color: var(--accent); }


/* ── M-Pesa Chip ── */
.mpesa-chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #e8faf0; border-radius: 8px;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem; color: #2e7d32; font-weight: 700;
    margin-top: 0.4rem;
}


/* ── Card Footer ── */
.order-card-footer {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 0.75rem; padding: 0.9rem 1.6rem 1.2rem;
    border-top: 1.5px solid #f2f2f2;
}
.order-amount-label { font-size: 0.78rem; color: #bbb; font-weight: 700; }
.order-amount-value { font-size: 1.35rem; font-weight: 700; color: var(--dark); }
.order-amount-sub   { font-size: 0.78rem; color: #aaa; margin-top: 0.1rem; }
.order-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn-action {
    padding: 0.5rem 1.1rem; border-radius: 50px;
    font-size: 0.86rem; font-weight: 700;
    cursor: pointer; font-family: inherit; border: none;
    transition: all 0.18s;
}
.btn-action.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; box-shadow: 0 3px 12px rgba(255,107,0,0.25);
}
.btn-action.primary:hover    { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,0,0.35); }
.btn-action.primary:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }
.btn-action.ghost {
    background: var(--light); color: #666; border: 1.5px solid #e0e0e0;
}
.btn-action.ghost:hover { border-color: var(--primary); color: var(--primary); }


/* ── Receipt Modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,46,0.55);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
    background: white; border-radius: 24px;
    max-width: 480px; width: 100%;
    box-shadow: 0 24px 80px rgba(26,26,46,0.25);
    overflow: hidden;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

.modal-header {
    padding: 1.5rem 1.8rem 1rem;
    border-bottom: 1.5px solid #f2f2f2;
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem;
    flex-shrink: 0;
}
.modal-header h3 { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.modal-header p  { font-size: 0.85rem; color: #999; margin-top: 0.2rem; }
.modal-close {
    background: none; border: none;
    font-size: 1.5rem; color: #bbb; cursor: pointer;
    transition: color 0.2s; flex-shrink: 0;
}
.modal-close:hover { color: var(--primary); }

.modal-body { padding: 1.4rem 1.8rem; overflow-y: auto; flex: 1; }

.receipt-logo { text-align: center; padding: 1rem 0 0.5rem; }
.receipt-logo .receipt-sun { font-size: 2.5rem; display: block; }
.receipt-logo h4  { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.receipt-logo span { font-size: 0.82rem; color: #aaa; }

.receipt-divider { border: none; border-top: 2px dashed #eee; margin: 1rem 0; }

.receipt-row {
    display: flex; justify-content: space-between;
    align-items: flex-start; padding: 0.5rem 0; font-size: 0.9rem;
}
.receipt-row .r-label { color: #888; font-weight: 600; flex-shrink: 0; }
.receipt-row .r-value { color: var(--dark); font-weight: 700; text-align: right; max-width: 60%; }
.receipt-row.total .r-label { color: var(--dark); font-size: 1rem; font-weight: 800; }
.receipt-row.total .r-value { font-size: 1.1rem; color: var(--primary); font-weight: 700; }

.receipt-status-block {
    margin: 1rem 0; text-align: center;
    padding: 1rem; background: #e8faf0; border-radius: 14px;
}
.receipt-status-block .rs-icon { font-size: 2rem; display: block; margin-bottom: 0.3rem; }
.receipt-status-block strong   { color: #2e7d32; font-size: 1rem; display: block; }
.receipt-status-block span     { font-size: 0.82rem; color: #555; }

.modal-footer {
    padding: 1rem 1.8rem 1.4rem;
    display: flex; gap: 0.75rem;
    border-top: 1.5px solid #f2f2f2; flex-shrink: 0;
}
.modal-footer .btn-action { flex: 1; text-align: center; }


/* ── Responsive ── */
@media (max-width: 600px) {
    .order-card-footer { flex-direction: column; align-items: flex-start; }
    .step-item  { min-width: 60px; }
    .step-label { font-size: 0.65rem; }
    .summary-info strong { font-size: 1.15rem; }
    .modal-box { border-radius: 18px; }
}