:root {
    --bg-color: #0a0a0a;
    --primary-gold: #C08A1E; /* Deeper, richer gold to avoid yellow tint on mobile */
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(192, 138, 30, 0.2);
    --card-bg: #0f0f0f;
    --card-image-bg: #1a1a1a;
    --manifesto-bg: rgba(20, 20, 20, 0.6);
    --footer-bg: #050505;
}

body[data-theme="light"] {
    --bg-color: #f5f5f5;
    --primary-gold: #C08A1E; /* Keep same rich gold in light theme */
    --text-light: #111111;
    --text-muted: #555555;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(154, 106, 18, 0.3);
    --card-bg: #ffffff;
    --card-image-bg: #e0e0e0;
    --manifesto-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #eaeaea;
}

@import url('https://fonts.cdnfonts.com/css/apple-color-emoji');

@font-face {
    font-family: 'Vipnagorgialla';
    src: local('Vipnagorgialla'), local('Vipnagorgialla-Regular'); /* Ensure client has font installed or provided */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'IBM Plex Sans Arabic', 'Inter', 'Apple Color Emoji', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
    width: 100%;
}

/* Global Responsive Base */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* iOS fixes */
input, select, textarea {
    font-size: 16px; /* Prevents zoom on input focus in iOS */
    -webkit-appearance: none; /* Removes default iOS styling */
    appearance: none;
    border-radius: 4px;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    color: var(--text-light);
    font-family: inherit;
    font-size: 16px;
}

button {
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
    touch-action: manipulation; /* Improve touch response */
}

/* Animated Glowing Honeycomb Lines */
body::before {
    content: '';
    position: absolute; /* Changed from fixed so it moves with scroll */
    top: 0; left: 0; right: 0; bottom: 0;
    /* Create the moving golden light over a dark background */
    background: 
        linear-gradient(110deg, transparent 40%, rgba(212, 175, 55, 0.8) 50%, transparent 60%) 0 0 / 200% 200%,
        #050505; /* Dark background to keep lines mostly dark */
    
    /* Use the honeycomb path as a mask so ONLY the lines show the background */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='56' height='96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16L28 0L56 16M0 48L28 64L56 48M0 16v32M28 64v32' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='56' height='96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16L28 0L56 16M0 48L28 64L56 48M0 16v32M28 64v32' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    -webkit-mask-size: 56px 96px;
    mask-size: 56px 96px;
    
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    animation: shineLine 5.5s linear infinite;
    transition: opacity 0.4s ease;
}

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

/* Light mode honeycomb lines */
body[data-theme="light"] body::before {
    background: 
        linear-gradient(110deg, transparent 40%, rgba(179, 143, 34, 0.9) 50%, transparent 60%) 0 0 / 200% 200%,
        #e0e0e0; /* Light background for the lines */
}

h1, h2, h3, h4, h5, h6, .section-title, .hero-title, .panel-title, .card-content h3 {
    text-transform: uppercase;
    font-weight: 900 !important; /* Forces bold headers everywhere per request */
}

/* Custom transformation class to emphasize speed and dominance */
.heading-speed {
    font-style: italic;
    font-weight: 900;
    transform: skewX(-8deg);
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

/* Admin Navbar Styling (RTL/LTR) */
.admin-navbar {
    flex-direction: row;
}

.admin-navbar-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    order: 1;
}

[dir="rtl"] .admin-navbar-logo-section {
    /* RTL: Logo on right, title on left (flex-direction: row keeps natural order) */
    flex-direction: row;
}

[dir="ltr"] .admin-navbar-logo-section {
    /* LTR: Logo should show on the left in natural flow */
    flex-direction: row;
}

.admin-navbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 2;
    flex-direction: row;
}

/* Main Site Navbar Logo Section */
.navbar-logo-section {
    display: flex;
    align-items: center;
    order: 1;
    min-width: 80px; /* Ensure space for logo */
    justify-content: center;
}

[dir="rtl"] .navbar-logo-section {
    /* RTL: Logo on right - use order to position */
    order: 3;
}

