/* =================================================================
   1. FONT DEFINITIONS & ROOT VARIABLES
   ================================================================= */
@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-ExtraLight.ttf') format('truetype');
  font-weight: 200;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-SemiBold.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Changa';
  src: url('/assets/fonts/changa/Changa-ExtraBold.ttf') format('truetype');
  font-weight: 800;
}

/* ================= Brand System: BBIQ (Raven + Neon Yellow) ================= */

/* 1) Typography base stays 'Changa' per your setup */

/* 2) Core Brand Yellow — extended scale */
:root {

    --font-family-base: 'Changa', sans-serif;
  /* Brand Yellow (complement of violet) */
  --primary-050: #FFFCE5;
  --primary-100: #FFF6B8;
  --primary-200: #FFEF7A;
  --primary-300: #FFE747;
  --primary-400: #FDE047; /* you had */
  --primary-500: #FFD60A; /* core brand */
  --primary-600: #F4C208;
  --primary-700: #E0AA06;
  --primary-800: #C18C04;
  --primary-900: #8F6402;
  --primary-950: #4A3200;

  /* 3) Raven Neutrals — charcoal with subtle blue hint (for text/UI chrome) */
  --raven-050: #F6F7F9;
  --raven-100: #ECEFF3;
  --raven-200: #D8DEE6;
  --raven-300: #B9C2CF;
  --raven-400: #8A94A3;
  --raven-500: #5C6673;
  --raven-600: #3E4651;
  --raven-700: #2B3139;
  --raven-800: #191E24;
  --raven-900: #0F1317;
  --raven-950: #0A0D10;

  /* 4) Accent Families (to break الرتابة مع الحفاظ على الهوية) */

  /* 4.a Violet (complement to yellow) — use for highlights/links/badges */
  --violet-050: #F7F3FF;
  --violet-100: #EDE4FF;
  --violet-200: #D8C6FF;
  --violet-300: #B79AFF;
  --violet-400: #9570FF;
  --violet-500: #7A4BFF; /* Raven Violet core */
  --violet-600: #6436E6;
  --violet-700: #5028BF;
  --violet-800: #3D2094;
  --violet-900: #2A1566;

  /* 4.b Teal (cool partner) — great for secondary CTAs & charts */
  --teal-050: #EFFFFC;
  --teal-100: #C8FFF5;
  --teal-200: #9AF6EA;
  --teal-300: #64E8DD;
  --teal-400: #33D2CC;
  --teal-500: #14B3B4; /* Raven Teal core */
  --teal-600: #0F8E91;
  --teal-700: #0C6F73;
  --teal-800: #0A565A;
  --teal-900: #083F42;

  /* 5) Status (tuned to sit next to brand yellow without تصادم) */
  --success-100: #E8F7EE;
  --success-500: #16A34A;
  --success-700: #0F6A2F;

  --info-100: #E9F4FF;
  --info-500: #1D7FEA;
  --info-700: #165FB2;

  --warning-100: #FFF7E6;
  --warning-500: #F59E0B; /* أدفأ من الأصفر الأساسي */
  --warning-700: #B45309;

  --danger-100: #FDECEC;
  --danger-500: #DC2626;
  --danger-700: #991B1B;

  /* 6) Surfaces (light/dark) */
  --surface-1: #FFFFFF;
  --surface-2: #FAFBFD;
  --surface-3: #F4F6FA;

  --surface-inverse-1: #0F1215; /* dark base */
  --surface-inverse-2: #171B20;
  --surface-inverse-3: #1F252B;

  /* 7) Text Tokens */
  --text-strong: var(--raven-900);
  --text-body: var(--raven-700);
  --text-muted: var(--raven-500);
  --text-inverse: #FFFFFF;

  /* 8) Borders & Focus */
  --border-soft: #E6EAF0;
  --border-strong: #C9D1DB;
  --focus-ring: var(--violet-500);

  /* 9) Brand Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-700) 100%);
  --grad-hero: linear-gradient(135deg, var(--violet-500) 0%, var(--teal-500) 100%);
  --grad-dark-glow: radial-gradient(1200px 600px at 20% -10%, rgba(122,75,255,0.25), transparent 60%),
                    radial-gradient(900px 500px at 110% 10%, rgba(20,179,180,0.25), transparent 60%);
}

/* 10) Example component tokens (optional but useful) */
:root {
  --btn-primary-bg: var(--primary-500);
  --btn-primary-fg: var(--raven-900);
  --btn-primary-hover: var(--primary-600);
  --btn-primary-active: var(--primary-700);

  --btn-secondary-bg: var(--teal-500);
  --btn-secondary-fg: #FFFFFF;
  --btn-secondary-hover: var(--teal-600);
  --btn-secondary-active: var(--teal-700);

  --link-color: var(--violet-600);
  --link-hover: var(--violet-500);

  --card-bg: var(--surface-1);
  --card-border: var(--border-soft);
  --card-shadow: 0 8px 24px rgba(15,19,23,0.08);
}



/* =================================================================
   2. GLOBAL STYLES & RESETS
   ================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  direction: rtl; /* For Arabic language */
}

body {
  font-family: var(--font-family-base);
  background-color: var(--white-color);
  color: var(--text-color-dark);
  line-height: 1.7;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  color: var(--text-color-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-600);
}

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

/* =================================================================
   3. LAYOUT: HEADER & FOOTER
   ================================================================= */
.main-header {
  background-color: var(--white-color);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-900);
  display: flex;
  align-items: center;
}
.logo img {
    max-height: 40px;
    margin-left: 10px;
}


.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-color-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-500);
    transition: width 0.3s ease;
}
.main-nav a.active,
.main-nav a:hover {
    color: var(--dark-900);
}
.main-nav a.active:after,
.main-nav a:hover:after {
    width: 100%;
}


.main-footer {
  background-color: var(--dark-800);
  color: var(--text-color-light);
  padding: 4rem 0;
  text-align: center;
}
.main-footer p {
    color: var(--gray-400);
    margin: 0;
}

