/* ============================================
   EBENEZER ROYAL - COMPLETE STYLESHEET
   Professional Edition with Purple Footer
   Primary Color: #6A11CB
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary: #6A11CB;
    --primary-dark: #5a0cb5;
    --primary-light: #8B3DFF;
    --primary-gradient: linear-gradient(135deg, #6A11CB 0%, #2575FC 100%);
    --secondary: #2575FC;
    --accent: #FFD700;
    --accent-dark: #f0c000;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --dark: #1a1a2e;
    --dark-secondary: #2d2d44;
    --gray-100: #f8fafc;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --light-bg: #f0f4ff;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 20px rgba(106, 17, 203, 0.08);
    --box-shadow-hover: 0 8px 30px rgba(106, 17, 203, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- UTILITY CLASSES ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-padding {
    padding: var(--spacing-3xl) 0;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

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

.text-muted {
    color: var(--gray-500);
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.fw-medium {
    font-weight: 500;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

.slide-down {
    animation: slideDown 0.3s ease forwards;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.spin {
    animation: spin 1s linear infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-family);
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
    color: white;
}

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

.btn-secondary:hover {
    background: #1a5fd0;
    color: white;
}

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

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

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

.btn-success:hover {
    background: #059669;
    color: white;
}

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

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

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

.btn-warning:hover {
    background: #d97706;
    color: white;
}

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

.btn-info:hover {
    background: #2563eb;
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 56px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .badge {
    margin-left: 0.25rem;
}

/* ---------- NAVIGATION ---------- */
.navbar {
    background: var(--primary-gradient);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(106, 17, 203, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Navbar Toggle */
.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.6rem;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 0.5rem;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.navbar-toggler:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}

/* Navbar Links */
.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

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

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

.navbar-nav .nav-link.text-danger {
    color: #ff6b6b !important;
}

.navbar-nav .nav-link.text-danger::after {
    background: #ff6b6b;
}

.navbar-nav .nav-link.text-warning {
    color: #ffd93d !important;
}

.navbar-nav .nav-link.text-warning::after {
    background: #ffd93d;
}

/* Navbar Buttons */
.navbar-nav .btn-primary {
    background: white;
    color: var(--primary) !important;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    box-shadow: none;
    font-size: 0.85rem;
    min-height: 36px;
}

.navbar-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--primary) !important;
}

.navbar-nav .btn-outline-light {
    color: white !important;
    border-color: rgba(255,255,255,0.5);
    padding: 0.4rem 1.25rem;
    font-size: 0.85rem;
    min-height: 36px;
    background: transparent;
}

.navbar-nav .btn-outline-light:hover {
    background: white;
    color: var(--primary) !important;
    border-color: white;
}

.cart-badge {
    background: var(--accent);
    color: var(--dark);
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.2rem;
    display: none;
}

/* Dropdown Styling */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
    padding: 8px;
    min-width: 220px;
    background: white;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(106, 17, 203, 0.08);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary);
}

