/* ============================================
   SS6NFRA - Premium Real Estate UI/UX
   Modern, Clean, Luxury Design System
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Premium Palette */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #8b5cf6;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: var(--gray-50);
    --bg-dark: var(--gray-900);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    
    /* Spacing (8px grid) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;  /* 6px */
    --radius: 0.5rem;        /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ============================================
   NAVBAR - Modern Sticky Header
   ============================================ */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
    padding: var(--space-4) 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-nav .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: var(--space-2) var(--space-4) !important;
    margin: 0 var(--space-1);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-50);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ============================================
   HERO SECTION - Premium Search Hero
   ============================================ */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
}

/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Hero Overlay - dark enough for white text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.85) 0%, rgba(50, 35, 70, 0.88) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    width: 100%;
}

/* Force high-contrast light text on dark overlay (overrides global h1/p) */
.hero-section .hero-content .hero-title,
.hero-section .hero-content h1.hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.35);
}

.hero-section .hero-content .hero-subtitle,
.hero-section .hero-content p.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Slider Controls */
.hero-slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 4;
    pointer-events: none;
}

.hero-slider-prev,
.hero-slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-slider-prev i,
.hero-slider-next i {
    font-size: 1.5rem;
}

/* Hero Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 4;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
    border-color: white;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Search Bar */
.hero-search {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-2xl);
    margin-top: var(--space-8);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    align-items: end;
}

.search-group {
    position: relative;
}

.search-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.search-group .form-control,
.search-group .form-select {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition);
}

.search-group .form-control:focus,
.search-group .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    padding: var(--space-4) var(--space-8);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CARDS - Premium Property Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    overflow: hidden;
    background: var(--bg-white);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--gray-200);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-card-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.property-card-actions {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: opacity var(--transition);
}

.property-card:hover .property-card-actions {
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.property-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.property-emi {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-4);
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--space-4);
}

.property-features {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.property-card-footer {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
}

/* ============================================
   FILTERS - Modern Filter Panel
   ============================================ */
.filter-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-6);
}

.filter-group {
    margin-bottom: var(--space-6);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-3);
    font-size: 0.875rem;
}

.filter-group .form-control,
.filter-group .form-select {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.price-range {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.price-input {
    flex: 1;
}

/* ============================================
   PROPERTY DETAILS - Premium Layout
   ============================================ */
.property-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.gallery-main {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}

.property-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.highlight-item {
    text-align: center;
}

.highlight-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.highlight-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.highlight-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
}

/* Sticky Enquiry Form */
.enquiry-form-sticky {
    position: sticky;
    top: 100px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
}

.enquiry-form-sticky .btn {
    width: 100%;
    margin-bottom: var(--space-3);
    padding: var(--space-4);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    color: white;
}

.btn-call {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-call:hover {
    background: var(--primary-dark);
    color: white;
}

/* ============================================
   BUTTONS - Modern Button System
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

/* ============================================
   SECTIONS - Modern Section Layouts
   ============================================ */
.section {
    padding: var(--space-20) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Properties */
.featured-properties {
    background: var(--bg-light);
}

/* Why Choose Us */
.why-choose-us {
    background: var(--bg-white);
}

.feature-box {
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Testimonials */
.testimonials {
    background: var(--bg-light);
}

.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-20) 0;
}

.newsletter-form {
    display: flex;
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    flex: 1;
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* ============================================
   FOOTER - Modern Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-section {
    margin-bottom: var(--space-8);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
    flex-shrink: 0;
}
.footer-social-link i {
    font-size: 1.15rem;
    color: inherit;
}
.footer-social-link:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.35);
}
.footer-social-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--gray-500);
}

/* ============================================
   LOGIN/REGISTER - Modern Split Screen
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    margin-top: 0;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    background: var(--bg-white);
}

.auth-form {
    width: 100%;
    max-width: 450px;
}

.auth-form .form-control {
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition);
}

.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.social-login {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.social-btn {
    padding: var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}

.social-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--space-6) 0;
    color: var(--gray-500);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.divider span {
    padding: 0 var(--space-4);
}

/* ============================================
   ADMIN & USER DASHBOARD - Match home theme (navy + accent)
   ============================================ */