/* =================================================================
   4. COMPONENTS: BUTTONS & CARDS
   ================================================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-500);
  color: var(--dark-900);
}
.btn-primary:hover {
    background-color: var(--primary-600);
    color: var(--dark-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 214, 10, 0.3);
}

.btn-dark {
  background-color: var(--dark-800);
  color: var(--white-color);
  border: 2px solid var(--dark-800);
}
.btn-dark:hover {
    background-color: transparent;
    color: var(--dark-800);
}

section {
    padding: 6rem 0;
}


/* =================================================================
   FINAL BBIQ HEADER STYLES
   ================================================================= */

/* --- 1. Main Bar Styling --- */
.bbiq-header {
    background-color: var(--raven-950);
    background-image: var(--grad-dark-glow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.75rem 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.bbiq-header.scrolled-header {
    background-image: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom-color: transparent;
}

/* --- 2. Logo & Brand Text --- */
.bbiq-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--surface-1);
}

.bbiq-header .navbar-brand img { height: 40px; width: auto; }

/* --- 3. Navigation Links (Applies to both Mobile & Desktop) --- */
.bbiq-header .nav-link {
    color: var(--raven-200);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    text-align: center;
}

.bbiq-header .nav-link:hover,
.bbiq-header .nav-link.active {
    color: var(--primary-500);
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--primary-900);
}

/* --- 4. Dropdown Menu (Desktop Only) --- */
.bbiq-header #desktopMenu .dropdown-menu {
    background-color: var(--surface-inverse-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}
.bbiq-header .dropdown-item {
    color: var(--raven-200);
    padding: 0.6rem 1.2rem;
}
.bbiq-header .dropdown-item:hover {
    color: var(--primary-500);
    background-color: rgba(255, 255, 255, 0.05);
}
.bbiq-header .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 5. Action Buttons --- */
.header-actions .btn-logout {
    font-size: 1.5rem;
    color: var(--raven-400);
    transition: color 0.3s ease;
}
.header-actions .btn-logout:hover {
    color: var(--surface-1);
}
.header-actions .btn-dark {
    background-color: transparent;
    border: 1px solid var(--raven-600);
    color: var(--raven-100);
}
.header-actions .btn-dark:hover {
    background-color: var(--raven-800);
    border-color: var(--raven-500);
    color: #fff;
}

/* --- 6. Mobile Toggler --- */
.bbiq-header .navbar-toggler {
    border: none;
    color: var(--raven-100);
    font-size: 2rem;
}
.bbiq-header .navbar-toggler:focus { box-shadow: none; }

/* --- 7. Mobile Menu Panel Styling --- */
.bbiq-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: calc(100% - 2rem);
    margin: 1rem auto 0;
    background-color: var(--raven-950);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.bbiq-mobile-menu .navbar-nav { flex-direction: column; }
.bbiq-mobile-menu .nav-link { transform: none; } /* Disable hover effect on mobile */
.bbiq-mobile-menu .header-actions {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}
.bbiq-mobile-menu .header-actions .btn-logout {
    color: var(--raven-200);
    font-size: 1rem;
    font-weight: 500;
}

/* =================================================================
   11. HERO SECTION V5 (NEW BRIGHT THEME)
   ================================================================= */

.hero-v5 {
    /* From dark to a soft, off-white surface */
    background-color: var(--surface-2); 
    position: relative;
    padding: 6rem 0;
    min-height: 95vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Background Glows adjusted for a light background */
.hero-v5-glow-1, .hero-v5-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px); /* Slightly less blur to be more present */
    z-index: 0;
}
.hero-v5-glow-1 { width: 600px; height: 600px; background-color: var(--violet-200); opacity: 0.6; top: -20%; left: 50%; transform: translateX(-50%); }
.hero-v5-glow-2 { width: 500px; height: 500px; background-color: var(--teal-200); opacity: 0.5; bottom: -20%; right: -10%; }

/* --- Text Content Styling --- */
.hero-v5-content {
    position: relative;
    z-index: 2;
    text-align: right; /* RTL */
}

.hero-v5-headline {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.25;
    /* Text color inverted to strong dark */
    color: var(--text-strong); 
    margin-bottom: 1.5rem;
}

.hero-v5-subheadline {
    font-size: 1.15rem;
    /* Text color inverted to standard body text */
    color: var(--text-body);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2.5rem;
}
.hero-v5-subheadline strong {
    /* Changed highlight color for better contrast on light bg */
    color: var(--violet-600);
}

.hero-v5-actions .btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
}