[dir="ltr"] .navbar-logo-section {
    /* LTR: Logo on left */
    order: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-logo-img:hover {
    transform: scale(1.08); /* Slight POP effect */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    order: 2;
}

[dir="rtl"] .nav-links {
    /* RTL: Nav on left */
    order: 1;
}

[dir="ltr"] .nav-links {
    /* LTR: Nav on right */
    order: 2;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-gold);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.lang-select {
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-select:hover, .lang-select:focus {
    border-color: var(--primary-gold);
}

body[data-theme="light"] .lang-select {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}

body[data-theme="light"] .navbar-logo-img {
    filter: none; /* Keep gold color in light theme */
}

body[data-theme="light"] .navbar-logo-img:hover {
    filter: none; /* Keep gold color on hover in light theme */
}

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

body[data-theme="light"] .theme-btn:hover {
    background: rgba(192, 138, 30, 0.2);
    color: var(--primary-gold);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-gold);
}

/* RTL / LTR Adjustments */
[dir="ltr"] .heading-speed {
    transform: skewX(8deg); /* Reverse skew for LTR */
}

[dir="ltr"] .card-content {
    text-align: left;
}

[dir="ltr"] .about .manifesto {
    text-align: left;
    text-align-last: left;
}

[dir="ltr"] .tag {
    right: auto;
    left: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
}

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

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--primary-gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
}

/* Sections */
section {
    padding: 120px 5% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
}

.hero-title {
    font-size: 5.5rem;
    color: var(--text-light);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
}

.hero-subtext {
    font-size: 1.6rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* About Section */
.about .manifesto {
    font-size: 1.5rem;
    max-width: 900px;
    color: var(--text-muted);
    line-height: 2.2;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    background: var(--manifesto-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 20px rgba(212, 175, 55, 0.05);
    text-align: justify;
    text-align-last: center;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Gear Section */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3.5rem;
    width: 100%;
    max-width: 1100px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.card-image {
    height: 300px;
    background-color: var(--card-image-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-color 0.4s ease;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to top, #0f0f0f, transparent);
}

.jersey-bg { 
    background-image: url('jersey-911.jpg');
    background-size: cover;
    background-position: center top; 
}
.chair-bg { background: linear-gradient(135deg, #2a2a2a, #111); }

.card-content {
    padding: 2.5rem;
    text-align: right;
}

.card-content h3 {
    color: var(--primary-gold);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tag {
    position: absolute;
    top: 20px; right: 20px;
    background: #a80000;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Recruitment */
.recruitment {
    min-height: 70vh;
}

.recruitment p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    transition: background-color 0.4s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

.copyright {
    color: #666;
    font-size: 1rem;
    margin-top: 2rem;
}

/* Store Product Page */
.store-product {
    min-height: 100vh;
    padding-top: 150px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        margin: 0 auto;
        width: calc(100% - 20px);
        align-items: center;
    }
}

@media (max-width: 600px) {
    .product-container {
        padding: 1rem;
        width: calc(100% - 10px);
    }
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-image-bg);
}

@media (max-width: 768px) {
    .main-image {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .main-image {
        height: 280px;
    }
}

.main-image img.store-jersey-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-info {
        min-width: 100%;
    }
}

.product-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .product-title {
        font-size: 1.6rem;
    }
}

.product-price {
    font-size: 2rem;
    color: var(--primary-gold);
    font-weight: bold;
    margin-bottom: 2rem;
}

.product-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.product-options {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.option-group label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: bold;
}

.size-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.size-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.size-btn.active {
    background: var(--primary-gold);
    color: var(--bg-color);
    border-color: var(--primary-gold);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 140px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

#qty-input {
    width: 50px;
    height: 45px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    color: var(--text-light);
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    outline: none;
}

.btn-full-width {
    width: 100%;
    font-size: 1.3rem;
    padding: 1.2rem;
}

.secure-checkout {
    text-align: center;
    color: #4CAF50;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ========================================= */
/* Fahoody AI Mascot Widget                  */
/* ========================================= */
.fahoody-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: inherit;
    font-weight: bold;
}

[dir="ltr"] .fahoody-widget {
    right: auto;
    left: 30px;
}

.fahoody-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-color));
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fahoody-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

.fahoody-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 8px #4CAF50;
    animation: pulseDot 2s infinite;
}

[dir="ltr"] .fahoody-status-dot {
    right: auto;
    left: 2px;
}

@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.fahoody-chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9998;
}

[dir="ltr"] .fahoody-chat-window {
    right: auto;
    left: 20px;
    transform-origin: bottom left;
}

.fahoody-chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fahoody-header {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fahoody-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.fahoody-avatar {
    font-size: 1.8rem;
    background: var(--card-bg);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
}

.fahoody-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

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

.fahoody-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Scrollbar for chat */
.fahoody-messages::-webkit-scrollbar {
    width: 6px;
}
.fahoody-messages::-webkit-scrollbar-track {
    background: transparent;
}
.fahoody-messages::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.fahoody-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeInMsg 0.3s ease forwards;
}

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

.fahoody-msg-bot {
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-bottom-right-radius: 2px;
    align-self: flex-start;
}

[dir="ltr"] .fahoody-msg-bot {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 2px;
}

.fahoody-msg-user {
    background: var(--primary-gold);
    color: #000;
    border-bottom-left-radius: 2px;
    align-self: flex-end;
}

[dir="ltr"] .fahoody-msg-user {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 2px;
}

.fahoody-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
}