.dropdown-divider {
    margin: 4px 0;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.4rem 0;
        background: var(--primary-gradient);
    }
    
    .navbar .container {
        flex-wrap: nowrap;
        padding: 0 0.75rem;
        position: relative;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    .navbar-toggler {
        display: block !important;
        margin-left: auto;
        padding: 0.3rem 0.5rem;
        border: 2px solid rgba(255,255,255,0.3);
        background: transparent;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:hover {
        border-color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.1);
    }
    
    .navbar-toggler-icon {
        width: 1.3em;
        height: 1.3em;
    }
    
    /* Mobile Menu */
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--primary-gradient);
        padding: 1rem 1.25rem;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        border-top: none;
        overflow-y: auto;
        transform: translateX(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        display: block !important;
        border-radius: 20px 0 0 20px;
    }
    
    .navbar-collapse.show {
        right: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
        animation: fadeIn 0.3s ease forwards;
    }
    
    .mobile-close-btn {
        position: absolute !important;
        top: 12px !important;
        right: 16px !important;
        z-index: 1060 !important;
        font-size: 1.6rem !important;
        background: rgba(255,255,255,0.12) !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
        color: white !important;
        cursor: pointer !important;
        padding: 0 !important;
        opacity: 0.8 !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 300 !important;
        line-height: 1 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
    }
    
    .mobile-close-btn:hover {
        opacity: 1 !important;
        transform: rotate(90deg) !important;
        background: rgba(255,255,255,0.2) !important;
        border-color: rgba(255,255,255,0.4) !important;
    }
    
    .navbar-collapse .menu-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-top: 8px;
    }
    
    .navbar-collapse .menu-header img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,0.2);
    }
    
    .navbar-collapse .menu-header span {
        color: white;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.15rem;
        width: 100%;
        padding: 0;
        margin-top: 8px;
        align-items: stretch;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        color: rgba(255,255,255,0.9) !important;
        font-size: 0.88rem;
        font-weight: 500;
        transition: all 0.2s ease;
        border: none;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(255,255,255,0.1);
        color: #ffffff !important;
        transform: translateX(4px);
    }
    
    .navbar-nav .nav-link.active {
        background: rgba(255,255,255,0.15);
        color: #ffffff !important;
        border-left: 3px solid var(--accent);
    }
    
    .navbar-nav .nav-link i {
        width: 24px;
        text-align: center;
        margin-right: 10px;
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .navbar-nav .nav-link.text-danger {
        color: #ff6b6b !important;
    }
    
    .navbar-nav .nav-link.text-danger i {
        color: #ff6b6b !important;
        opacity: 1;
    }
    
    .navbar-nav .nav-link.text-warning {
        color: #ffd93d !important;
    }
    
    .navbar-nav .nav-link.text-warning i {
        color: #ffd93d !important;
        opacity: 1;
    }
    
    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.15rem;
        min-height: 40px;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .navbar-nav .btn-primary {
        background: white;
        color: var(--primary) !important;
        border: none;
    }
    
    .navbar-nav .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        color: var(--primary) !important;
    }
    
    .navbar-nav .btn-outline-light {
        border-color: rgba(255,255,255,0.25);
        color: white !important;
        background: transparent;
    }
    
    .navbar-nav .btn-outline-light:hover {
        background: white;
        color: var(--primary) !important;
        border-color: white;
    }
    
    /* Dropdown on mobile */
    .navbar-nav .dropdown {
        position: relative;
        width: 100%;
    }
    
    .navbar-nav .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        color: rgba(255,255,255,0.9) !important;
        font-size: 0.88rem;
        font-weight: 500;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .dropdown-toggle:hover {
        background: rgba(255,255,255,0.1);
        color: #ffffff !important;
    }
    
    .navbar-nav .dropdown-toggle i {
        width: 24px;
        text-align: center;
        margin-right: 10px;
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    .navbar-nav .dropdown-toggle::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        border: none;
        margin-left: auto;
        transition: transform 0.3s ease;
        font-size: 0.7rem;
        opacity: 0.6;
        color: white;
    }
    
    .navbar-nav .dropdown-toggle.show::after {
        transform: rotate(180deg);
        opacity: 1;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        background: rgba(255,255,255,0.08);
        border: none;
        box-shadow: none;
        padding: 0.15rem 0;
        margin: 0.1rem 0 0.1rem 0.75rem;
        border-radius: 10px;
        width: auto;
        transform: none !important;
        transition: all 0.3s ease;
        display: none;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block;
        animation: slideDown 0.25s ease forwards;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding: 0.4rem 0.75rem;
        font-size: 0.82rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        border-left: 2px solid transparent;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: #ffffff !important;
        border-left-color: var(--accent);
        transform: translateX(4px);
    }
    
    .navbar-nav .dropdown-item i {
        color: rgba(255,255,255,0.5);
        width: 20px;
        font-size: 0.8rem;
    }
    
    .navbar-nav .dropdown-divider {
        border-color: rgba(255,255,255,0.06);
        margin: 0.15rem 0;
    }
}