/* --- Visuals Column (Man & Orbs) --- */
.hero-v5-visuals {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-v5-man-image {
    position: relative;
    z-index: 5;
    max-width: 100%;
    max-height: 500px;
    /* Shadow adjusted for a light background */
    filter: drop-shadow(0 20px 30px rgba(15,19,23,0.15));
}

/* Floating App Orbs - Redesigned for light theme */
.app-orb {
    position: absolute;
    z-index: 10;
    width: 180px;
    padding: 1rem;
    /* From dark glass to a clean white card */
    background: var(--surface-1);
    /* Removed backdrop-filter as it's not needed */
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Using the standard brand card shadow */
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.app-orb:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(15,19,23,0.15);
}

.app-orb img {
    height: 35px;
    width: 35px;
}
.app-orb span {
    /* Text color inverted to dark */
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Positioning for each orb */
.orb-moda {
    top: 20%;
    left: 0;
    animation: float 6s ease-in-out infinite;
}
.orb-jewelry {
    top: 50%;
    right: -10%;
    animation: float 8s ease-in-out infinite alternate;
}
.orb-coin {
    bottom: 10%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .hero-v5 {
        padding: 4rem 0;
        text-align: center;
    }
    .hero-v5 .row {
        flex-direction: column-reverse; /* Show text below image on mobile */
    }
    .hero-v5-content {
        text-align: center;
        margin-top: 3rem;
    }
    .hero-v5-visuals {
        height: 400px; /* Smaller height */
    }
    .hero-v5-headline {
        font-size: 2.5rem; /* Smaller headline for mobile */
    }
    .app-orb {
        width: 160px;
        padding: 0.75rem;
    }
    .orb-jewelry { right: 0; }
}


/* =================================================================
   12. HOW IT WORKS SECTION (NEW BRIGHT THEME)
   ================================================================= */

.how-it-works-section {
    /* Changed to white background for a clean look */
    background-color: var(--surface-1);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* New reusable light title style */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}
.section-title h2 {
    /* Inverted to dark text */
    color: var(--text-strong);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-title p {
    /* Inverted to dark body text */
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The SVG path animation remains the same, it looks great on light! */
.timeline-path {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 0;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: draw-path 5s ease-out forwards;
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

/* Redesigned light cards */
.timeline-step {
    width: 260px;
    padding: 2rem;
    /* From dark glass to a clean white card */
    background: var(--surface-1);
    /* Removed backdrop-filter */
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    text-align: center;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-step:hover {
    transform: translateY(-15px);
    /* Using the standard brand card shadow for the hover effect */
    box-shadow: var(--card-shadow);
}

.timeline-step .step-icon {
    font-size: 2.5rem;
    /* Using a vibrant brand accent color */
    color: var(--violet-500);
    margin-bottom: 1rem;
}
.timeline-step .step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--raven-400); /* Muted gray still works well */
    margin-bottom: 0.5rem;
}
.timeline-step h3 {
    font-size: 1.25rem;
    /* Inverted to dark text */
    color: var(--text-strong);
    margin-bottom: 0.75rem;
}
.timeline-step p {
    font-size: 0.9rem;
    /* Inverted to dark body text */
    color: var(--text-body);
    line-height: 1.7;
}


/* --- Responsive Adjustments (No changes needed) --- */
@media (max-width: 991.98px) {
    .timeline-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .timeline-path {
        display: none;
    }
    .timeline-step {
        width: 100%;
        max-width: 400px;
    }
}

/* =================================================================
   13. STORE SECTION (BRIGHT & MODERN SHOWCASE)
   ================================================================= */

.store-section {
    /* Using a very subtle primary color for the background */
    background-color: var(--primary-050);
    padding: 6rem 0;
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Product Card Styling --- */
.product-card {
    background-color: var(--surface-1);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 4px 12px rgba(15, 19, 23, 0.04);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.card-image-wrapper {
    display: block;
    aspect-ratio: 1 / 1; /* Creates a perfect square */
    overflow: hidden;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.card-title a:hover {
    color: var(--primary-600);
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--violet-600);
}
.card-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}




/* =================================================================
   14. FEATURES SECTION (NEW BRIGHT & INTERACTIVE THEME)
   ================================================================= */
.features-section {
    /* Using a consistent off-white brand background */
    background-color: var(--surface-2);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.features-tabs-wrapper {
    background-color: var(--surface-1);
    border-radius: 24px;
    padding: 2rem;
    /* Using the standard brand card shadow */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-soft);
}

/* --- Tab Navigation Buttons --- */
.features-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.nav-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    background: transparent;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
}
.nav-btn:hover {
    border-color: var(--border-strong);
    background-color: var(--surface-2);
    transform: translateX(-5px); /* RTL */
}
.nav-btn.active {
    /* A bold, beautiful active state using the brand color */
    background-color: var(--primary-500);
    border-color: var(--primary-600);
    box-shadow: 0 10px 20px rgba(253, 224, 71, 0.2);
    transform: translateX(-10px); /* RTL */
}

.nav-btn-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background-color: var(--surface-1);
    color: var(--violet-600);
    transition: all 0.3s ease;
}
.nav-btn.active .nav-btn-icon {
    background-color: var(--surface-1);
    color: var(--raven-900);
    transform: rotate(-10deg) scale(1.1);
}

.nav-btn-text strong {
    display: block;
    font-weight: 600;
    color: var(--text-strong);
    transition: color 0.3s ease;
}
.nav-btn-text span {
    font-size: 0.9rem;
    color: var(--text-body);
    transition: color 0.3s ease;
}
.nav-btn.active .nav-btn-text strong,
.nav-btn.active .nav-btn-text span {
    color: var(--raven-900);
}

/* --- Tab Content Panes --- */
.features-content {
    position: relative;
    min-height: 400px;
}
.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* The BIG CHANGE: A bright, gradient background */
.tab-content-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
    background-image: linear-gradient(135deg, var(--violet-050) 0%, var(--teal-050) 100%);
    padding: 3rem;
    border-radius: 16px;
    overflow: hidden;
}
.tab-text {
    flex-basis: 50%;
    padding-right: 2rem; /* RTL */
}
.tab-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 1rem;
}
.tab-text p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
}
.tab-visual {
    flex-basis: 50%;
    text-align: center;
}
.tab-visual img {
    max-width: 100%;
    max-height: 350px;
    filter: drop-shadow(0 15px 25px rgba(15, 19, 23, 0.1));
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) {
    .features-tabs-wrapper { padding: 1.5rem; }
    .features-nav {
        flex-direction: row;
        margin-bottom: 2rem;
    }
    .nav-btn {
        flex-direction: column;
        text-align: center;
        flex: 1;
        gap: 0.5rem;
    }
    .nav-btn:hover, .nav-btn.active {
        transform: translateY(-5px);
    }
    .tab-content-inner {
        flex-direction: column-reverse;
        padding: 2rem;
        text-align: center;
    }
    .tab-text {
        padding-right: 0;
    }
}

