:root {
    --primary-color: #ea483e;
    /* Logo Red - Matches Brand */
    --secondary-color: #c43c33;
    /* Darker Red */
    --dark-bg: #121212;
    /* Charcoal Black */
    --darker-bg: #0A0A0A;
    /* Deep Black */
    --card-bg: #1E1E1E;
    /* Dark Grey */
    --text-color: #F5F5F5;
    /* Off White */
    --text-muted: #B0B0B0;
    --white: #ffffff;
    --gold: #ea483e;
    /* Replaced Gold with Brand Red */
    --font-heading: 'Changa', sans-serif;
    --font-body: 'Cairo', sans-serif;
}

[data-theme="light"] {
    --dark-bg: #ffffff;
    --darker-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #212121;
    --text-muted: #555555;
}

/* [data-theme="light"] .logo img rule removed */


[data-theme="light"] .philosophy-card,
[data-theme="light"] .contact-map,
[data-theme="light"] .social-links a {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu-btn {
    color: var(--primary-color);
}

/* Settings Nav */
.settings-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 20px;
    margin-left: 20px;
}

/* Login Status Button */
.login-status-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-status-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.login-status-btn i {
    font-size: 0.9rem;
}

.login-status-btn.logged-in {
    background: rgba(234, 72, 62, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .login-status-btn {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .login-status-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .login-status-btn.logged-in {
    background: rgba(234, 72, 62, 0.08);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

[data-theme="light"] .icon-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 2rem, 1200px);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--darker-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-logo {
    height: 120px;
    width: auto;
    animation: pulse 1.5s infinite;
}

.loader-text {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.main-header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled .logo img {
    height: 40px;
}

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

.logo img {
    height: 75px;
    transition: all 0.3s ease;
}

.logo .logo-light {
    display: none;
}

.logo .logo-dark {
    display: block;
}

[data-theme="light"] .logo .logo-light {
    display: block;
}

[data-theme="light"] .logo .logo-dark {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    /* RTL */
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-gold,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cart-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cart-header:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 15px rgba(234, 72, 62, 0.5);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.btn-gold:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 15px rgba(234, 72, 62, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.6;
    /* Adjust visibility */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.4));
    z-index: 1;
}

/* CSS Logo Background */
.hsc-brand-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    user-select: none;
    line-height: 1;
    opacity: 0.08;
    z-index: 1;
}

.hero-watermark-logo {
    width: 60vw;
    max-width: 600px;
    height: auto;
    filter: grayscale(100%) brightness(2);
}

[data-theme="light"] .hsc-brand-display {
    opacity: 0.05;
}

[data-theme="light"] .hero-watermark-logo {
    filter: grayscale(100%) brightness(0);
}

/* Header Logo Text */
.logo-text {
    font-family: 'Russo One', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

[data-theme="light"] .logo-text {
    color: var(--primary-color);
}

.overlay {
    /* Removed overlay since we control opacity directly */
    display: none;
}

.hero-content {
    z-index: 10;
    padding-top: 60px;
}

.subtitle {
    display: block;
    font-size: clamp(0.9rem, 1.5vw + 0.3rem, 1.2rem);
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
    font-weight: 700;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw + 1rem, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to top, #ea483e, #fff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--white);
    /* Fallback */
}

.description {
    font-size: clamp(0.95rem, 1.2vw + 0.2rem, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto clamp(25px, 4vw, 40px);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* Scroll Reveal Animations */
.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-hidden.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for grid items */
.philosophy-card:nth-child(2) {
    transition-delay: 0.2s;
}

.philosophy-card:nth-child(3) {
    transition-delay: 0.4s;
}

.discipline-item:nth-child(2) {
    transition-delay: 0.1s;
}

.discipline-item:nth-child(3) {
    transition-delay: 0.2s;
}

.discipline-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Animations */
.fade-in-up {
    /* Kept for Hero independent animation on load */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.5s;
}

.delay-4 {
    animation-delay: 0.7s;
}

/* Philosophy Section */
.philosophy-section {
    padding: clamp(50px, 8vw, 100px) 0;
    background-color: var(--dark-bg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw + 0.5rem, 3rem);
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.line-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.philosophy-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: clamp(20px, 3vw, 40px) clamp(15px, 2vw, 30px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .philosophy-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .philosophy-card p {
    color: #444444;
}

[data-theme="light"] .philosophy-card h3 {
    color: #1a1a1a;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    border-color: rgba(234, 72, 62, 0.3);
}

.philosophy-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(234, 72, 62, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
}

[data-theme="light"] .card-icon {
    background: rgba(234, 72, 62, 0.08);
}

.philosophy-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.philosophy-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Disciplines Grid */
.disciplines-section {
    padding: clamp(40px, 7vw, 80px) 0;
    background: var(--darker-bg);
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 40px;
}

.discipline-item {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.discipline-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.discipline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.discipline-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.discipline-info p {
    color: #d0d0d0;
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    display: inline-block;
    transition: all 0.3s ease 0.2s;
}

.discipline-item:hover img {
    transform: scale(1.1);
}

.discipline-item:hover .discipline-info h3,
.discipline-item:hover .discipline-info p,
.discipline-item:hover .read-more {
    transform: translateY(0);
    opacity: 1;
}



/* Stats Section */
.stats-section {
    background: url('images/hero.png') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    padding: clamp(40px, 7vw, 80px) 0;
    text-align: center;
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: clamp(2.2rem, 4vw + 0.5rem, 3.5rem);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: clamp(0.85rem, 1.2vw + 0.2rem, 1.2rem);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.2vw, 2px);
}

/* Contact Section */
.contact-section {
    padding: clamp(50px, 8vw, 100px) 0;
    background: var(--dark-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info-box h2 {
    font-size: clamp(1.6rem, 3vw + 0.4rem, 3rem);
    margin-bottom: 20px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(234, 72, 62, 0.1);
    padding: 15px;
    border-radius: 50%;
}

[data-theme="light"] .info-item i {
    background: rgba(234, 72, 62, 0.08);
}

[data-theme="light"] .section-title {
    color: #1a1a1a;
}

[data-theme="light"] .section-desc {
    color: #444444;
}

[data-theme="light"] .contact-info-box h2 {
    color: #1a1a1a;
}

[data-theme="light"] .stat-number {
    color: var(--primary-color);
}

[data-theme="light"] .stat-label {
    color: #ffffff;
}

[data-theme="light"] .social-links a {
    color: var(--text-color);
    background: var(--darker-bg);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-brand p {
    color: #555555;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-map {
    height: 400px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder p {
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background: var(--darker-bg);
    padding: clamp(30px, 5vw, 60px) 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: clamp(1.6rem, 2vw + 0.4rem, 2rem);
    font-weight: 900;
    letter-spacing: clamp(2px, 0.5vw, 5px);
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: clamp(160px, 22vw, 220px);
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

/* New footer logo is full-color, no filter needed */

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-about {
    font-size: 0.85rem !important;
    line-height: 1.8;
    color: var(--text-muted) !important;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

[dir="ltr"] .footer-links h4::after,
[dir="ltr"] .footer-contact h4::after {
    right: auto;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s, padding-right 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 8px;
}

[dir="ltr"] .footer-links ul li a:hover {
    padding-right: 0;
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-contact-item i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s;
}

[data-theme="light"] .footer-social a {
    background: rgba(0, 0, 0, 0.05);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-bottom-text p {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsive */

/* ============================================= */
/* SUBSCRIPTIONS SECTION                         */
/* ============================================= */
.subscriptions-section {
    padding: clamp(40px, 7vw, 80px) 0;
    background: var(--darker-bg);
}

.subs-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 25px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.search-box {
    position: relative;
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

[data-theme="light"] .search-box input {
    border-color: rgba(0, 0, 0, 0.15);
    background: #fff;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.subscription-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .subscription-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(234, 72, 62, 0.15);
}

.card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.new-price {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
}

.btn-subscribe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-subscribe {
    background: #1a1a1a;
    color: #fff;
}

.btn-subscribe:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================= */
/* CART FLOATING BUTTON                          */
/* ============================================= */
.cart-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(234, 72, 62, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(234, 72, 62, 0.6);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: var(--primary-color);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================= */
/* CART SIDEBAR                                  */
/* ============================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--dark-bg);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .cart-sidebar {
    background: #ffffff;
    border-left-color: rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .cart-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.cart-close-btn:hover {
    color: var(--primary-color);
}

.cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 700;
}

.cart-breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Cart Items */
.cart-items {
    padding: 20px 25px;
    flex: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

[data-theme="light"] .cart-item {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 80px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cart-item-meta i {
    font-size: 0.75rem;
}

.cart-item-price {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-delete {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.cart-item-delete:hover {
    color: var(--primary-color);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.1rem;
}

/* Payment Details */
.payment-details {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
}

[data-theme="light"] .payment-details {
    border-top-color: rgba(0, 0, 0, 0.08);
}

.payment-details.visible {
    display: block;
}

.payment-details h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.discount-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.discount-code-row i {
    transition: transform 0.3s;
}

.discount-code-row i.rotated {
    transform: rotate(180deg);
}

.discount-input-wrapper {
    display: none;
    gap: 10px;
    margin-bottom: 15px;
}

.discount-input-wrapper.visible {
    display: flex;
}

.discount-input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    outline: none;
}

[data-theme="light"] .discount-input-wrapper input {
    border-color: rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
}

.btn-apply-discount {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    transition: opacity 0.3s;
}

.btn-apply-discount:hover {
    opacity: 0.85;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .payment-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.payment-label {
    color: var(--text-color);
    font-weight: 600;
}

.payment-value {
    color: var(--text-color);
    font-weight: 700;
}

.total-row {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .total-row {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.grand-total-row {
    padding: 15px 0;
    border-bottom: none;
}

.grand-total-row .payment-label,
.grand-total-row .payment-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.cart-actions {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
}

.btn-continue,
.btn-pay {
    flex: 1;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-rekaz {
    flex: 1;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-rekaz:hover {
    background: linear-gradient(135deg, #c0392b, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 72, 62, 0.4);
}

.btn-rekaz i {
    font-size: 0.85rem;
}

.cart-header-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

/* Rekaz Checkout Modal */
.rekaz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.rekaz-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rekaz-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 800px;
    height: 90vh;
    background: #fff;
    border-radius: 16px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.rekaz-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.rekaz-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
}

.rekaz-modal-header h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.rekaz-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.rekaz-modal-close:hover {
    color: var(--primary-color);
}

.rekaz-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

@media (max-width: 768px) {
    .rekaz-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }

    .rekaz-modal.active {
        transform: translateY(0);
    }
}

[data-theme="light"] .btn-continue,
[data-theme="light"] .btn-pay {
    background: #1a1a1a;
    color: #fff;
}

.btn-continue:hover,
.btn-pay:hover {
    background: var(--primary-color);
}

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

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

.btn-back {
    flex: 1;
    padding: 14px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-back {
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cart Step */
.cart-step.hidden {
    display: none;
}

/* Info Form */
.info-form {
    padding: 25px;
}

.info-form h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    border-color: rgba(0, 0, 0, 0.12);
    background: #f8f8f8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Payment Methods */
.payment-methods {
    padding: 25px;
}

.payment-methods h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

[data-theme="light"] .method-option {
    border-color: rgba(0, 0, 0, 0.08);
}

.method-option:hover,
.method-option.selected {
    border-color: var(--primary-color);
    background: rgba(234, 72, 62, 0.05);
}

.method-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-option.selected .method-radio {
    border-color: var(--primary-color);
}

.radio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.3s;
}

.method-option.selected .radio-dot {
    background: var(--primary-color);
}

.method-option i {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.method-option.selected i {
    color: var(--primary-color);
}

.method-logos {
    display: flex;
    gap: 8px;
    margin-right: auto;
    margin-left: 10px;
}

.method-logo {
    height: 22px;
    width: auto;
}

.card-form {
    margin-top: 15px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: none;
}

[data-theme="light"] .card-form {
    background: #f8f8f8;
    border-color: rgba(0, 0, 0, 0.06);
}

.card-form.visible {
    display: block;
}

.payment-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .payment-summary {
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* ============================================= */
/* PHONE VERIFICATION MODAL                      */
/* ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.phone-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--dark-bg);
    width: 420px;
    max-width: 92vw;
    border-radius: 20px;
    padding: 40px 30px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .phone-modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.phone-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .modal-icon {
    background: #f5f5f5;
}

.modal-icon i {
    font-size: 2.2rem;
    color: var(--text-muted);
}

.phone-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.phone-input-group label {
    display: block;
    text-align: right;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.phone-input-wrapper {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

[data-theme="light"] .phone-input-wrapper {
    border-color: rgba(0, 0, 0, 0.15);
}

.country-code {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    background: var(--card-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .country-code {
    background: #f5f5f5;
    border-left-color: rgba(0, 0, 0, 0.1);
}

.flag-icon {
    width: 28px;
    height: 20px;
    border-radius: 3px;
}

.country-code select {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    padding: 14px 15px;
    border: none;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}

[data-theme="light"] .phone-input-wrapper input[type="tel"] {
    background: #fff;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-login {
    background: #1a1a1a;
    color: #fff;
}

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

/* OTP */
.otp-step {
    margin-top: 20px;
}

.otp-step.hidden {
    display: none;
}

.otp-step p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    direction: ltr;
}

.otp-input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s;
}

[data-theme="light"] .otp-input {
    border-color: rgba(0, 0, 0, 0.15);
    background: #f8f8f8;
}

.otp-input:focus {
    border-color: var(--primary-color);
}

/* Dev Mode Hint */
.dev-mode-hint {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #ffc107;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

[data-theme="light"] .dev-mode-hint {
    background: rgba(255, 193, 7, 0.08);
    color: #b38600;
}

/* ============================================= */
/* MOBILE MENU                                   */
/* ============================================= */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--darker-bg);
    z-index: 9999;
    padding: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-header .logo img {
    height: 45px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.mobile-nav-links {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-links a i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.mobile-nav-links a:hover {
    background: rgba(234, 72, 62, 0.08);
    color: var(--primary-color);
    padding-right: 30px;
}

.mobile-menu-cta {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-cta .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
}

[data-theme="light"] .mobile-menu {
    background: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mobile-menu-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav-links li {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mobile-nav-links a:hover {
    background: rgba(234, 72, 62, 0.05);
}

[data-theme="light"] .mobile-menu-cta {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ============================================= */
/* TOAST NOTIFICATION                            */
/* ============================================= */
.toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-family: var(--font-body);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
    bottom: 30px;
}

.toast i {
    font-size: 1.2rem;
}

/* ============================================= */
/* RESPONSIVE — CONSOLIDATED & DYNAMIC           */
/* ============================================= */

/* --- Tablet landscape & small desktops --- */
@media (max-width: 992px) {
    .disciplines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

/* --- Tablet portrait & large phones --- */
@media (max-width: 768px) {

    .nav-links,
    .header-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .large-span {
        grid-column: span 1;
    }

    .stats-container {
        flex-direction: column;
        gap: clamp(25px, 5vw, 40px);
    }

    .contact-map {
        height: 300px;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .footer-links ul li {
        margin-bottom: 0;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-text p {
        font-size: 0.75rem;
    }

    .contact-wrapper {
        gap: 40px;
    }

    .main-footer {
        margin-top: 0;
        padding-top: 40px;
        padding-bottom: 30px;
    }

    /* Subscriptions & Cart */
    .subscriptions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .cart-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .cart-actions {
        flex-direction: column;
    }

    .subs-filters {
        flex-wrap: wrap;
    }
}

/* --- Phones --- */
@media (max-width: 480px) {

    /* Hero adjustments */
    .hsc-brand-display {
        top: 25%;
        width: 100%;
    }

    .hero-watermark-logo {
        width: 80vw;
    }

    .hero-bg {
        background-color: var(--dark-bg);
    }

    .hero-content {
        margin-top: clamp(30vh, 35vw + 10vh, 45vh);
        position: relative;
        z-index: 20;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-gold,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .info-item i {
        margin-bottom: 5px;
    }

    .social-links {
        justify-content: center;
    }

    /* Subscriptions */
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .phone-modal {
        padding: 30px 20px;
    }

    .main-footer {
        margin-top: 0;
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* --- Very small phones (iPhone SE, etc.) --- */
@media (max-width: 375px) {

    .hero-content {
        margin-top: clamp(25vh, 30vw + 8vh, 40vh);
    }

    .hero-actions {
        padding: 0 10px;
    }

    .philosophy-grid {
        gap: 15px;
    }

    .discipline-item {
        min-height: 160px;
    }

    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .contact-map {
        height: 250px;
    }

    .logo img {
        height: 55px;
    }

    .main-header.scrolled .logo img {
        height: 35px;
    }
}

/* --- Safe Area (notched devices) --- */
@supports (padding: env(safe-area-inset-top)) {
    .main-header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .cart-sidebar {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .cart-float-btn {
        bottom: calc(30px + env(safe-area-inset-bottom));
        left: calc(30px + env(safe-area-inset-left));
    }
}

/* ============================================= */
/* SUCCESS MODAL                                 */
/* ============================================= */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--dark-bg);
    width: 420px;
    max-width: 92vw;
    border-radius: 20px;
    padding: 50px 30px 40px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .success-modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 4rem;
    color: #28a745;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

/* ============================================= */
/* WHATSAPP FLOATING BUTTON                      */
/* ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

.success-modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.success-modal .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ============================================= */
/* DISCOUNT ROW                                  */
/* ============================================= */
.discount-row .discount-value {
    color: #28a745;
    font-weight: 700;
}

/* ============================================= */
/* MOBILE LOGIN LINK                             */
/* ============================================= */
.mobile-login-link {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 10px;
    padding-top: 15px !important;
}

.mobile-login-link i {
    color: var(--primary-color);
}

[data-theme="light"] .mobile-login-link {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================= */
/* RESPONSIVE - LOGIN BUTTON                     */
/* ============================================= */
@media (max-width: 768px) {
    .login-status-btn {
        display: none;
    }
}