/* Small devices extra adjustments */
@media (max-width: 576px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .navbar .container {
        padding: 0 0.5rem;
    }
    
    .logo img {
        height: 32px;
        width: 32px;
        border-width: 2px;
    }
    
    .logo span {
        font-size: 0.8rem;
    }
    
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
    }
    
    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }
    
    .navbar-collapse {
        width: 290px;
        max-width: 80vw;
        padding: 0.75rem 1rem;
        right: -290px;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .mobile-close-btn {
        top: 10px !important;
        right: 12px !important;
        font-size: 1.4rem !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .navbar-nav {
        margin-top: 4px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.82rem;
        padding: 0.45rem 0.6rem;
    }
    
    .navbar-nav .dropdown-toggle {
        font-size: 0.82rem;
        padding: 0.45rem 0.6rem;
    }
    
    .navbar-nav .dropdown-item {
        font-size: 0.78rem;
        padding: 0.35rem 0.6rem;
        margin-left: 0.15rem;
    }
    
    .navbar-nav .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        min-height: 34px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .logo img {
        height: 28px;
        width: 28px;
    }
    
    .logo span {
        font-size: 0.7rem;
    }
    
    .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }
    
    .navbar-collapse {
        width: 260px;
        max-width: 75vw;
        padding: 0.6rem 0.8rem;
        right: -260px;
    }
    
    .navbar-collapse.show {
        right: 0;
    }
    
    .mobile-close-btn {
        top: 8px !important;
        right: 10px !important;
        font-size: 1.2rem !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .navbar-nav .dropdown-toggle {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }
    
    .navbar-nav .dropdown-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

/* Hide mobile close button on desktop */
@media (min-width: 992px) {
    .mobile-close-btn {
        display: none !important;
    }
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    padding: 60px 0 70px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section .hero-badge {
    display: inline-block;
    background: rgba(255,215,0,0.15);
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 15px;
    border: 1px solid rgba(255,215,0,0.2);
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-section h1 span {
    color: var(--accent);
}

.hero-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.7;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-800);
}

.section-header h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- FEATURES SECTION ---------- */
.features-section {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--gray-100);
    height: 100%;
}

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

.feature-card .feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

.feature-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ---------- CARDS ---------- */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
    font-weight: 600;
}

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

.card-footer {
    background: transparent;
    border-top: 1px solid var(--gray-200);
    padding: var(--spacing-lg);
}

/* ---------- PROPERTY CARD ---------- */
.property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.property-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--gray-200);
}

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

.property-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.property-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Category Card */
.category-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.12);
}

.category-card .card-body {
    padding: var(--spacing-md);
    text-align: center;
}

.category-card .category-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

.category-card .category-name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.category-card .category-count {
    font-size: 0.55rem;
}