/* --- Responsive Adjustments (IMPROVED) --- */
@media (max-width: 991.98px) {
    .features-tabs-wrapper { 
        padding: 1.5rem; 
    }

    /* CHANGED: Switched to a responsive grid for the navigation */
    .features-nav {
        display: grid;
        /* NEW: Creates an auto-fitting grid. Will show 3, 2, or 1 column based on space. */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .nav-btn {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .nav-btn:hover, .nav-btn.active {
        /* Changed to a more stable transform for mobile */
        transform: translateY(-5px) scale(1.02);
    }

    .tab-content-inner {
        flex-direction: column-reverse;
        padding: 2rem;
        text-align: center;
    }
    .tab-text {
        padding-right: 0;
    }
    /* ADDED: Slightly smaller heading for mobile to improve readability */
    .tab-text h3 {
        font-size: 1.75rem;
    }
}

/* =================================================================
   15. APPS SECTION (ENHANCED "BEAUTIFUL" THEME)
   ================================================================= */

.apps-section {
    background-color: var(--surface-1);
    padding: 6rem 0;
    position: relative; /* Needed for pseudo-elements */
    overflow: hidden;   /* Keeps glows contained */
}

/* SUBTLE BACKGROUND GLOWS */
.apps-section::before,
.apps-section::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}
.apps-section::before {
    width: 500px;
    height: 500px;
    background-color: var(--violet-500);
    top: -150px;
    left: -150px;
}
.apps-section::after {
    width: 500px;
    height: 500px;
    background-color: var(--teal-500);
    bottom: -200px;
    right: -200px;
}

/* Ensure container content is above the glows */
.apps-section .container {
    position: relative;
    z-index: 1;
}

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

.app-card {
    background-color: var(--surface-1);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(15, 19, 23, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Define a variable for the card's accent color */
    --card-accent-color: var(--raven-400); /* Default color */
    /* Add a thicker top border for the accent color */
    border-top: 4px solid var(--card-accent-color);
}

/* ENHANCED GLOW ON HOVER */
.app-card:hover {
    transform: translateY(-10px);
    /* A multi-layered shadow for the glow effect */
    box-shadow: 0 10px 30px rgba(15, 19, 23, 0.08),
                0 0 40px -10px var(--card-accent-color);
}

/* ACCENT COLORS FOR EACH APP */
.app-card--moda { --card-accent-color: var(--violet-500); }
.app-card--jewelry { --card-accent-color: var(--teal-500); }
.app-card--coin { --card-accent-color: var(--primary-500); }

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.card-logo { height: 60px; width: 60px; flex-shrink: 0; }
.card-title-group { text-align: right; }
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-strong);
    margin: 0;
}
.card-category {
    font-size: 0.9rem;
    /* Use the card's accent color for the category text */
    color: var(--card-accent-color);
    font-weight: 500;
}

.card-body { flex-grow: 1; }
.card-description {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.btn-download {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--surface-2);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-body);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}
.btn-download:hover {
    background-color: var(--surface-3);
    border-color: var(--border-strong);
    color: var(--text-strong);
}
.btn-download i { font-size: 1.2rem; }



/* =================================================================
   16. CALL TO ACTION (CTA) SECTION (VIBRANT GRADIENT THEME)
   ================================================================= */

.cta-section {
    /* THE BIG CHANGE: Switched to a vibrant brand gradient */
    background-image: var(--grad-hero); /* linear-gradient(135deg, var(--violet-500) 0%, var(--teal-500) 100%) */
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 24px; /* Optional: adds nice rounded corners if not full-width */
    margin: 0 1rem;      /* Optional: gives some space from screen edges */
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

/* New "bloom" glows for a premium feel */
.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
}
.cta-glow-1 {
    width: 600px;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.1); /* Soft white glow */
    opacity: 0.8;
    top: -50%;
    left: -20%;
}
.cta-glow-2 {
    width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.1); /* Soft white glow */
    opacity: 0.7;
    bottom: -60%;
    right: -20%;
}

.cta-headline {
    font-size: 3.2rem;
    font-weight: 700;
    /* Text inverted to white for high contrast */
    color: var(--surface-1);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Adds depth to text */
}

