/* 
  Charly Tech & Luxe Partners - Premium Design System 2.0
  Identity: "Neon Future" - Night Blue, Deep Black, Neon Cyan
*/

:root {
    /* Colors - Premium Palette */
    --color-bg-primary: #000000;
    /* Deep Black */
    --color-bg-secondary: #0A1F3D;
    /* Night Blue */
    --color-bg-tertiary: #112A50;
    /* Lighter Blue for Cards */

    --color-text-primary: #FFFFFF;
    --color-text-secondary: #E5E5E5;
    /* Light Grey */
    --color-text-muted: #A0A0A0;

    --color-accent: #00AEEF;
    /* Neon Cyan */
    --color-accent-glow: rgba(0, 174, 239, 0.5);
    --color-accent-hover: #00CFFF;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(0, 174, 239, 0.4);

    --color-success: #00FF94;
    --color-warning: #FFB340;
    --color-danger: #FF2E2E;

    /* Typography - SF Pro Style */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --sidebar-width: 300px;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-neon: 0 0 20px var(--color-accent-glow);

    --anim-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --anim-fast: 0.3s ease-out;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--anim-fast);
}

ul {
    list-style: none;
}

button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Typography Logic */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-weight: var(--fw-light);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.text-gold {
    color: #FFD700;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.full-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 99px;
    font-weight: var(--fw-medium);
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: all var(--anim-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 0 15px var(--color-accent-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--color-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.btn-block {
    width: 100%;
}

/* Components: Cards */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all var(--anim-fast);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-neon);
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 16, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.9rem;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.nav-item:hover,
.nav-item.active {
    opacity: 1;
    color: var(--color-accent);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
}

.dash-sidebar {
    width: var(--sidebar-width);
    background: var(--color-bg-secondary);
    border-right: 1px solid var(--color-border);
    padding: 2rem;
    position: fixed;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.dash-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 3rem;
    background: radial-gradient(circle at top right, #112A50 0%, #000000 60%);
}

.dash-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}

.dash-menu-item:hover,
.dash-menu-item.active {
    background: rgba(0, 174, 239, 0.1);
    color: var(--color-accent);
}

/* Chat Interface (Full Height) */
.chat-window {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 6rem);
    background: rgba(10, 31, 61, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chat-history {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-bubble {
    max-width: 70%;
    padding: 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.bubble-user {
    align-self: flex-end;
    background: var(--color-accent);
    color: #000;
    border-radius: 20px 20px 4px 20px;
    font-weight: var(--fw-medium);
}

.bubble-ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 4px 20px 20px 20px;
}

.chat-input-box {
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 1rem;
}

.chat-field {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    border-radius: 99px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.chat-field:focus {
    border-color: var(--color-accent);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal-overlay.hidden {
    pointer-events: none;
    opacity: 0;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-soft);
}

/* Views Specifics */
.hero-minimal {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #0A1F3D 0%, #000000 70%);
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.beta-banner {
    background: var(--color-accent);
    color: #000;
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    width: 100%;
    top: var(--header-height);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.section-full {
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s var(--anim-slow) forwards;
    opacity: 0;
}

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

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

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

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

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

/* Mobile Navigation & Layout */
@media (max-width: 1024px) {

    /* 1. Global Spacing & Typography */
    :root {
        --container-width: 100%;
        --header-height: 70px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .section-full {
        padding: 6rem 0;
    }

    /* 2. Layout Grid Resets */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 3. Header & Navigation */
    .header-inner {
        padding: 0 1.25rem;
        height: var(--header-height);
        flex-direction: row;
        /* Keep logo and burger side by side */
    }

    .logo {
        font-size: 1.1rem;
        z-index: 1001;
        /* Above menu overlay */
    }

    /* Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 10, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1999;
        /* Boosted to overlay everything */
        padding-top: var(--header-height);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-item {
        font-size: 1.5rem;
        font-weight: 300;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-links.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation for Items */
    .nav-links.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    /* Hamburger Button */
    .mobile-menu-btn {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 2000;
        /* Highest priority */
        background: none;
        border: none;
        padding: 0;
        /* Reset padding for precise sizing */
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #fff;
        position: absolute;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span:first-child {
        top: 0;
    }

    .mobile-menu-btn span:last-child {
        bottom: 0;
    }

    /* Hamburger Active State (X) */
    .mobile-menu-btn.active span:first-child {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-btn.active span:last-child {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    /* Utilities */
    .mobile-hide {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    /* Dashboard specific mobile adjust */
    .dash-sidebar {
        display: none;
    }

    .dash-content {
        margin-left: 0;
        padding: 1.5rem;
        /* Reduced padding */
    }

    /* Fix Hero Overlap on Mobile */
    .hero-minimal {
        justify-content: flex-start;
        padding-top: 160px;
        /* Header (70) + Banner (50) + Spacer (40) */
    }

    .mobile-only.mobile-nav-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }

    /* Responsive Grid Overrides */
    .grid-2,
    .grid-3,
    .review-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Quote Builder Mobile Refinement */
    .budget-options {
        flex-direction: column;
        gap: 4px !important;
    }

    .budget-opt {
        padding: 1rem !important;
    }

    .select-card {
        padding: 1rem !important;
    }

    .select-card div:first-child {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Responsive Typography */
    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.4rem, 5vw, 1.6rem);
    }

    .text-accent.text-glow {
        font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
    }

    /* Section adjustments for smaller screens */
    .section-full {
        padding-top: 100px !important;
        padding-bottom: 4rem;
        height: auto;
        min-height: 100vh;
    }

    .container {
        padding: 0 1.5rem;
    }
}


.hidden {
    display: none !important;
}

/* Visibility Utilities (Desktop Default) */
.mobile-menu-btn {
    display: none;
}

.mobile-only {
    display: none !important;
}


/* --- Creative Studio Scoped Styles --- */

/* Portfolio Card Zoom & Glow */
.card-hover-glow {
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--color-border);
}

.card-hover-glow:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 25px var(--color-accent-glow);
    transform: translateY(-5px);
}

.card-hover-glow .bg-zoom {
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.4, 1);
}

.card-hover-glow:hover .bg-zoom {
    transform: scale(1.05);
}

/* Avatar for Reviews */
.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    background: #333;
}

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

/* Soft Glow Text */
.text-glow {
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.4);
}

/* Admin-Specific Styles */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.badge-info {
    background: rgba(0, 174, 239, 0.2);
    color: var(--color-accent);
    border: 1px solid rgba(0, 174, 239, 0.3);
}

.badge-success {
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Admin Tables */
table {
    font-size: 0.95rem;
}

table th {
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

table tbody tr {
    transition: background 0.2s;
}

table tbody tr:hover {
    background: rgba(0, 174, 239, 0.05);
}

/* Responsive Admin Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Interactive Charts & Calendar */
.bar-interactive:hover .bar-tooltip {
    opacity: 1 !important;
    top: -35px !important;
}

.bar-interactive {
    transition: all 0.3s ease;
}

.bar-interactive:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.calendar-day-active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 5px;
    height: 5px;
    background: var(--color-accent);
    border-radius: 50%;
}

.provider-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.provider-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Concierge Pulsing Status */
.status-pulse {
    width: 10px;
    height: 10px;
    background-color: #D4AF37;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(212, 175, 55, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}