.fahoody-input {
    flex: 1;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.fahoody-send-btn {
    background: var(--primary-gold);
    border: none;
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fahoody-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

[dir="ltr"] .fahoody-send-btn {
    transform: scaleX(-1); /* Flip arrow for LTR */
}
[dir="ltr"] .fahoody-send-btn:hover {
    transform: scaleX(-1) scale(1.05); 
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title { font-size: 4.5rem; }
}

@media (max-width: 1024px) {
    /* iPad landscape optimization */
    .navbar { 
        padding: 1rem 4%; 
    }

    .nav-links {
        gap: 2rem;
    }

    .hero-title { 
        font-size: 3.8rem; 
    }

    .hero-subtext { 
        font-size: 1.25rem; 
    }

    .section-title { 
        font-size: 2.8rem; 
    }

    section { 
        padding: 100px 4% 60px; 
    }

    .gear-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .product-container {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .navbar { 
        padding: 0.9rem 4%; 
    }

    .hero-title { 
        font-size: 3.2rem; 
    }

    .hero-subtext { 
        font-size: 1.2rem; 
    }

    .section-title { 
        font-size: 2.5rem; 
    }

    section { 
        padding: 90px 4% 55px; 
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px; /* Slightly smaller base font on mobile */
    }

    /* Navbar Mobile */
    .navbar {
        padding: 0.8rem 3%; /* Reduced padding for mobile */
        flex-wrap: wrap;
        gap: 1rem;
    }

    .logo-container {
        flex: 1;
        min-width: 50px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; right: 0; left: 0; width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        gap: 0.8rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .nav-links li a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .nav-links.active { 
        display: flex; 
        animation: slideDown 0.3s ease forwards; 
    }

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

    .menu-toggle { 
        display: block; 
        font-size: 1.8rem; 
        order: 3;
        padding: 0.3rem 0.5rem;
    }

    .navbar-logo-img, img[alt="911 Logo"] { 
        height: 40px; /* Smaller logo on mobile */
        width: auto;
    }

    /* Hero Mobile */
    .hero {
        padding-top: 100px;
    }

    .hero-title { 
        font-size: 2.2rem; 
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
        word-break: break-word;
    }

    .hero-subtext { 
        font-size: 1rem; 
        margin-bottom: 2rem; 
        padding: 0 5px;
        line-height: 1.6;
    }

    .hero-ctas { 
        flex-direction: column; 
        width: 100%; 
        max-width: 100%; 
        gap: 0.8rem;
        padding: 0 3%;
    }

    .btn { 
        width: 100%; 
        padding: 0.9rem 1.2rem; 
        font-size: 1rem;
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Sections Mobile */
    section { 
        padding: 70px 5% 40px; 
        min-height: auto;
        margin-top: 40px;
    }

    .section-title { 
        font-size: 1.8rem; 
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }
    
    /* About Mobile */
    .about .manifesto { 
        font-size: 0.95rem; 
        line-height: 1.7; 
        padding: 1.2rem; 
        text-align: center; /* Better readability on small screens */
        text-align-last: center;
        border-radius: 8px;
    }

    .about .manifesto h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .about .manifesto h4 {
        font-size: 1.1rem;
    }

    .about .manifesto ul {
        padding-right: 1rem;
    }

    .about .manifesto li {
        font-size: 0.9rem;
    }
    
    /* Gear Mobile */
    .gear-grid { 
        gap: 1.5rem;
        padding: 0 3%;
    }

    .card-image { height: 220px; }

    .card-content { 
        padding: 1.2rem; 
        text-align: center; 
    }

    .card-content h3 { 
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }
    
    /* Recruitment Mobile */
    .recruitment {
        min-height: auto;
    }

    .recruitment p {
        font-size: 1.2rem;
        padding: 0 3%;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    footer { 
        padding: 2rem 5% 1rem; 
    }

    .social-links { 
        flex-direction: column; 
        gap: 1rem; 
    }

    /* Fahoody Widget Mobile */
    .fahoody-widget {
        bottom: 15px;
        right: 15px;
    }

    .fahoody-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .fahoody-chat-window {
        position: fixed;
        width: calc(100vw - 30px);
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 120px);
        bottom: 70px;
        right: 15px;
        left: auto;
        transform: translateY(0);
    }

    [dir="ltr"] .fahoody-chat-window {
        left: 15px;
        right: auto;
    }

    .fahoody-messages {
        max-height: calc(100vh - 350px);
        min-height: 150px;
    }

    .fahoody-header {
        padding: 0.8rem 1rem;
    }

    .fahoody-input-area {
        padding: 0.8rem;
    }
}

@media (max-width: 600px) {
    /* Extra optimizations for phones */
    .navbar {
        padding: 0.6rem 2%;
    }

    .nav-links li a {
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 90px;
    }

    .hero-title { 
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.6rem;
    }

    .hero-subtext { 
        font-size: 0.95rem; 
        margin-bottom: 1.8rem; 
    }

    .section-title { 
        font-size: 1.5rem; 
        margin-bottom: 1.8rem;
    }

    section {
        padding: 60px 4% 30px;
    }

    .about .manifesto { 
        font-size: 0.9rem; 
        padding: 1rem; 
        line-height: 1.6;
    }

    .about .manifesto h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .about .manifesto h4 {
        font-size: 0.95rem;
    }

    .card-image { height: 180px; }

    .card-content h3 { font-size: 1.1rem; }

    .recruitment p {
        font-size: 1rem;
    }

    .btn-large { 
        padding: 0.9rem 1.5rem; 
        font-size: 1rem;
        min-height: 44px;
    }

    .fahoody-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .fahoody-chat-window {
        width: calc(100vw - 20px);
        max-width: 300px;
        height: auto;
        max-height: calc(100vh - 110px);
        bottom: 65px;
        right: 10px;
        left: auto;
    }

    [dir="ltr"] .fahoody-chat-window {
        left: 10px;
        right: auto;
    }

    .fahoody-messages {
        max-height: calc(100vh - 330px);
        min-height: 120px;
    }
}

@media (max-width: 380px) {
    /* Extra small devices (iPhone SE, etc.) */
    .hero-title { 
        font-size: 1.5rem;
        letter-spacing: 0;
    }

    .hero-subtext { 
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .section-title { 
        font-size: 1.3rem; 
        margin-bottom: 1.5rem;
    }

    section {
        padding: 50px 3% 25px;
    }

    .about .manifesto {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .btn { 
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .menu-toggle {
        font-size: 1.5rem;
    }

    .fahoody-widget {
        bottom: 10px;
        right: 10px;
    }

    .fahoody-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .fahoody-chat-window {
        width: calc(100vw - 15px);
        max-width: 280px;
        height: auto;
        max-height: calc(100vh - 100px);
        bottom: 60px;
        right: 8px;
        left: auto;
    }

    [dir="ltr"] .fahoody-chat-window {
        left: 8px;
        right: auto;
    }

    .fahoody-messages {
        max-height: calc(100vh - 310px);
        min-height: 100px;
        padding: 1rem 0.8rem;
    }

    .fahoody-header {
        padding: 0.6rem 0.8rem;
    }

    .fahoody-input-area {
        padding: 0.6rem;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        padding-top: 60px;
    }
}
    margin-top: 2rem;
}

.agents-list h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.agent-item span {
    font-size: 0.9rem;
}

.direct-chat-btn {
    background: var(--primary-gold);
    color: #000;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.direct-chat-btn:hover {
    background: #FFD700;
}
.admin-dashboard {
    padding-top: 80px;
}

.admin-container {
    display: flex;
    min-height: calc(100vh - 80px); /* Minus header */
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

[dir="ltr"] .admin-sidebar {
    border-right: 1px solid var(--glass-border);
    border-left: none;
}

.ceo-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.ceo-avatar {
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent);
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.ceo-profile h4 {
    margin: 0 0 0.5rem; color: var(--text-light); font-size: 1.2rem;
}

.ceo-profile p {
    margin: 0; color: var(--primary-gold); font-size: 0.9rem;
}

.admin-nav ul {
    list-style: none; padding: 0; margin: 0;
}

.admin-nav a {
    display: block;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 2rem 3rem;
    /* padding reset to top not centered vertically like default sections */
    display: block; 
    min-height: auto;
    text-align: right;
}

[dir="ltr"] .admin-content {
    text-align: left;
}

.admin-title {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link img {
    height: 50px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 1rem 0;
}

.stat-desc {
    font-size: 0.9rem;
    color: #4CAF50;
}

/* Panels */
.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.panel-title {
    font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--text-light);
}

.mt-4 { margin-top: 2rem; }

/* Traffic Chart (Simulated) */
.chart-container {
    display: flex; flex-direction: column; gap: 1rem;
}

.chart-bar-group {
    display: flex; align-items: center; gap: 1rem;
}

.chart-label {
    min-width: 150px; color: var(--text-muted); font-size: 0.9rem;
}

.bar-bg {
    flex: 1; height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; overflow: hidden;
}

.bar-fill {
    height: 100%; background: var(--primary-gold); border-radius: 6px;
}

.chart-value {
    min-width: 40px; font-weight: bold; color: var(--text-light);
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%; border-collapse: collapse; text-align: right;
}

[dir="ltr"] .admin-table { text-align: left; }

.admin-table th, .admin-table td {
    padding: 1rem; border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255,255,255,0.05); color: var(--primary-gold); font-weight: bold;
}

.admin-table td { color: var(--text-muted); }

.status-badge {
    padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.8rem; font-weight: bold;
}

.status-badge.pending { background: rgba(255, 165, 0, 0.2); color: orange; border: 1px solid orange;}
.status-badge.approved { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 1px solid #4CAF50;}

@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 1rem; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .gear-grid, .admin-features-grid { grid-template-columns: 1fr !important; }
    .product-container { flex-direction: column; padding: 1.5rem; }
    .main-image { height: 300px; }
    .about-content { padding: 3rem 1rem; }
    .social-links { gap: 1.5rem; }
    
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .chart-bar-group { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .chart-label { min-width: auto; }
}

/* ========================================= */
/* 📱 Deep Responsive Design: Phase 3 (Mobile & Tablets) */
/* ========================================= */

/* Tablets & iPads (1024px and below) */
@media screen and (max-width: 1024px) {
    .navbar { padding: 1rem 5%; }
    .nav-links { gap: 1.5rem; }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-title { font-size: 3rem; }
    
    section { padding: 100px 5% 50px; }
    .about .manifesto { padding: 2rem; font-size: 1.2rem; }
    
    /* Grids */
    .vision-grid, .gear-grid, .leaders-grid, .admin-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    /* Store App Layout */
    .product-container { flex-direction: column; padding: 2rem; gap: 2rem; }
    .product-info { align-items: center; text-align: center; }
    .size-selector { justify-content: center; }

    /* Admin Dashboards */
    .admin-dashboard { padding-top: 100px; padding-left: 1rem; padding-right: 1rem; }
    .join-container { padding: 2rem !important; }
    .join-container h1 { font-size: 2rem !important; }
}

/* Mobile Phones (768px and below) */
@media screen and (max-width: 768px) {
    html { font-size: 14px; }
    
    /* Navigation Sidebar for Mobile */
    .menu-toggle { display: block; z-index: 1001; }
    .nav-links {
        display: none; /* Changed from original active state logic to fix bugs */
        position: fixed; top: 0; left: 0; height: 100vh; width: 100vw;
        background: var(--glass-bg); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 2rem; transform: translateY(-100%); transition: transform 0.4s ease;
        z-index: 1000;
        border-bottom: none;
    }
    .nav-links.active { display: flex; transform: translateY(0); }
    
    /* Hero */
    .hero { min-height: 80vh; padding: 0 1rem; }
    .hero-title { font-size: 2.5rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 2rem;}
    .hero-subtext { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    
    /* Grids to Single Column */
    .vision-grid, .gear-grid, .leaders-grid, .services-grid, .admin-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Buttons */
    .btn { padding: 0.8rem 1.5rem; font-size: 1rem; width: 100%; text-align: center; }
    .btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding-inline: 1rem; }
    
    /* Cards */
    .card-content h3 { font-size: 1.4rem; }
    .card-content p { font-size: 1rem; }
    
    /* Adjust Panels */
    .admin-panel, .vision-card, .gear-item, .leader-card, .service-card {
        margin-bottom: 1rem;
    }
    
    /* Specific overrides for single column forced grids */
    .admin-panel[style*="column: span 2"] {
        grid-column: span 1 !important;
    }
    
    /* AI Agents Terminal Mobile Adjustments */
    .admin-panel > div[style*="display:flex"],
    .admin-panel > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Fahoody Chatbot Mobile */
    .fahoody-widget { bottom: 15px; right: 15px; }
    [dir="ltr"] .fahoody-widget { left: 15px; right: auto; }
    
    .fahoody-chat-window {
        width: 90vw; bottom: 80px; left: 50%; right: auto;
        transform: translate(-50%, 20px) scale(0.95) !important;
        transform-origin: bottom center !important;
        max-width: 400px;
        height: 60vh;
    }
    .fahoody-chat-window.open { transform: translate(-50%, 0) scale(1) !important; }
    
    /* Join Form Mobile */
    .join-section { padding-top: 100px !important; }
}

/* Additional alignment fixes for small and medium devices */
@media screen and (max-width: 992px) {
    .admin-container, .product-container, .section, .page-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .admin-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--glass-border) !important;
        padding: 1rem !important;
    }

    .admin-content {
        width: 100% !important;
        padding: 1rem !important;
    }

    .product-gallery, .product-info {
        width: 100% !important;
        min-width: 100% !important;
    }

    .main-image {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .nav-links, .admin-nav {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nav-links li, .admin-nav a {
        width: 100% !important;
        margin: 0 !important;
    }

    .admin-table {
        font-size: 0.9rem !important;
    }
}

@media screen and (max-width: 640px) {
    .hero, .store-product, .admin-dashboard, .page-section {
        padding: 1rem 0.5rem !important;
    }

    .product-info, .product-gallery {
        padding: 0 !important;
    }

    .product-title { font-size: 1.4rem !important; }
    .product-price { font-size: 1.2rem !important; }
}

    .join-container { padding: 1.5rem !important; border: none !important; box-shadow: none !important; }
    .join-container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Admin Structure Mobile App Style */
    .admin-container { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); position: relative; height: auto; padding: 1rem;}
    .admin-nav ul { display: flex; overflow-x: auto; white-space: nowrap; padding-bottom: 0.5rem; scrollbar-width: none; }
    .admin-nav ul::-webkit-scrollbar { display: none; }
    .admin-nav li { display: inline-block; margin-bottom: 0; margin-left: 0.5rem; }
    .admin-nav a { padding: 0.5rem 1rem; }
    .ceo-profile { display: flex; align-items: center; gap: 1rem; text-align: right; margin-bottom: 1rem; }
    .ceo-avatar { font-size: 2rem; width: 50px; height: 50px; margin: 0; }
    
    /* Footer */
    footer { padding: 2rem 1rem; }
}

/* Very Small Phones (480px and below) */
@media screen and (max-width: 480px) {
    .navbar { padding: 1rem; }
    .navbar-logo-img { height: 35px; }
    .hero-title { font-size: 2rem; }
    
    /* Force internal grid elements to column */
    .admin-panel > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust flex layouts in panels deeply */
    .admin-panel > div[style*="display: flex"], 
    .admin-panel > div > div[style*="display:flex"],
    .admin-panel > div > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* exceptions for switches */
    .switch { flex-direction: row !important; align-items: center !important; }
    
    /* Fix specific charts/graphics for mobile */
    .bar-chart { height: 150px; }
    #financial-3d-chart { transform: none !important; pointer-events: none; }
    
    /* Adjust table for mobile - Card Style Data */
    table, th, td { font-size: 0.8rem; padding: 0.5rem !important; }
    th { display: none; } /* Hide headers on small mobile */
    tr { display: flex; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid var(--glass-border); }
    td { width: 100%; text-align: right; display: flex; justify-content: space-between; }
    td::before { content: attr(data-label); font-weight: bold; color: var(--primary-gold); margin-left: auto; padding-left: 1rem;}
}