.cta-subheadline {
    font-size: 1.15rem;
    /* Using a slightly softer white for the subheadline */
    color: var(--raven-100);
    line-height: 1.8;
    margin-bottom: 3rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* The button style remains the same, as it contrasts perfectly */
.btn-cta {
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(253, 224, 71, 0.2); /* Yellow glow */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .cta-section {
        padding: 5rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }
    .cta-headline {
        font-size: 2.5rem;
    }
    .cta-subheadline {
        font-size: 1rem;
    }
    .btn-cta {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* =================================================================
   PAGE: ALL APPS (FINAL & FULLY RESPONSIVE THEME)
   ================================================================= */

/* --- 1. Hero Section --- */
.app-page-hero {
    background-color: var(--surface-2);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.app-hero-glow-1, .app-hero-glow-2 {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
}
.app-hero-glow-1 { width: 400px; height: 400px; background-color: var(--violet-200); top: -100px; left: -100px; opacity: 0.5; }
.app-hero-glow-2 { width: 400px; height: 400px; background-color: var(--teal-200); bottom: -150px; right: -150px; opacity: 0.4; }
.app-page-hero .container { position: relative; z-index: 1; }

.app-logos-cluster {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.app-logos-cluster img {
    height: 80px;
    width: 80px;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: subtle-bob 5s ease-in-out infinite;
}
.app-logos-cluster img:nth-child(2) { animation-delay: 0.3s; }
.app-logos-cluster img:nth-child(3) { animation-delay: 0.6s; }
@keyframes subtle-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-page-hero .display-4 {
    color: var(--text-strong);
    font-weight: 700;
}
.app-page-hero .lead {
    color: var(--text-body);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- 2. App Showcase --- */
.app-showcase-container { background-color: var(--surface-1); }
.app-showcase-item {
    padding: 6rem 0;
    transition: background-color 0.4s ease;
}
.app-showcase-item.theme-moda { background-color: var(--violet-050); }
.app-showcase-item.theme-jewelry { background-color: var(--surface-1); }
.app-showcase-item.theme-coin { background-color: var(--teal-050); }

/* Phone Mockup Style */
.phone-mockup {
    background: linear-gradient(145deg, var(--raven-800), var(--raven-950));
    padding: 12px;
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(15, 19, 23, 0.2), inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
    max-width: 450px; /* Constrain size on larger screens */
    margin: 0 auto; /* Center it */
}
.phone-screen {
    background: var(--raven-950);
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-details { padding: 0 2rem; }
.app-detail-logo { height: 60px; width: 60px; margin-bottom: 1rem; }
.app-details h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.app-title-accent {
    display: inline-block;
    width: 6px;
    height: 30px;
    border-radius: 3px;
    background-color: var(--text-muted);
}
.theme-moda .app-title-accent { background-color: var(--violet-500); }
.theme-jewelry .app-title-accent { background-color: var(--teal-500); }
.theme-coin .app-title-accent { background-color: var(--primary-500); }

.app-tagline { font-size: 1.2rem; font-weight: 500; color: var(--text-strong); margin-bottom: 1.5rem; }
.app-details p { font-size: 1.1rem; color: var(--text-body); line-height: 1.8; }
.app-features-list { list-style: none; padding: 0; margin: 2rem 0; }
.app-features-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1.1rem; color: var(--text-body); margin-bottom: 0.75rem; }
.app-features-list i { color: var(--teal-500); font-size: 1.2rem; }

.app-download-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-download { flex: 1; display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 0.75rem; background-color: var(--surface-2); border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--text-body); border: 1px solid var(--border-soft); transition: all 0.3s ease; }
.btn-download:hover { background-color: var(--surface-3); border-color: var(--border-strong); color: var(--text-strong); }
.btn-download i { font-size: 1.2rem; }

/* --- 3. Ecosystem Features --- */
.ecosystem-features { background-color: var(--surface-2); padding: 6rem 0; }
.eco-feature-card { background-color: var(--surface-1); border: 1px solid var(--border-soft); padding: 2.5rem; border-radius: 20px; text-align: center; height: 100%; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.eco-feature-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow); }
.eco-feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 20px; border: 2px solid transparent; background: var(--grad-hero) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); -webkit-mask-composite: destination-out; mask-composite: exclude; opacity: 0; transition: opacity 0.3s ease; }
.eco-feature-card:hover::before { opacity: 1; }
.eco-feature-icon { width: 60px; height: 60px; margin: 0 auto 1.5rem; border-radius: 16px; display: flex; align-items: center; justify-content: center; background-color: var(--violet-100); color: var(--violet-600); font-size: 2rem; }
.eco-feature-card h3 { color: var(--text-strong); font-weight: 600; margin-bottom: 0.75rem; }
.eco-feature-card p { color: var(--text-body); line-height: 1.7; }


/* =================================================================
   RESPONSIVE STYLES FOR ALL APPS PAGE
   ================================================================= */
@media (max-width: 991.98px) {
    /* --- Hero --- */
    .app-page-hero { padding: 4rem 0; }
    .app-logos-cluster img { height: 60px; width: 60px; }
    .app-page-hero .display-4 { font-size: 2.5rem; }

    /* --- Showcase --- */
    .app-showcase-item { padding: 4rem 0; }
    .app-showcase-item .row > div {
        margin-bottom: 3rem; /* Space between image and text */
    }
    .app-showcase-item .row > div:last-child {
        margin-bottom: 0;
    }
    .app-details {
        text-align: center;
        padding: 0;
    }
    .app-detail-logo {
        margin: 0 auto 1rem;
    }
    .app-details h2 {
        justify-content: center; /* Center the title and its accent */
        font-size: 2.2rem;
    }
    .app-features-list {
        display: inline-block; /* Allows centering */
        text-align: right; /* Keeps text aligned right inside the list */
    }
    .app-download-buttons {
        flex-direction: column; /* Stack download buttons */
    }

    /* --- Ecosystem --- */
    .ecosystem-features { padding: 4rem 0; }
    .eco-feature-card {
        margin-bottom: 2rem;
    }
}

/* =================================================================
   PAGE: DEDICATED APP LANDING PAGE (MODA)
   ================================================================= */

/* --- 1. Hero Section --- */
.app-landing-hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.app-landing-hero.theme-moda { background-color: var(--violet-050); }
.app-landing-hero .hero-logo { height: 80px; margin-bottom: 2rem; }
.app-landing-hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--text-strong); margin-bottom: 1rem; }
.app-landing-hero p.lead { max-width: 600px; margin: 0 auto 2rem; color: var(--text-body); }
.app-landing-hero .app-download-buttons { display: flex; justify-content: center; gap: 1rem; }

.hero-visuals {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visuals .phone-mockup { max-width: 300px; } /* Smaller phone */
.product-float {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    animation: subtle-bob 6s ease-in-out infinite;
}
.product-1 { top: 10%; right: 0; animation-delay: 0.5s; }
.product-2 { bottom: 10%; left: 0; }

/* --- 2. Process Section --- */
.app-process-section { background-color: var(--surface-1); padding: 6rem 0; }
.process-step {
    background-color: var(--surface-2);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-soft);
    height: 100%;
}
.process-step .step-icon {
    font-size: 3rem;
    color: var(--violet-500);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.process-step h3 { font-size: 1.5rem; color: var(--text-strong); margin-bottom: 0.75rem; }
.process-step p { color: var(--text-body); }

/* --- 3. Detailed Features --- */
.app-detailed-features .feature-item {
    padding: 6rem 0;
    background-color: var(--surface-1);
}
.app-detailed-features .feature-item:nth-child(even) {
    background-color: var(--surface-2);
}
.feature-item h3 { font-size: 2rem; font-weight: 700; color: var(--text-strong); margin-bottom: 1rem; }
.feature-item p { font-size: 1.1rem; color: var(--text-body); line-height: 1.8; }

/* --- 4. Gallery Section --- */
.app-gallery-section { padding: 6rem 0; background-color: var(--surface-1); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 1rem;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }


/* --- Responsive Adjustments for App Page --- */
@media (max-width: 991.98px) {
    .app-landing-hero { padding: 4rem 0; text-align: center; }
    .hero-content { margin-bottom: 4rem; }
    .hero-visuals { min-height: 350px; }
    .product-float { width: 120px; height: 120px; }
    
    .process-step, .feature-item .col-lg-6 { margin-bottom: 2rem; }
    .feature-item { padding: 4rem 0; text-align: center; }
    
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
}


/* =================================================================
   PAGE: DEDICATED APP LANDING PAGE (JEWELRY)
   ================================================================= */

/* --- 1. Hero Section Theming --- */
.app-landing-hero.theme-jewelry { 
    /* Using the TEAL theme color */
    background-color: var(--teal-050); 
}

/* --- 2. Process Section Theming --- */
.theme-jewelry ~ .app-process-section .process-step .step-icon {
    color: var(--teal-500);
}

/* NOTE: The following classes are reusable from the MODA page styles.
   If you have already added them, you don't need to add them again.
   If not, here they are for completeness.
*/

.app-landing-hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.app-landing-hero .hero-logo { height: 80px; margin-bottom: 2rem; }
.app-landing-hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--text-strong); margin-bottom: 1rem; }
.app-landing-hero p.lead { max-width: 600px; margin: 0 auto 2rem; color: var(--text-body); }
.app-landing-hero .app-download-buttons { display: flex; justify-content: center; gap: 1rem; }