:root {
    --admin-bg: #faf9f7;
    --admin-card-bg: #ffffff;
    --admin-primary: #b85c38;
    --admin-primary-dark: #9a4a2c;
    --admin-border: rgba(26, 39, 68, 0.1);
    --admin-text: #1a2744;
    --admin-text-muted: #6b6b6b;
    --admin-radius: 16px;
    --admin-sidebar-width: 260px;
    --admin-spacing: 24px;
    --admin-spacing-sm: 16px;
}

.admin-wrapper,
.user-wrapper {
    display: flex;
    min-height: calc(100vh - 76px);
    margin-top: 0;
    background: var(--admin-bg);
}

.admin-sidebar,
.user-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.admin-sidebar::-webkit-scrollbar,
.user-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track,
.user-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb,
.user-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover,
.user-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.admin-sidebar.collapsed,
.user-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-brand {
    padding: var(--admin-spacing);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-brand h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand h5 i {
    font-size: 1.25rem;
}

.sidebar-brand p {
    margin: 0.5rem 0 0 0;
    font-size: 0.8125rem;
    opacity: 0.85;
    color: white;
    font-weight: 400;
}

.sidebar-nav {
    padding: var(--admin-spacing-sm) 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem var(--admin-spacing);
    margin: 0 var(--admin-spacing-sm);
    margin-bottom: 0.25rem;
    color: var(--admin-text);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 12px;
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(184, 92, 56, 0.08);
    color: var(--admin-primary);
}

.sidebar-nav-item.active {
    background: rgba(184, 92, 56, 0.12);
    color: var(--admin-primary);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(184, 92, 56, 0.1);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--admin-primary);
    border-radius: 0 2px 2px 0;
}

.sidebar-nav-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item span {
    flex: 1;
}

.sidebar-nav-item.logout {
    color: #ef4444;
    margin-top: var(--admin-spacing-sm);
    border-top: 1px solid var(--admin-border);
    padding-top: var(--admin-spacing-sm);
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
}

.sidebar-nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.sidebar-nav-item.logout.active::before {
    background: #ef4444;
}

.admin-main,
.user-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    background: var(--admin-bg);
    min-height: 100vh;
    width: calc(100% - var(--admin-sidebar-width));
    transition: margin-left 0.3s ease;
    padding-top: 0;
}

.admin-topbar,
.user-topbar {
    background: var(--admin-card-bg);
    padding: var(--admin-spacing-sm) calc(var(--admin-spacing) * 1.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--admin-border);
}

.admin-content,
.user-content {
    padding: var(--admin-spacing-sm) var(--admin-spacing);
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: auto;
}

/* User panel announcement scroll ticker */
.user-announcement-ticker {
    background: linear-gradient(90deg, #1a1f2e 0%, #161b22 50%, #1a1f2e 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    padding: 0.5rem 0;
    overflow: hidden;
    font-size: 0.9rem;
}
.user-wrapper .user-announcement-ticker {
    color: #fff;
}
.user-announcement-ticker__track {
    overflow: hidden;
    width: 100%;
}
.user-announcement-ticker__content {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
    padding-left: 100%;
    animation: userTickerScroll 40s linear infinite;
}
.user-announcement-ticker__content:hover {
    animation-play-state: paused;
}
.user-announcement-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.user-announcement-ticker__item strong {
    color: #e8c4a8;
    font-weight: 600;
}
@keyframes userTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Admin/User dashboard – primary buttons match home accent */
.admin-wrapper .btn-primary,
.user-wrapper .btn-primary {
    background: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
}
.admin-wrapper .btn-primary:hover,
.user-wrapper .btn-primary:hover {
    background: var(--admin-primary-dark) !important;
    border-color: var(--admin-primary-dark) !important;
}
.admin-wrapper .btn-outline-primary,
.user-wrapper .btn-outline-primary {
    color: var(--admin-primary) !important;
    border-color: var(--admin-primary) !important;
}
.admin-wrapper .btn-outline-primary:hover,
.user-wrapper .btn-outline-primary:hover {
    background: rgba(184, 92, 56, 0.08) !important;
    color: var(--admin-primary-dark) !important;
    border-color: var(--admin-primary-dark) !important;
}
.admin-wrapper a.text-primary,
.user-wrapper a.text-primary {
    color: var(--admin-primary) !important;
}
.admin-wrapper a.text-primary:hover,
.user-wrapper a.text-primary:hover {
    color: var(--admin-primary-dark) !important;
}

/* Admin Impersonation Banner */
.user-wrapper .alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    color: #92400e;
    font-weight: 500;
}