/* Subcategory Card */
.subcategory-card {
    border-radius: 10px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.subcategory-card .subcategory-image {
    height: 65px;
    overflow: hidden;
}

.subcategory-card .subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcategory-card .subcategory-label {
    padding: 8px 4px;
    background: white;
    text-align: center;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-card .subcategory-label small {
    color: var(--dark);
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1.2;
    word-break: break-word;
}

/* ---------- BADGES ---------- */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

/* Verification Badges */
.badge-bronze {
    background: #cd7f32;
    color: white;
}

.badge-silver {
    background: #c0c0c0;
    color: var(--dark);
}

.badge-gold {
    background: #ffd700;
    color: var(--dark);
}

/* ---------- FORMS ---------- */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

.form-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: white;
    transition: var(--transition);
    appearance: auto;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(106, 17, 203, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

/* ---------- ALERTS ---------- */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ---------- DASHBOARD ---------- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 80px;
}

.dashboard-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    transition: var(--transition);
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(106, 17, 203, 0.08);
    color: var(--primary);
}

/* ---------- PAYMENT ---------- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.payment-method {
    padding: var(--spacing-lg);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover,
.payment-method.selected {
    border-color: var(--primary);
    background: rgba(106, 17, 203, 0.05);
}

.payment-method i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

/* ---------- TABLE ---------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

.table th {
    text-align: left;
    padding: var(--spacing-md);
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background: rgba(106, 17, 203, 0.04);
}

.table-responsive {
    overflow-x: auto;
}

/* ---------- LIST GROUP ---------- */
.list-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.list-group-item {
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.list-group-item:hover {
    background: var(--gray-100);
}

.list-group-item-action {
    cursor: pointer;
}

/* ---------- ACCORDION ---------- */
.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.accordion-header {
    padding: 0;
}

.accordion-button {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: none;
    border: none;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.accordion-button:hover {
    background: var(--gray-100);
}

.accordion-button:not(.collapsed) {
    background: rgba(106, 17, 203, 0.05);
    color: var(--primary);
}

.accordion-body {
    padding: var(--spacing-md) var(--spacing-lg);
}

/* ============================================
   FOOTER - PURPLE THEME WITH ICONS - FIXED!
   ============================================ */
.footer {
    background: var(--primary-gradient) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: auto !important;
    padding: 50px 0 20px !important;
    border-top: none !important;
}

.footer .footer-heading {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 18px !important;
    letter-spacing: 0.5px !important;
}

.footer .footer-heading i {
    color: var(--accent) !important;
}

.footer .footer-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
    margin-bottom: 16px !important;
}

/* Footer Social Icons */
.footer-social {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
}

.footer-social .social-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.footer-social .social-icon:hover {
    transform: translateY(-4px) !important;
    background: #ffffff !important;
    color: var(--primary) !important;
    border-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Individual social icon hover colors */
.footer-social .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.footer-social .social-icon.playstore:hover {
    background: #34a853 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.footer-social .social-icon.facebook:hover {
    background: #1877f2 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.footer-social .social-icon.twitter:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.footer-social .social-icon.youtube:hover {
    background: #ff0000 !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Footer Links */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 10px !important;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.footer-links li a:hover {
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

/* Footer Contact */
.footer-contact {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-contact li {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.88rem !important;
    margin-bottom: 12px !important;
}

.footer-contact li i {
    color: var(--accent) !important;
    width: 20px !important;
    text-align: center !important;
    font-size: 0.95rem !important;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.footer-contact li a:hover {
    color: #ffffff !important;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 18px !important;
    margin-top: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
}

.footer-bottom p strong {
    color: #ffffff !important;
}

.footer-bottom-links {
    display: flex !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
}

/* ---------- FOOTER RESPONSIVE ---------- */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 16px !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .footer-bottom-links {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .footer-social .social-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }
    
    .footer .footer-heading {
        font-size: 0.95rem !important;
    }
    
    .footer-links li a,
    .footer-contact li {
        font-size: 0.82rem !important;
    }
}

/* ---------- DARK MODE SUPPORT - FOOTER ---------- */
@media (prefers-color-scheme: dark) {
    .footer {
        background: var(--primary-gradient) !important;
    }
    
    .footer .footer-heading {
        color: #ffffff !important;
    }
    
    .footer .footer-text,
    .footer-links li a,
    .footer-contact li,
    .footer-bottom p,
    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .footer-links li a:hover,
    .footer-contact li a:hover,
    .footer-bottom-links a:hover {
        color: #ffffff !important;
    }
    
    .footer-social .social-icon {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    .footer-social .social-icon:hover {
        background: #ffffff !important;
        color: var(--primary) !important;
    }
}

/* ---------- PAGINATION ---------- */
.pagination {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.page-item .page-link {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--primary);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--gray-400);
    pointer-events: none;
}

.page-item .page-link:hover {
    background: rgba(106, 17, 203, 0.08);
    border-color: var(--primary);
}

/* ---------- TOAST ---------- */
.toast-container {
    max-width: 350px;
    z-index: 9999;
}

.toast {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.toast .toast-body {
    padding: 0.5rem 1rem;
}

/* ---------- LOADING ---------- */
.loading {
    position: relative;
    pointer-events: none;
}

.loading .spinner-border {
    margin-right: 0.5rem;
}

/* ---------- SUGGESTIONS ---------- */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-hover);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.suggestion-item:hover {
    background: rgba(106, 17, 203, 0.05);
}

#search-suggestions::-webkit-scrollbar {
    width: 4px;
}

#search-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* ============================================
   STORIES SECTION STYLES
   ============================================ */

.stories-scroll {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.stories-scroll::-webkit-scrollbar {
    height: 4px;
}

.stories-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.story-circle {
    min-width: 80px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.story-circle:hover {
    transform: scale(1.05);
}

.story-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #6A11CB, #2575FC);
}

.story-avatar img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

#storyViewerContent {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#storyViewerContent img,
#storyViewerContent video {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
}

#storyNavigation div {
    transition: background 0.2s ease;
}

#storyNavigation div:hover {
    background: rgba(255,255,255,0.1);
}

#storyProgressContainer {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    z-index: 15;
    display: flex;
    gap: 4px;
}

#storyProgressBar {
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    flex: 1;
    overflow: hidden;
}

#storyProgressFill {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.1s linear;
}