.hero-visuals {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visuals .phone-mockup { max-width: 300px; }
.product-float {
    position: absolute;
    width: 200px;
    height: 200px;
    object-fit: cover;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    animation: subtle-bob 6s ease-in-out infinite;
}
.product-1 { top: 10%; right: 0; animation-delay: 0.5s; }
.product-2 { bottom: 10%; left: 0; }

.app-process-section { background-color: var(--surface-1); padding: 6rem 0; }
.process-step { background-color: var(--surface-2); padding: 2.5rem; border-radius: 20px; text-align: center; border: 1px solid var(--border-soft); height: 100%; }
.process-step .step-icon { font-size: 3rem; margin-bottom: 1.5rem; display: inline-block; }
.process-step h3 { font-size: 1.5rem; color: var(--text-strong); margin-bottom: 0.75rem; }
.process-step p { color: var(--text-body); }

.app-detailed-features .feature-item { padding: 6rem 0; background-color: var(--surface-1); }
.app-detailed-features .feature-item:nth-child(even) { background-color: var(--surface-2); }
.feature-item h3 { font-size: 2rem; font-weight: 700; color: var(--text-strong); margin-bottom: 1rem; }
.feature-item p { font-size: 1.1rem; color: var(--text-body); line-height: 1.8; }

.app-gallery-section { padding: 6rem 0; background-color: var(--surface-1); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; gap: 1rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

@media (max-width: 991.98px) {
    .app-landing-hero { padding: 4rem 0; text-align: center; }
    .hero-content { margin-bottom: 4rem; }
    .hero-visuals { min-height: 350px; }
    .product-float { width: 120px; height: 120px; }
    .process-step, .feature-item .col-lg-6 { margin-bottom: 2rem; }
    .feature-item { padding: 4rem 0; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
    .gallery-item.tall, .gallery-item.wide { grid-row: auto; grid-column: auto; }
}

/* =================================================================
   PAGE: DEDICATED APP LANDING PAGE (COIN)
   ================================================================= */

/* --- 1. Hero Section Theming --- */
.app-landing-hero.theme-coin { 
    /* Using the YELLOW theme color */
    background-color: var(--primary-050); 
}

/* --- 2. Process Section Theming --- */
.theme-coin ~ .app-process-section .process-step .step-icon {
    color: var(--primary-500);
}

/* --- 4. NEW: Digital Cards Showcase --- */
.digital-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.digital-card {
    background-color: var(--surface-2);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.digital-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}
.digital-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
}

/* NOTE: The following classes are reusable from the MODA/JEWELRY page styles.
   If you have already added them, you don't need to add them again.
*/

.app-landing-hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
/* ... Other .app-landing-hero styles ... */
.hero-visuals {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ... Other .hero-visuals styles ... */

.app-process-section { background-color: var(--surface-1); padding: 6rem 0; }
/* ... Other .process-step styles ... */

.app-detailed-features .feature-item { padding: 6rem 0; background-color: var(--surface-1); }
.app-detailed-features .feature-item:nth-child(even) { background-color: var(--surface-2); }
/* ... Other .feature-item styles ... */

.app-gallery-section { padding: 6rem 0; background-color: var(--surface-1); }


/* =================================================================
   PAGE: PRICING (FINAL "BEAUTIFUL" & CORRECTED THEME)
   ================================================================= */

/* --- 1. Pricing Hero & Toggle --- */
.pricing-hero {
    background-color: var(--surface-2);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.pricing-hero-glow-1, .pricing-hero-glow-2 { content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(120px); }
.pricing-hero-glow-1 { width: 400px; height: 400px; background-color: var(--violet-200); top: -100px; left: -100px; opacity: 0.5; }
.pricing-hero-glow-2 { width: 400px; height: 400px; background-color: var(--teal-200); bottom: -150px; right: -150px; opacity: 0.4; }
.pricing-hero .container { position: relative; z-index: 1; }

.billing-toggle { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; font-weight: 600; color: var(--text-muted); }
.billing-toggle > span { cursor: pointer; transition: color 0.3s ease; }
.billing-toggle > span.active { color: var(--text-strong); }
.toggle-switch { width: 50px; height: 28px; background-color: var(--raven-200); border-radius: 99px; padding: 4px; cursor: pointer; transition: background-color 0.3s ease; }
.toggle-knob { width: 20px; height: 20px; background-color: #fff; border-radius: 50%; transition: transform 0.3s ease; }
.toggle-knob.on-annual { transform: translateX(22px); }
.badge-save { background-color: var(--teal-100); color: var(--teal-700); font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 6px; margin-right: 0.5rem; }

/* --- 2. Pricing Section --- */
.pricing-section { padding: 5rem 0; background-color: var(--surface-1); }
.app-plans-group { margin-bottom: 5rem; }
.app-name-title { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 3rem; padding-bottom: 1rem; }
.app-name-title img { height: 40px; }
.app-name-title h2 { font-size: 2rem; font-weight: 700; color: var(--text-strong); margin: 0; }

.pricing-grid {
    display: grid;
    /* UPDATE: Smaller minimum card width */
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem; /* Slightly smaller gap */
    align-items: center;
}

/* --- Plan Card Design --- */
.plan-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-header { padding: 1.5rem; position: relative; }
.plan-header h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-strong); margin-bottom: 1rem; }
.plan-price { min-height: 55px; }
.price-amount { font-size: 2.5rem; font-weight: 700; color: var(--text-strong); }
.price-period { font-size: 0.9rem; color: var(--text-muted); }

.plan-body { padding: 1.5rem; flex-grow: 1; border-top: 1px solid var(--border-soft); }
.plan-features { list-style: none; padding: 0; margin: 0; }
.plan-features li { display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-body); }
.plan-features li i { color: var(--teal-500); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.plan-footer { padding: 1.5rem; }
.plan-footer .btn { padding: 0.8rem; font-weight: 600; }

/* --- ENHANCED & FIXED Featured Plan --- */
.plan-card.featured {
    transform: scale(1.05);
    border-color: var(--violet-300);
    box-shadow: 0 20px 40px -15px rgba(122, 75, 255, 0.25);
}
.badge-popular {
    background-color: var(--violet-500);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 1rem;
}
/* FIX: Removed the problematic gradient background */
.plan-card.featured .plan-header {
    /* ADDED: A beautiful gradient border at the top */
    border-top: 4px solid;
    border-image-slice: 1;
    border-image-source: var(--grad-hero);
    border-left: 0; border-right: 0; border-bottom: 1px solid var(--border-soft);
    padding-top: 1.25rem;
}

/* --- 3. FAQ Section --- */
.faq-section { background-color: var(--surface-2); padding: 5rem 0; }
.faq-item { background-color: var(--surface-1); padding: 1.5rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid var(--border-soft); }
.faq-item h4 { font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 0.75rem; }
.faq-item h4::before { content: '?'; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background-color: var(--violet-100); color: var(--violet-600); border-radius: 50%; font-weight: 700; }
.faq-item p { color: var(--text-body); margin: 0.5rem 0 0 2.25rem; }
.faq-contact { margin-top: 4rem; padding: 2rem; background-color: var(--surface-1); border: 1px solid var(--border-soft); border-radius: 16px; text-align: center; }
.faq-contact p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.faq-contact h3 { font-size: 1.8rem; color: var(--text-strong); margin-bottom: 1.5rem; }


/* =================================================================
   PAGE: BLOG INDEX (New 3-Column Design)
   ================================================================= */

/* --- 1. Hero Section (No changes) --- */
.page-hero { background-color: var(--surface-2); padding: 5rem 0; position: relative; overflow: hidden; }
.page-hero h1 { font-size: 3rem; color: var(--text-strong); font-weight: 700; }
.page-hero .lead { color: var(--text-body); max-width: 600px; margin: 1rem auto 0; }
.hero-glow-1, .hero-glow-2 { content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(120px); }
.hero-glow-1 { width: 400px; height: 400px; background-color: var(--violet-200); top: -100px; left: -100px; opacity: 0.5; }
.hero-glow-2 { width: 400px; height: 400px; background-color: var(--teal-200); bottom: -150px; right: -150px; opacity: 0.4; }
.page-hero .container { position: relative; z-index: 1; }

/* --- 2. Blog Section & Grid (Updated for 3 columns) --- */
.blog-section { padding: 5rem 0; background-color: var(--surface-1); }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 2rem;
}

/* --- 3. Post Card Design (Refined Style) --- */
.post-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 20px rgba(0,0,0,0.05);
}
.post-card-image {
    display: block;
    overflow: hidden;
}
.post-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img {
    transform: scale(1.05);
}
.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* Optional: New category tag style */
.post-category {
    display: inline-block;
    background-color: var(--violet-100);
    color: var(--violet-700);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}
.post-title a {
    color: var(--text-strong);
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-title a:hover { color: var(--violet-600); }
.post-excerpt {
    color: var(--text-body);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to the bottom */
}
.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.post-read-more {
    color: var(--violet-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.post-read-more:hover { color: var(--text-strong); }

/* --- 4. Custom Pagination (No changes) --- */
.pagination-wrapper { margin-top: 4rem; }
.pagination { display: flex; justify-content: center; list-style: none; padding: 0; }
.pagination li a, .pagination li span { display: block; padding: 0.75rem 1rem; margin: 0 0.25rem; border: 1px solid var(--border-soft); border-radius: 8px; background-color: var(--surface-1); color: var(--text-body); font-weight: 500; text-decoration: none; transition: all 0.3s ease; }
.pagination li a:hover { background-color: var(--surface-2); border-color: var(--border-strong); }
.pagination li.active span { background-color: var(--violet-500); border-color: var(--violet-500); color: #fff; cursor: default; }
.pagination li.disabled span { color: var(--raven-200); background-color: var(--surface-2); cursor: not-allowed; }

/* --- 5. Responsive for Blog (Updated for new grid) --- */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
/* =================================================================
   PAGE: BLOG SHOW (SINGLE POST)
   ================================================================= */

/* --- 1. Hero & Breadcrumbs --- */
.page-hero .breadcrumb {
    background: none;
    padding: 0;
    margin: 0 0 1rem 0;
    justify-content: center;
}
.breadcrumb-item a {
    color: var(--violet-600);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--text-muted);
}
.post-meta-header {
    color: var(--text-body);
    font-weight: 500;
    margin-top: 1rem;
}

/* --- 2. Post Layout --- */
.post-section {
    padding: 4rem 0;
    background-color: var(--surface-1);
}
.post-container {
    max-width: 800px;
    margin: 0 auto;
}
.post-featured-image {
    margin-bottom: 3rem;
}
.post-featured-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* --- 3. PROFESSIONAL POST CONTENT TYPOGRAPHY --- */
/* This is the most important part for a beautiful blog post */
.post-content {
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--text-body);
}
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-strong);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.75rem; }
.post-content h4 { font-size: 1.5rem; }

.post-content p { margin-bottom: 1.5rem; }
.post-content a {
    color: var(--violet-600);
    text-decoration: underline;
    font-weight: 500;
}
.post-content a:hover { color: var(--text-strong); }

.post-content ul, .post-content ol {
    padding-right: 2rem; /* RTL */
    margin-bottom: 1.5rem;
}
.post-content li { margin-bottom: 0.75rem; }

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--surface-2);
    border-right: 4px solid var(--violet-500); /* RTL */
    border-radius: 0 8px 8px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-strong);
}