.user-wrapper .alert-warning .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    font-weight: 600;
}

.user-wrapper .alert-warning .btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.page-header {
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.page-subtitle {
    color: var(--admin-text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
}

.content-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--admin-spacing);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.content-card .card-body {
    padding: var(--admin-spacing);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--admin-spacing);
    background: linear-gradient(135deg, rgba(184, 92, 56, 0.06) 0%, rgba(26, 39, 68, 0.04) 100%);
    border-bottom: 1px solid var(--admin-border);
}

.card-header-modern h5 {
    color: var(--admin-text);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.form-check-group {
    display: flex;
    flex-direction: column;
    gap: var(--admin-spacing-sm);
    padding: var(--admin-spacing-sm);
    background: var(--admin-bg);
    border-radius: var(--admin-radius-sm);
    border: 1px solid var(--admin-border);
}

.form-check-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
    cursor: pointer;
}

.form-check-switch .form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-label {
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.form-label i {
    color: var(--admin-primary);
    margin-right: 0.25rem;
}

/* Info Display Styles */
.info-item {
    margin-bottom: var(--admin-spacing);
    padding-bottom: var(--admin-spacing-sm);
    border-bottom: 1px solid var(--admin-border);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.info-label i {
    color: var(--admin-primary);
    margin-right: 0.5rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--admin-text);
    margin-top: 0.25rem;
}

/* Wallet Card Styles */
.wallet-card {
    display: flex;
    align-items: center;
    gap: var(--admin-spacing);
    padding: var(--admin-spacing);
    background: var(--admin-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
}

.wallet-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--admin-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
}

.wallet-label {
    font-size: 0.875rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.wallet-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
}

/* Stat Card Styles */
.stat-card {
    display: flex;
    align-items: center;
    gap: var(--admin-spacing);
    padding: var(--admin-spacing);
    background: var(--admin-bg);
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--admin-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--admin-text);
}

/* Deposit Form Enhancements */
.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    transition: all var(--transition);
}

.form-control-lg:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 0.2rem rgba(184, 92, 56, 0.15);
}