.story-action-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .story-circle {
        min-width: 60px;
    }
    
    .story-avatar {
        width: 50px;
        height: 50px;
    }
    
    .story-avatar img {
        width: 44px;
        height: 44px;
    }
    
    #storyViewerContent {
        min-height: 300px;
    }
    
    #storyViewerContent img,
    #storyViewerContent video {
        max-height: 70vh;
    }
    
    .story-action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    #storyViewerModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        height: auto;
        min-height: 50vh;
    }
    
    #storyViewerModal .modal-content {
        border-radius: 16px;
        height: auto;
        max-height: 85vh;
        min-height: 50vh;
    }
    
    #storyProgressContainer {
        top: 50px;
        left: 10px;
        right: 10px;
    }
}

/* ============================================
   VERIFICATION BADGE STYLES
   ============================================ */

.badge-bronze {
    background-color: #cd7f32;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-silver {
    background-color: #c0c0c0;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-gold {
    background-color: #ffd700;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.verification-progress {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.verification-step {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
}

.verification-step.completed {
    background: var(--success);
    color: white;
}

.verification-step.active {
    background: var(--warning);
    color: white;
}

.verification-step.pending {
    background: var(--gray-300);
    color: var(--gray-600);
}

.verification-banner {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.verification-banner.gold {
    background: #ffd700;
    color: #1a1a2e;
    border-left: 4px solid #d4a800;
}

.verification-banner.silver {
    background: #e8e8e8;
    color: #1a1a2e;
    border-left: 4px solid #a0a0a0;
}

.verification-banner.bronze {
    background: #e8d5b5;
    color: #1a1a2e;
    border-left: 4px solid #b8860b;
}

.verification-banner.unverified {
    background: #f8f9fa;
    color: var(--gray-600);
    border-left: 4px solid var(--gray-400);
}

@media (max-width: 576px) {
    .badge-bronze,
    .badge-silver,
    .badge-gold {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
    
    .verification-step {
        font-size: 0.5rem;
        padding: 2px 8px;
    }
    
    .verification-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ---------- BACK TO TOP ---------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-size: 1.2rem;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.4);
}

@media (max-width: 576px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ---------- RESPONSIVE - GENERAL ---------- */
@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-height: 40px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }
    
    .property-card .card-img-top {
        height: 140px;
    }
    
    .property-card .card-title {
        font-size: 0.85rem;
    }
    
    .property-card .price {
        font-size: 0.9rem;
    }
    
    .subcategory-card .subcategory-image {
        height: 50px;
    }
    
    .subcategory-card .subcategory-label small {
        font-size: 0.5rem;
    }
    
    .category-card .category-icon {
        font-size: 1.3rem;
    }
    
    .category-card .category-name {
        font-size: 0.6rem;
    }
    
    .category-card .category-count {
        font-size: 0.45rem;
    }
    
    .badge {
        font-size: 0.6rem;
    }
    
    .btn-sm {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-height: 30px;
    }
    
    .form-control,
    .form-select {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .card-header {
        padding: var(--spacing-md);
    }
    
    .card-footer {
        padding: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-card .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .feature-card h5 {
        font-size: 0.85rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .hero-section h1 {
        font-size: 1.2rem;
    }
    
    .subcategory-card .subcategory-image {
        height: 40px;
    }
    
    .subcategory-card .subcategory-label small {
        font-size: 0.45rem;
    }
    
    .property-card .card-img-top {
        height: 120px;
    }
    
    .property-card .card-title {
        font-size: 0.75rem;
    }
    
    .property-card .price {
        font-size: 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-card {
        padding: var(--spacing-sm);
    }
    
    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-card h5 {
        font-size: 0.8rem;
    }
    
    .feature-card p {
        font-size: 0.7rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subcategory-card .subcategory-label small {
        font-size: 0.55rem;
    }
    
    .property-card .card-img-top {
        height: 160px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }
}

@media (min-width: 769px) {
    .subcategory-card .subcategory-label small {
        font-size: 0.65rem;
    }
    
    .property-card .card-img-top {
        height: 200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xl);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-2xl);
    }
    
    .feature-card {
        padding: var(--spacing-2xl);
    }
}

/* ---------- PRINT ---------- */
@media print {
    .navbar,
    .footer,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-200) !important;
    }
    
    .body {
        background: white !important;
    }
}