/* --- 4. Post Footer --- */
.post-divider {
    border: 0;
    border-top: 1px solid var(--border-soft);
    margin: 3rem 0;
}
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.post-share span {
    font-weight: 600;
    color: var(--text-strong);
}
.share-links {
    display: flex;
    gap: 0.5rem;
}
.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text-body);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.share-links a:hover {
    background-color: var(--violet-500);
    border-color: var(--violet-500);
    color: #fff;
    transform: translateY(-3px);
}

.back-to-blog {
    text-align: center;
    margin-top: 4rem;
}
.back-to-blog a {
    font-weight: 600;
    color: var(--violet-600);
    text-decoration: none;
    transition: color 0.3s ease;
}
.back-to-blog a:hover {
    color: var(--text-strong);
}

/* =================================================================
   PAGE: CONTACT US
   ================================================================= */

/* --- 1. Contact Section --- */
.contact-section {
    padding: 5rem 0;
    background-color: var(--surface-1);
}

.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.contact-card {
    background-color: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}
.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--violet-100);
    color: var(--violet-600);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.contact-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0.75rem;
}
.contact-card-description {
    color: var(--text-body);
    flex-grow: 1; /* Pushes button to the bottom */
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--text-body);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--violet-500);
    border-color: var(--violet-500);
    color: #fff;
    transform: translateY(-3px);
}

