:root {
            --gold: #E2C044;
            --gold-glow: rgba(226, 192, 68, 0.2);
            --dark-bg: #09090b;
            --card-bg: rgba(20, 20, 22, 0.7);
            --input-bg: #121214;
            --border: rgba(255, 255, 255, 0.08);
            --text-main: #FFFFFF;
            --text-muted: #A0A0AB;
            --radius: 12px;
            --danger: #ff4d4f;
            --success: #22c55e;
        }

        body {
            background: var(--dark-bg) !important;
            background-image: none !important;
            color: var(--text-main);
            margin: 0;
            padding: 0;
            font-family: 'Outfit', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* --- HEADER --- */
        .premium-header {
            width: 100%;
            background: rgba(9, 9, 11, 0.92);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 24px;
            box-sizing: border-box;
            gap: 16px;
        }

        .header-left {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .header-right {
            flex: 1 1 auto;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            min-width: 0;
        }

        .header-icon-nav {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            max-width: 100%;
        }
        .header-icon-nav::-webkit-scrollbar {
            display: none;
        }

        .header-logo {
            height: 40px;
            width: auto;
        }

        /* --- STANDARD HEADER LOGO --- */
        .brand-logo-standard {
            display: inline-flex !important;
            align-items: center !important;
            gap: 8px !important;
            position: relative !important;
            text-decoration: none !important;
            height: 34px !important;
            max-height: 34px !important;
            line-height: 1 !important;
        }

        .brand-logo-standard .logo-hnt-bg {
            display: none !important;
        }

        .brand-logo-standard .logo-emblem {
            height: 34px !important;
            width: 34px !important;
            max-height: 34px !important;
            max-width: 34px !important;
            border-radius: 6px !important;
            border: 1px solid rgba(212, 175, 55, 0.45) !important;
            position: relative !important;
            z-index: 2 !important;
            object-fit: cover !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
            transition: transform 0.2s ease, filter 0.2s ease !important;
        }

        .brand-logo-standard .logo-text {
            height: 24px !important;
            width: auto !important;
            max-height: 24px !important;
            object-fit: contain !important;
            position: relative !important;
            z-index: 2 !important;
            transition: transform 0.2s ease !important;
        }

        .brand-logo-standard:hover .logo-emblem {
            transform: scale(1.05) !important;
            filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5)) !important;
        }

        .header-title {
            color: var(--gold);
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.8rem;
            letter-spacing: 2px;
            margin: 0;
            text-align: center;
            white-space: nowrap;
        }

        .btn-logout {
            background: rgba(255, 77, 79, 0.1);
            color: var(--danger);
            border: 1px solid rgba(255, 77, 79, 0.3);
            padding: 8px 16px;
            border-radius: 8px;
            font-family: 'Outfit', sans-serif;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-logout:hover {
            background: rgba(255, 77, 79, 0.2);
        }

        /* --- NAVIGATION BUTTONS --- */
        .header-nav-btn {
            background: rgba(226, 192, 68, 0.1);
            color: var(--gold);
            border: 1px solid rgba(226, 192, 68, 0.3);
            padding: 8px 16px;
            border-radius: 8px;
            font-family: 'Outfit', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            margin-right: 15px;
        }

        .header-nav-btn:hover {
            background: rgba(226, 192, 68, 0.2);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(226, 192, 68, 0.15);
        }

        .header-nav-btn svg {
            width: 18px;
            height: 18px;
        }

        /* --- LAYOUT --- */
        .dashboard-wrapper {
            display: flex;
            width: 96%;
            max-width: 1400px;
            margin: 16px auto;
            gap: 18px;
            align-items: flex-start;
        }

        /* --- SIDEBAR TABS --- */
        .sidebar-tabs {
            width: 210px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            background: rgba(15, 15, 18, 0.6);
            padding: 12px;
            border-radius: 12px;
            border: 1px solid var(--border);
            flex-shrink: 0;
        }

        .tab-btn {
            background: transparent;
            color: var(--text-muted);
            border: 1px solid transparent;
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
            font-size: 0.95rem;
            text-align: left;
            cursor: pointer;
            padding: 8px 14px;
            border-radius: 6px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tab-btn:hover {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-btn.active {
            color: var(--gold);
            background: rgba(226, 192, 68, 0.1);
            border: 1px solid rgba(226, 192, 68, 0.3);
        }

        /* --- CONTAINERS --- */
        .main-content {
            flex: 1;
            min-width: 0;
        }

        .tab-content {
            display: none;
            background: var(--card-bg);
            padding: 22px 26px;
            border-radius: 14px;
            border: 1px solid var(--border);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            box-sizing: border-box;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tab-content.active {
            display: block;
        }

        /* --- INPUTS & FORM (Same as Cadastro) --- */
        .input-group {
            margin-bottom: 16px;
        }

        .input-label {
            display: block;
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 500;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .input-field {
            width: 100%;
            padding: 10px 14px;
            background: var(--input-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            font-size: 0.92rem;
            box-sizing: border-box;
            font-family: 'Outfit', sans-serif;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 2px var(--gold-glow);
        }

        .input-field:disabled,
        .input-field.read-only-field {
            background: rgba(255, 255, 255, 0.02);
            color: #777;
            cursor: not-allowed;
            border-color: rgba(255, 255, 255, 0.05);
        }

        .input-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .whatsapp-highlight {
            border: 1px solid rgba(226, 192, 68, 0.3);
            background: rgba(226, 192, 68, 0.02);
            padding: 14px;
            border-radius: 8px;
            margin-bottom: 16px;
        }

        .btn-submit {
            width: 100%;
            padding: 14px;
            background: var(--gold);
            color: #000;
            border: none;
            border-radius: 8px;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.35rem;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 14px;
        }

        .btn-submit:hover:not(:disabled) {
            background: #f0cd49;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px var(--gold-glow);
        }

        .btn-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* --- ORDERS GRID & STATS COMPACT --- */
        .order-card {
            background: #111;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            padding-bottom: 10px;
        }

        .order-id {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.2rem;
            color: var(--gold);
            letter-spacing: 1px;
        }

        .order-status {
            background: rgba(255, 255, 255, 0.1);
            color: #ddd;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-producao {
            background: rgba(34, 197, 94, 0.2);
            color: var(--success);
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .status-simulacao {
            background: rgba(226, 192, 68, 0.1);
            color: var(--gold);
            border: 1px solid rgba(226, 192, 68, 0.3);
        }

        .order-body {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .order-details {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .order-details strong {
            color: #fff;
        }

        .order-actions {
            display: flex;
            gap: 8px;
        }

        .btn-action {
            background: #222;
            color: #fff;
            border: 1px solid #444;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.8rem;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .btn-action:hover {
            background: #333;
            border-color: var(--gold);
            color: var(--gold);
        }

        .order-drawer-content {
            display: none;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(255, 255, 255, 0.1);
            animation: fadeIn 0.25s ease-in-out;
        }

        .order-drawer-content.active {
            display: block;
        }

        /* --- STATS GRID (COMPACT RESPONSIVE AUTO-FIT) --- */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
            gap: 10px;
            margin-bottom: 16px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.07);
            border-radius: 8px;
            padding: 8px 12px;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .stat-value {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.3rem !important;
            line-height: 1.2 !important;
            color: var(--gold);
            margin-bottom: 2px;
        }

        .stat-label {
            color: var(--text-muted);
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* --- DRAFTS & DESIGNS RESPONSIVE GRID (ADMIN COMPATIBLE) --- */
        .drafts-responsive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
            gap: 12px;
            margin-top: 14px;
        }

        .draft-preview-thumb {
            height: 110px;
            max-height: 110px;
            background: radial-gradient(circle at center, #1a1e28 0%, #0a0b0e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            overflow: hidden;
        }

        .draft-preview-thumb img {
            max-height: 95px;
            max-width: 88%;
            object-fit: contain;
            transition: transform 0.25s ease;
        }

        .draft-card:hover .draft-preview-thumb img {
            transform: scale(1.06);
        }

        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--dark-bg);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--gold);
        }

        .spinner {
            width: 32px;
            height: 32px;
            border: 3px solid rgba(226, 192, 68, 0.3);
            border-radius: 50%;
            border-top-color: var(--gold);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 14px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        @media (max-width: 1100px) {
            .header-nav-btn .btn-text-full {
                display: none;
            }
            .header-nav-btn {
                padding: 6px 10px;
                margin-right: 6px;
            }
            .header-title {
                font-size: 1.25rem;
            }
        }

        @media (max-width: 768px) {
            .dashboard-wrapper {
                flex-direction: column;
                margin: 10px auto;
                width: 95%;
            }
            .sidebar-tabs {
                width: 100%;
                flex-direction: row;
                overflow-x: auto;
                padding: 8px;
            }
            .tab-btn {
                white-space: nowrap;
                font-size: 0.85rem;
                padding: 6px 10px;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .input-row {
                grid-template-columns: 1fr !important;
                gap: 0;
            }

            .order-body {
                flex-direction: column;
                gap: 12px;
            }

            .premium-header {
                padding: 8px 14px;
            }

            .header-title {
                display: none;
            }
        }

        /* --- USER HERO BANNER COMPACT --- */
        .user-hero-container {
            width: 96%;
            max-width: 1400px;
            margin: 12px auto 0 auto;
        }

        .user-hero-banner {
            background: linear-gradient(135deg, rgba(226, 192, 68, 0.08) 0%, rgba(18, 18, 22, 0.95) 100%);
            border: 1px solid rgba(226, 192, 68, 0.22);
            border-radius: 12px;
            padding: 14px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 14px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            position: relative;
            overflow: hidden;
        }

        .user-hero-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(226,192,68,0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-left-profile {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .hero-avatar-badge {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--gold) 0%, #b89726 100%);
            color: #000;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.35rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 0 10px var(--gold-glow);
            border: 2px solid #fff;
            flex-shrink: 0;
        }

        .hero-user-details h2 {
            margin: 0 0 4px 0;
            color: #fff;
            font-size: 1.15rem;
            font-weight: 700;
        }

        .hero-badges-row {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: center;
        }

        .hero-badge-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2px 8px;
            border-radius: 16px;
            font-size: 0.74rem;
            color: var(--text-muted);
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .hero-badge-item.gold-badge {
            background: rgba(226, 192, 68, 0.15);
            border-color: var(--gold);
            color: var(--gold);
            font-weight: 700;
        }

        .hero-right-stats {
            display: flex;
            gap: 16px;
            background: rgba(0, 0, 0, 0.35);
            padding: 8px 14px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .hero-stat-box {
            text-align: center;
        }

        .hero-stat-val {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.35rem;
            color: var(--gold);
            line-height: 1.2;
        }

        .hero-stat-lbl {
            font-size: 0.68rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* --- ORDERS FILTER BAR COMPACT --- */
        .orders-filter-container {
            background: rgba(15, 15, 18, 0.7);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 10px 12px;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .filter-search-row {
            position: relative;
            width: 100%;
        }

        .filter-search-input {
            width: 100%;
            padding: 9px 14px 9px 36px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            color: #fff;
            font-size: 0.88rem;
            box-sizing: border-box;
            font-family: 'Outfit', sans-serif;
            transition: all 0.2s;
        }

        .filter-search-input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 2px var(--gold-glow);
        }

        .search-icon-svg {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gold);
            font-size: 0.95rem;
            pointer-events: none;
        }

        .filter-pills-row {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding-bottom: 2px;
        }

        .filter-pill-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--text-muted);
            padding: 5px 12px;
            border-radius: 16px;
            font-size: 0.78rem;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s;
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
        }

        .filter-pill-btn:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
        }

        .filter-pill-btn.active {
            background: rgba(226, 192, 68, 0.18);
            color: var(--gold);
            border-color: var(--gold);
            font-weight: 700;
            box-shadow: 0 0 8px rgba(226, 192, 68, 0.15);
        }

        /* --- NOTIFICATION PREFERENCES STYLES COMPACT --- */
        .notif-card-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 14px;
        }

        .channel-card {
            background: rgba(15, 15, 18, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 14px 16px;
            transition: border-color 0.2s;
        }

        .channel-card:hover {
            border-color: rgba(226, 192, 68, 0.3);
        }

        .channel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .channel-title-box {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .channel-icon-badge {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
        }

        .channel-suboptions {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding-left: 48px;
        }

        .notif-checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #ccc;
            cursor: pointer;
        }

        .notif-checkbox-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--gold);
            cursor: pointer;
        }

        /* TOGGLE SWITCH COMPACT */
        .switch {
            position: relative;
            display: inline-block;
            width: 42px;
            height: 22px;
            flex-shrink: 0;
        }

        .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: .3s;
            border-radius: 34px;
            border: 1px solid #555;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--gold);
            border-color: var(--gold);
        }

        input:checked + .slider:before {
            transform: translateX(20px);
            background-color: #000;
        }

        /* CARD EXPAND DRAWER */
        .order-drawer-content {
            display: none;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed rgba(255,255,255,0.12);
            animation: fadeIn 0.3s ease;
        }

        .order-drawer-content.active {
            display: block;
        }