.form-control[readonly] {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

/* File Input Styling */
input[type="file"].form-control {
    padding: 0.5rem;
}

input[type="file"].form-control-lg {
    padding: 0.75rem;
}

/* Bank Details Code Styling */
.bank-details code {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.card-title-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--admin-spacing-sm);
    margin-bottom: var(--admin-spacing);
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 6 dashboard boxes in 3 columns on one screen, smaller cards */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .kpi-grid .kpi-card-modern,
    .kpi-grid .kpi-card {
        padding: 10px 12px;
        min-height: auto;
    }
    .kpi-grid .kpi-value {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    .kpi-grid .kpi-label {
        font-size: 0.7rem;
    }
    .kpi-grid .kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .kpi-grid .kpi-trend {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kpi-card,
.kpi-card-modern {
    background: var(--admin-card-bg);
    padding: var(--admin-spacing);
    border-radius: var(--admin-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--admin-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kpi-card:hover,
.kpi-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.kpi-card::before,
.kpi-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.kpi-card-modern.success::before { background: var(--secondary); }
.kpi-card-modern.danger::before { background: var(--danger); }
.kpi-card-modern.warning::before { background: var(--warning); }
.kpi-card-modern.info::before { background: var(--info); }

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--admin-spacing-sm);
    gap: var(--admin-spacing-sm);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(184, 92, 56, 0.1);
    color: var(--admin-primary);
    flex-shrink: 0;
}

.kpi-card-modern.success .kpi-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.kpi-card-modern.danger .kpi-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.kpi-card-modern.warning .kpi-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.kpi-card-modern.info .kpi-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.kpi-trend.up {
    color: var(--secondary);
}

.kpi-trend.down {
    color: var(--danger);
}

.kpi-trend.neutral {
    color: #6b7280;
}

.kpi-change {
    margin-top: var(--space-3);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.kpi-change.positive {
    color: var(--secondary);
}

.kpi-change.negative {
    color: var(--danger);
}

/* Quick Action Cards */
.quick-action-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    padding: var(--admin-spacing-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--admin-border);
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: var(--admin-spacing-sm);
    background: rgba(184, 92, 56, 0.1);
    color: var(--admin-primary);
}

.quick-action-title {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.quick-action-count {
    font-size: 0.8125rem;
    color: var(--admin-text-muted);
}

/* Activity Timeline */
.activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: var(--admin-spacing-sm) 0;
    border-left: 2px solid var(--admin-border);
    padding-left: var(--admin-spacing);
    position: relative;
    margin-left: var(--admin-spacing-sm);
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 1.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--admin-primary);
    border: 2px solid var(--admin-card-bg);
    box-shadow: 0 0 0 2px var(--admin-border);
}

.activity-item:last-child {
    border-left: none;
}

.activity-item:last-child::before {
    display: none;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.activity-text {
    color: var(--admin-text);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Chart Cards */
.chart-card {
    background: var(--admin-card-bg);
    border-radius: var(--admin-radius);
    padding: var(--admin-spacing);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: var(--admin-spacing);
    border: 1px solid var(--admin-border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--admin-spacing);
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--admin-text);
}

/* Data Tables */
.data-table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.table-search {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.table-search input {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.table {
    margin: 0;
}

.table thead {
    background: var(--gray-50);
}

.table th {
    padding: var(--space-4);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: none;
}

.table td {
    padding: var(--space-4);
    vertical-align: middle;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-light { background: var(--bg-light) !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

/* Location Cards */
.location-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.location-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

.location-card-image {
    transition: transform 0.3s ease;
}

.location-card:hover .location-card-image {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--admin-spacing);
}

.dashboard-grid-2 {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: var(--admin-spacing);
    margin-bottom: var(--admin-spacing);
}

.chart-container {
    height: 300px;
    position: relative;
    padding: var(--admin-spacing-sm);
}

.chart-container canvas {
    max-height: 100% !important;
}

@media (max-width: 1024px) {
    .admin-sidebar,
    .user-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.show,
    .user-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main,
    .user-main {
        margin-left: 0;
        width: 100%;
    }
    
    .dashboard-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .admin-content,
    .user-content {
        padding: var(--admin-spacing-sm);
    }
}

@media (max-width: 768px) {
    .admin-topbar,
    .user-topbar {
        padding: var(--admin-spacing-sm) var(--admin-spacing);
        flex-wrap: wrap;
        gap: var(--admin-spacing-sm);
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .kpi-value {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        min-height: 300px;
    }
    
    .property-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .property-card-image {
        height: 200px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: var(--space-6);
    z-index: var(--z-tooltip);
}

.toast {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--secondary);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--info);
}

/* ============================================
   LANDING DARK THEME (Section 14)
   ============================================ */
body.landing-dark {
    background: #0d1117;
    color: #e6edf3;
}

/* Hero text must stay light on dark overlay (landing-dark can inherit dark text otherwise) */
body.landing-dark .hero-section .hero-title,
body.landing-dark .hero-section .hero-subtitle {
    color: #ffffff !important;
}
body.landing-dark .hero-section .hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* ============================================
   LANDING HEADER REDESIGN - Premium dark + gold
   ============================================ */

/* Announcement ticker - readable, gold accent */
.announcement-ticker {
    padding: 0.65rem 0;
    background: linear-gradient(90deg, #1a1f2e 0%, #161b22 50%, #1a1f2e 100%);
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    color: #ffffff;
}

.announcement-ticker .container {
    max-width: 100%;
}

.announcement-ticker .ticker-content {
    color: #ffffff !important;
    font-size: 0.9375rem;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.announcement-ticker .ticker-item {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.announcement-ticker .ticker-item strong {
    color: #f0d875 !important;
    font-weight: 600;
    margin-right: 0.35rem;
}

body.landing-dark .announcement-ticker,
body.landing-dark .announcement-ticker .ticker-content,
body.landing-dark .announcement-ticker .ticker-item {
    color: #ffffff !important;
}

/* Main nav bar - premium dark with gold accents */
.landing-nav {
    background: rgba(13, 17, 23, 0.97) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.6rem 0 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.landing-nav .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.landing-nav .navbar-brand .navbar-logo,
.navbar-brand .navbar-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .landing-nav .navbar-brand .navbar-logo,
    .navbar-brand .navbar-logo {
        height: 34px;
        max-width: 140px;
    }
}

/* Logo fallback: gold icon + white text (when image fails to load) */
.navbar-brand-fallback {
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.landing-nav .navbar-brand-fallback {
    color: #ffffff !important;
}

.landing-nav .navbar-brand i,
.navbar-brand-fallback i {
    color: #d4af37 !important;
    margin-right: 0;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.landing-nav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.15rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    border: none !important;
    background: transparent !important;
}

.landing-nav .navbar-nav .nav-link::after {
    display: none;
}

/* Right-align Login & Register and keep spacing */
.landing-nav .navbar-collapse-landing {
    display: flex !important;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.landing-nav .landing-nav-actions {
    margin-left: auto;
    flex-shrink: 0;
}

.landing-nav .navbar-nav .nav-link:hover {
    color: #f0d875 !important;
    background: rgba(212, 175, 55, 0.12) !important;
}

.landing-nav .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.landing-nav .navbar-nav .nav-item .nav-link.active {
    background-color: rgba(212, 175, 55, 0.2) !important;
    border: none !important;
}

.landing-nav .btn-outline-light {
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.landing-nav .btn-outline-light:hover {
    color: #0d1117 !important;
    background: #ffffff;
    border-color: #ffffff;
}

.landing-nav .btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    border: none !important;
    color: #0d1117 !important;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.landing-nav .btn-primary:hover {
    background: linear-gradient(135deg, #f0d875 0%, #d4af37 100%) !important;
    color: #0d1117 !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.5);
}

.landing-nav .navbar-toggler {
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffffff;
}

.landing-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
}

/* Keep legacy selectors for compatibility */
.landing-dark .landing-nav {
    background: rgba(13, 17, 23, 0.97) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.landing-dark .landing-nav .navbar-brand,
.landing-dark .landing-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.landing-dark .landing-nav .nav-link:hover {
    color: #f0d875 !important;
}

.landing-dark-section {
    background: #0f1629;
}

.landing-dark-section.bg-dark {
    background: #161b22 !important;
}

.landing-dark .featured-properties .section-title h2,
.landing-dark .featured-properties .section-title p {
    color: #e6edf3;
}

.landing-dark .property-card {
    background: #161b22;
    border-color: #30363d;
}

.landing-dark .property-card-body,
.landing-dark .property-title,
.landing-dark .property-location span {
    color: #e6edf3;
}

.landing-dark .property-price {
    color: #58a6ff;
}

.landing-dark .testimonials {
    background: #161b22;
}

.landing-dark .testimonial-card {
    background: #21262d;
    border-color: #30363d;
}

.landing-dark .testimonial-text,
.landing-dark .testimonial-author strong {
    color: #e6edf3;
}

.landing-dark .footer {
    background: #0d1117;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

.landing-dark .footer-title,
.landing-dark .footer a {
    color: #e6edf3;
}

.landing-dark .newsletter {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-top: 1px solid #30363d;
}

/* ============================================
   LANDING REDESIGN - New look & feel
   ============================================ */
body.landing-dark {
    font-family: 'Inter', sans-serif;
    background: #0c1222;
}

body.landing-dark h1,
body.landing-dark h2,
body.landing-dark h3,
body.landing-dark h4,
body.landing-dark h5,
body.landing-dark .section-title h2,
body.landing-dark .footer-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Hero - refined overlay + tagline */
body.landing-dark .hero-section {
    min-height: 92vh;
}

body.landing-dark .hero-overlay {
    background: linear-gradient(160deg, rgba(12, 18, 34, 0.92) 0%, rgba(22, 32, 55, 0.88) 50%, rgba(15, 25, 40, 0.9) 100%);
}

body.landing-dark .hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4af37 !important;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

body.landing-dark .hero-subtitle {
    font-size: 1.1rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Hero search - dark glass + gold CTA */
body.landing-dark .hero-search {
    background: rgba(22, 30, 46, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body.landing-dark .search-group label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

body.landing-dark .search-group .form-control,
body.landing-dark .search-group .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
}

body.landing-dark .search-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.landing-dark .search-group .form-control:focus,
body.landing-dark .search-group .form-select:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

body.landing-dark .search-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #0c1222;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.9rem 1.75rem;
}

body.landing-dark .search-btn:hover {
    background: linear-gradient(135deg, #f0d875 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* Section titles - consistent gold accent */
body.landing-dark .section-title h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #f0f0f0 !important;
    position: relative;
    padding-left: 1.25rem;
}

body.landing-dark .section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.4em;
    background: linear-gradient(180deg, #d4af37, #f0d875);
    border-radius: 3px;
}

body.landing-dark .section-title p {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5rem;
}

/* Featured Properties - card redesign */
body.landing-dark .featured-properties {
    background: #0f1629;
}

body.landing-dark .property-card {
    background: #16202a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
}

body.landing-dark .property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

body.landing-dark .property-card-image {
    height: 260px;
}

body.landing-dark .property-badge {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
    color: #0c1222;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
}

body.landing-dark .property-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    color: #e6edf3;
}

body.landing-dark .property-price {
    color: #d4af37 !important;
    font-size: 1.5rem;
    font-weight: 800;
}

body.landing-dark .property-emi {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

body.landing-dark .property-title {
    color: #f0f0f0 !important;
    font-weight: 700;
}

body.landing-dark .property-location {
    color: rgba(255, 255, 255, 0.7);
}

body.landing-dark .property-card-footer .btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    border: none;
    color: #0c1222 !important;
    font-weight: 600;
    border-radius: 12px;
}

body.landing-dark .property-card-footer .btn-primary:hover {
    background: linear-gradient(135deg, #f0d875 0%, #d4af37 100%) !important;
    color: #0c1222 !important;
}

/* Why Choose Us - dark block + gold icons */
body.landing-dark .why-choose-us {
    background: #0f1629;
}

body.landing-dark .why-choose-us .section-title h2,
body.landing-dark .why-choose-us .section-title p {
    color: #f0f0f0 !important;
}

body.landing-dark .why-choose-us .section-title p {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.landing-dark .feature-box {
    background: #16202a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.landing-dark .feature-box:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

body.landing-dark .feature-icon {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    color: #0c1222 !important;
    width: 72px;
    height: 72px;
    font-size: 1.75rem;
    border-radius: 18px;
}

body.landing-dark .feature-box h5 {
    color: #f0f0f0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

body.landing-dark .feature-box p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* How It Works - dark */
body.landing-dark .section.bg-white#how-it-works,
body.landing-dark #how-it-works {
    background: #0c1222 !important;
}

body.landing-dark #how-it-works .section-title h2,
body.landing-dark #how-it-works .section-title p {
    color: #f0f0f0 !important;
}

body.landing-dark #how-it-works .section-title p {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.landing-dark #how-it-works .card {
    background: #16202a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #e6edf3;
}

body.landing-dark #how-it-works .step-number {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    color: #0c1222 !important;
}

body.landing-dark #how-it-works .card h6 {
    color: #f0f0f0 !important;
}

body.landing-dark #how-it-works .card .text-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Testimonials - refined cards */
body.landing-dark .testimonials {
    background: #0f1629;
}

body.landing-dark .testimonial-card {
    background: #16202a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border-left: 4px solid #d4af37;
    padding: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.landing-dark .testimonial-card:hover {
    border-left-color: #f0d875;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

body.landing-dark .testimonial-rating {
    color: #d4af37 !important;
}

body.landing-dark .testimonial-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-style: normal;
}

body.landing-dark .testimonial-avatar {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    color: #0c1222 !important;
    font-weight: 700;
}

/* Newsletter - gold CTA */
body.landing-dark .newsletter {
    background: linear-gradient(160deg, #0f1629 0%, #16202a 50%, #0c1222 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0;
}

body.landing-dark .newsletter h2 {
    color: #f0f0f0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.landing-dark .newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
}

body.landing-dark .newsletter-form .btn-light {
    background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%) !important;
    border: none;
    color: #0c1222 !important;
    font-weight: 700;
    border-radius: 12px;
}

body.landing-dark .newsletter-form .btn-light:hover {
    background: linear-gradient(135deg, #f0d875 0%, #d4af37 100%) !important;
    color: #0c1222 !important;
}

/* Footer - gold top line */
body.landing-dark .footer {
    background: #0c1222;
    border-top: 3px solid rgba(212, 175, 55, 0.5);
    padding: 3.5rem 0 2rem;
}

body.landing-dark .footer-title {
    color: #f0f0f0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

body.landing-dark .footer-section p,
body.landing-dark .footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.landing-dark .footer-links a:hover {
    color: #d4af37 !important;
}

body.landing-dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Popular Locations - dark cards on landing */
body.landing-dark .section.bg-white {
    background: #0f1629 !important;
}

body.landing-dark .location-card-link .card {
    background: #16202a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

body.landing-dark .location-card-link:hover .card {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

body.landing-dark .location-card-link .card h6 {
    color: #f0f0f0 !important;
}

body.landing-dark .location-card-link .card .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Director & Team - match new background */
body.landing-dark .company-director,
body.landing-dark .company-team {
    background: #0c1222 !important;
}

/* PDF Download section */
body.landing-dark #pdf-download .text-light {
    color: #f0f0f0 !important;
}

body.landing-dark #pdf-download .company-gold-btn {
    border-radius: 14px;
    padding: 0.85rem 2rem;
}

/* View All Properties button */
body.landing-dark .featured-properties .btn-outline-primary {
    border-color: rgba(212, 175, 55, 0.6);
    color: #d4af37;
    border-radius: 12px;
    font-weight: 600;
}

body.landing-dark .featured-properties .btn-outline-primary:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #f0d875;
}

/* ============================================
   COMPANY PROFILE - Premium dark + gold accent
   ============================================ */
:root {
    --company-gold: #d4af37;
    --company-gold-light: #f0d875;
    --company-dark: #0d1117;
    --company-darker: #161b22;
}

.company-gold {
    color: var(--company-gold) !important;
}

/* Platform Background section - dark green + gold (Introduction, Vision, Mission) */
.platform-background {
    background: #1e3a24;
    color: #f5f5f5;
}

.platform-background .platform-background-title,
.platform-background .platform-intro-heading,
.platform-background .platform-card-title {
    color: #d4af37 !important;
}

.platform-background-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4af37 !important;
    margin-bottom: 2.5rem;
}

.platform-background-title::before {
    content: '';
    width: 5px;
    height: 2.2rem;
    background: linear-gradient(180deg, #d4af37 0%, #f0d875 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Introduction (About) block */
.platform-intro {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    max-width: 100%;
}

.platform-intro-accent {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-intro-logo {
    width: 70px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.platform-intro-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #d4af37 0%, #f0d875 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #1e3a24;
}

.platform-intro-icon i {
    color: #1e3a24;
}

.platform-intro-content {
    flex: 1;
    min-width: 0;
}

.platform-intro-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #d4af37 !important;
    margin-bottom: 0.5rem;
}

.platform-intro-divider {
    border: none;
    border-top: 1px solid rgba(120, 120, 120, 0.5);
    margin: 0 0 1rem 0;
    max-width: 100%;
}

.platform-intro-text {
    color: #f0f0f0 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Vision & Mission cards - side by side */
.platform-vision-mission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.platform-card {
    position: relative;
    background: rgba(44, 44, 44, 0.9);
    border: 1px solid rgba(180, 180, 180, 0.4);
    border-radius: 14px;
    padding: 2rem 2.25rem 2.5rem;
    text-align: center;
}

.platform-card-quote {
    position: absolute;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #d4af37 !important;
    font-family: Georgia, 'Times New Roman', serif;
}

.platform-card-quote-open {
    top: -0.25rem;
    left: 0.75rem;
}

.platform-card-quote-close {
    bottom: -0.25rem;
    right: 0.75rem;
}

.platform-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d4af37 !important;
    margin: 0 0 0.75rem 0;
}

.platform-card-divider {
    border: none;
    border-top: 1px solid rgba(120, 120, 120, 0.5);
    margin: 0 auto 1.25rem;
    max-width: 80%;
}

.platform-card-text {
    color: #f0f0f0 !important;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Legacy class for any other use */
.company-description {
    color: #e6edf3;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Director & Team cards */
.company-director,
.company-team {
    background: var(--company-darker);
}

.company-director .section-title h2,
.company-team .section-title h2 {
    color: var(--company-gold);
}

.company-profile-card {
    background: rgba(22, 27, 34, 0.9);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.company-profile-img {
    max-width: 280px;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 3px solid rgba(212, 175, 55, 0.4);
}

/* Director/Team image placeholder when no image uploaded (admin can add image later) */
.company-profile-img-placeholder {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
    height: 280px;
    margin: 0 auto;
    background: rgba(33, 38, 45, 0.95);
    border: 2px dashed rgba(212, 175, 55, 0.35);
    color: rgba(212, 175, 55, 0.5);
}
.company-profile-img-placeholder .bi-person {
    font-size: 4rem;
}
.company-profile-img-placeholder-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.company-profile-card--with-image .row {
    min-height: 200px;
}

/* Director/Team card text: always readable on light or dark card */
.profile-card-name,
.profile-card-designation,
.profile-card-desc {
    color: #1a2744 !important;
}
.profile-card-desc {
    color: #333 !important;
    opacity: 1 !important;
}
.profile-card-designation {
    font-weight: 600;
}
/* Title above name on leadership cards (landing) */
.company-profile-card .profile-card-designation.company-gold {
    font-size: 1.125rem;
    letter-spacing: 0.02em;
}

.company-card {
    background: rgba(33, 38, 45, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.landing-dark .btn-primary {
    background: linear-gradient(135deg, var(--company-gold) 0%, #b8962e 100%);
    border-color: var(--company-gold);
}

.landing-dark .btn-primary:hover {
    background: linear-gradient(135deg, var(--company-gold-light) 0%, var(--company-gold) 100%);
    border-color: var(--company-gold-light);
}

.company-gold-btn {
    background: linear-gradient(135deg, var(--company-gold) 0%, #b8962e 100%) !important;
    border-color: var(--company-gold) !important;
}

/* Landing nav - mobile */
@media (max-width: 991px) {
    .landing-nav .navbar-collapse {
        background: rgba(13, 17, 23, 0.98);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 12px;
        border: 1px solid rgba(212, 175, 55, 0.25);
    }
    .landing-nav .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem !important;
        border-radius: 8px;
    }
    .landing-nav .navbar-nav .nav-link.active {
        background: rgba(212, 175, 55, 0.2) !important;
    }
    .landing-nav .landing-nav-actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-left: 0;
    }
    .landing-nav .btn-outline-light,
    .landing-nav .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .platform-vision-mission-row {
        grid-template-columns: 1fr;
    }
    .platform-card {
        padding: 1.75rem 1.5rem;
    }
    .platform-intro {
        flex-direction: column;
        gap: 1rem;
    }
    .platform-background-title {
        font-size: 1.35rem;
    }
    .company-profile-img,
    .company-profile-img-placeholder {
        max-width: 200px;
        height: 200px;
    }
    .company-profile-img-placeholder .bi-person {
        font-size: 2.75rem;
    }
    .announcement-ticker .ticker-content {
        font-size: 0.875rem;
    }
}