/* --- 2. Locations Section --- */
.locations-section {
    padding: 5rem 0;
    background-color: var(--surface-2);
}
.location-card {
    background-color: var(--surface-1);
    border-left: 4px solid var(--teal-500); /* RTL style */
    padding: 1.5rem 2rem;
    border-radius: 8px;
    height: 100%;
}
.location-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 0.5rem;
}
.location-card p {
    color: var(--text-body);
    margin: 0;
}

/* Responsive */
@media(max-width: 768px) {
    .location-card {
        margin-bottom: 1.5rem;
    }
}


/* =================================================================
   PAGE: LOGIN (REFINED & CORRECTED THEME)
   ================================================================= */

[x-cloak]{display:none!important}

.animate-spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Hero ===== */
.login-hero{
    background-color: var(--surface-2);
    position: relative;
    padding: 3.5rem 0 2.25rem;
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}
.login-hero h1{ font-weight:700; color: var(--text-strong); }
.login-hero p{ color: var(--text-body); }

/* ===== Container ===== */
.login-wrap{
    background: var(--surface-2);
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    display:flex; align-items:center; justify-content:center;
    padding: 3rem 1rem 4rem;
}

/* ===== Card ===== */
.login-card{
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15,19,23,0.08);
    width: 100%; max-width: 520px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.login-card::before{
    content:""; position:absolute; inset:0 0 auto 0; height: 4px;
    background: var(--grad-primary);
}

.brand-mark{
    height: 64px; margin-bottom: 1rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}
.login-title{
    color: var(--text-strong); font-weight:700; margin: .25rem 0 .25rem;
}
.login-sub{ color: var(--text-muted); margin-bottom: 2rem; }

/* ===== Form ===== */
.form-group{ margin-bottom: 1.25rem; text-align: right; }
.form-label{ font-weight: 600; margin-bottom: .5rem; color: var(--text-strong); display: block; }
.input-wrap{ position: relative; }

/* --- RTL FIXES --- */
.input-wrap .bi{
    position:absolute; inset: 50% auto auto 1rem; /* MOVED to the right */
    transform: translateY(-50%);
    color: var(--raven-400); pointer-events:none;
    z-index: 3;
}
.form-control{
    width: 100%; padding: .85rem 1rem;
    padding-right: 2.75rem; /* ADDED padding for icon on the right */
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-soft);
    color: var(--text-body);
    transition: all .18s ease;
}
.toggle-pass{
    position:absolute; inset: 50% auto auto 10px; /* MOVED to the left */
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-body);
    border-radius: 8px;
    padding: .35rem .6rem;
    display:flex; align-items:center; gap:.35rem;
    cursor:pointer;
    z-index: 3;
}
/* ADDED: Extra padding on password field for the toggle button */
#password.form-control {
    padding-left: 100px;
}
/* --- END RTL FIXES --- */

.form-control:focus{
    outline: none;
    border-color: var(--violet-500);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--focus) 35%, transparent);
}
.toggle-pass:hover{ background: var(--bg-softer); }
.form-actions{
    margin-top: .75rem; display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap;
}
.remember-me{ display:flex; align-items:center; gap:.4rem; color: var(--text-body); font-size: 0.9rem; }

/* --- Buttons --- */
.btn-brand{
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--raven-900);
    border-radius: 999px; font-weight: 700; padding: .8rem 1.5rem;
    width: 100%;
    transition: background-color .2s ease;
}
.btn-brand:hover {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

/* --- Social login & Dividers --- */
.divider{
    display:flex; align-items:center; gap:.75rem; color: var(--text-muted);
    margin: 1.5rem 0; font-size: 0.9rem;
}
.divider::before,.divider::after{ content:""; flex:1; border-bottom:1px solid var(--border-soft); }

.social-btn{
    display:flex; align-items:center; justify-content:center; gap:.6rem;
    width:100%;
    border:1px solid var(--border-soft);
    background: var(--surface-1);
    color: var(--text-strong); font-weight: 500;
    border-radius: 10px;
    padding:.75rem .9rem;
    text-decoration: none;
    transition: all .2s ease;
}
.social-btn:hover{
    background: var(--bg-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,19,23,0.06);
}

.link-aux{ color: var(--text-body); text-decoration:none; font-size: 0.9rem; }
.link-aux:hover{ color: var(--violet-600); }

/* --- Errors --- */
.alert-danger{
    background: var(--danger-100);
    color: var(--danger-700);
    border: 1px solid color-mix(in srgb, var(--danger-700) 18%, transparent);
    border-radius: 12px; padding: .9rem 1rem; text-align:right; font-weight:600; font-size: 0.9rem;
}

/* =================================================================
   SITE FOOTER
   ================================================================= */

.site-footer {
    background-color: var(--raven-950);
    color: var(--raven-300);
    padding: 5rem 0 0;
    position: relative;
    /* Uses the same glow as the header for consistency */
    background-image: var(--grad-dark-glow);
    background-repeat: no-repeat;
    background-position: center 150%;
}

.footer-col {
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--surface-1);
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-brand img {
    height: 35px;
}
.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--raven-700);
    border-radius: 50%;
    color: var(--raven-300);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--raven-900);
    transform: translateY(-3px);
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--surface-1);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--raven-300);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-400);
}

.sub-footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--raven-800);
    text-align: center;
    font-size: 0.9rem;
    color: var(--raven-400);
}
.sub-footer p {
    margin: 0;
}

/* Responsive */
@media(max-width: 991.98px) {
    .footer-col:first-child {
        text-align: center;
    }
    .footer-brand, .footer-socials {
        justify-content: center;
    }
    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}