
        .password-gate {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgb(12, 12, 12);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            flex-direction: column;
            gap: 2rem;
        }
        .password-gate.hidden { display: none; }
        .password-gate .gate-logo {
            text-align: center;
            font-family: 'Teko', sans-serif;
            font-size: 3rem;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            color: white;
        }
        .password-gate .gate-form {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }
        .password-gate .gate-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255, 255, 255, 0.6);
        }
        .password-gate .gate-input {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.75rem 1.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 1rem;
            text-align: center;
            letter-spacing: 0.2em;
            width: 280px;
        }
        .password-gate .gate-input:focus {
            outline: none;
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .password-gate .gate-btn {
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 0.75rem 2rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .password-gate .gate-btn:hover {
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .password-gate .gate-error {
            color: #ff4444;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            display: none;
        }
        .password-gate .gate-error.visible { display: block; }
        .password-gate .gate-apply {
            margin-top: 0.5rem;
        }
        .password-gate .gate-apply a {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            letter-spacing: 0.05em;
            transition: color 0.3s ease;
        }
        .password-gate .gate-apply a:hover {
            color: rgba(255, 255, 255, 0.8);
        }
        .password-gate .gate-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .password-gate .gate-remember {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            margin-bottom: 0.25rem;
        }
        .password-gate .gate-remember input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 2px;
            background: transparent;
            cursor: pointer;
            position: relative;
        }
        .password-gate .gate-remember input[type="checkbox"]:checked {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.6);
        }
        .password-gate .gate-remember input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: -1px;
            left: 1px;
            font-size: 11px;
            color: white;
        }
        .password-gate .gate-btn-faceid {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            border-color: rgba(255, 255, 255, 0.25);
            font-size: 0.8rem;
        }
        .password-gate .gate-btn-faceid:hover {
            border-color: rgba(255, 255, 255, 0.6);
        }
        .password-gate .gate-divider {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin: 0.75rem 0;
            color: rgba(255, 255, 255, 0.25);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
        }
        .password-gate .gate-divider::before,
        .password-gate .gate-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.15);
        }
        .app-wrapper { display: none; }
        .app-wrapper.unlocked { display: block; }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            background-color: rgb(12, 12, 12);
            color: white;
            font-family: 'IBM Plex Mono', monospace;
            letter-spacing: 0.1em;
            line-height: 1.6;
            overflow-x: hidden;
        }
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px),
                radial-gradient(ellipse at 50% 0%, rgba(230,57,70,0.06) 0%, transparent 55%);
            pointer-events: none;
            z-index: 0;
        }
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            background-repeat: repeat;
            background-size: 256px 256px;
            pointer-events: none;
            z-index: 0;
        }
        header {
            background-color: rgb(12, 12, 12);
            padding: 2rem 2rem 1rem 2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        .logo {
            font-family: 'Teko', sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            color: white;
            display: flex;
            align-items: center;
            height: 2.5rem;
        }
        .logo img {
            height: 100%;
            max-height: 2.5rem;
            width: auto;
            object-fit: contain;
        }
        .header-followers {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: 2rem;
        }
        .header-followers-number {
            font-family: 'Teko', sans-serif;
            font-size: 1.5rem;
            font-weight: 900;
            font-style: italic;
        }
        .header-followers-label {
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.7;
        }
        .header-controls {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        .last-updated {
            font-size: 0.75rem;
            opacity: 0.7;
            text-align: right;
            margin-right: 1rem;
        }
        .plan-badge {
            display: flex;
            align-items: center;
            margin-right: 0.25rem;
        }
        .plan-badge-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            letter-spacing: 0.12em;
            padding: 0.25rem 0.6rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            cursor: default;
            transition: all 0.3s ease;
        }
        .plan-badge-label.label-plan {
            border-color: #e63946;
            color: #e63946;
        }
        .plan-badge-label.lifetime-plan {
            border-color: #e63946;
            color: #e63946;
            background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(230,57,70,0.08));
        }
        .btn-icon {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 0.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 1rem;
        }
        .btn-icon:hover {
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .tab-nav {
            background-color: rgb(12, 12, 12);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 2rem;
            display: flex;
            gap: 2rem;
            overflow-x: auto;
        }
        .tab-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            padding: 1rem 0;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            position: relative;
            transition: color 0.3s ease;
            white-space: nowrap;
        }
        .tab-btn:hover { color: white; }
        .tab-btn.active { color: white; }
        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: white;
        }
        .settings-panel {
            position: fixed;
            right: -420px;
            top: 0;
            width: 420px;
            height: 100vh;
            background-color: rgba(20, 20, 20, 0.98);
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2rem;
            overflow-y: auto;
            transition: right 0.3s ease;
            z-index: 1000;
        }
        .settings-panel.open { right: 0; }
        .settings-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .settings-tab {
            flex: 1;
            padding: 0.6rem 0.5rem;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            color: rgba(255,255,255,0.4);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .settings-tab.active {
            color: #a5b4fc;
            border-bottom-color: #6366f1;
        }
        .settings-tab:hover { color: rgba(255,255,255,0.7); }
        .settings-tab-content { display: none; }
        .settings-tab-content.active { display: block; }
        .brand-logo-area { margin-bottom: 0.75rem; }
        .brand-logo-preview {
            width: 100%;
            height: 80px;
            background: rgba(255,255,255,0.03);
            border: 1px dashed rgba(255,255,255,0.15);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            overflow: hidden;
        }
        .brand-logo-preview:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
        .brand-remove-btn {
            margin-top: 0.4rem;
            padding: 0.2rem 0.5rem;
            background: rgba(239,68,68,0.1);
            border: 1px solid rgba(239,68,68,0.15);
            border-radius: 3px;
            color: #ef4444;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.55rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
        }
        .brand-colors-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
        }
        .brand-color-item label {
            display: block;
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
            margin-bottom: 0.3rem;
        }
        .brand-color-row {
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .brand-color-row input[type="color"] {
            width: 32px;
            height: 32px;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 4px;
            background: none;
            cursor: pointer;
            padding: 0;
        }
        .brand-hex-input {
            flex: 1;
            padding: 0.3rem 0.4rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 3px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
        }
        .settings-auth {
            padding-top: 0.5rem;
        }
        .settings-auth-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            font-size: 0.75rem;
            opacity: 0.6;
        }
        .settings-auth-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
        }
        .settings-login-btn {
            width: 100%;
            padding: 0.6rem;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.25);
            border-radius: 6px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .settings-login-btn:hover { background: rgba(99,102,241,0.3); }
        .connect-img-btn {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.2rem 0.5rem;
            background: rgba(99,102,241,0.1);
            border: 1px solid rgba(129,140,248,0.2);
            border-radius: 3px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            cursor: pointer;
        }
        .connect-img-btn:hover { background: rgba(99,102,241,0.2); }
        .connect-images-list {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .connect-img-thumb {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.1);
        }
        .connect-img-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .connect-img-thumb .remove-img {
            position: absolute;
            top: 2px;
            right: 2px;
            width: 16px;
            height: 16px;
            background: rgba(0,0,0,0.7);
            border: none;
            border-radius: 50%;
            color: #fff;
            font-size: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .settings-panel h3 {
            font-family: 'Teko', sans-serif;
            font-size: 1.5rem;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .settings-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        .settings-section {
            margin-bottom: 1.5rem;
        }
        .settings-section label {
            display: block;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
            opacity: 0.8;
        }
        .settings-section input {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
        }
        .settings-section input:focus {
            outline: none;
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .settings-divider {
            border: none;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin: 1.5rem 0;
        }
        .settings-heading {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 0.95rem;
            margin-bottom: 1rem;
            opacity: 0.8;
        }
        /* Merch folder tabs */
        .merch-tabs { margin-bottom: 1rem; }
        .merch-tab-bar {
            display: flex;
            gap: 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .merch-tab {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1rem;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.08);
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            color: rgba(255,255,255,0.4);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            top: 1px;
        }
        .merch-tab:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.04); }
        .merch-tab.active {
            background: rgba(255,255,255,0.05);
            color: #fff;
            border-color: rgba(255,255,255,0.15);
            border-bottom: 1px solid #0c0c0c;
        }
        .merch-tab svg { opacity: 0.6; }
        .merch-tab.active svg { opacity: 1; }
        .merch-tab-body {
            border: 1px solid rgba(255,255,255,0.08);
            border-top: none;
            border-radius: 0 0 8px 8px;
            padding: 1rem 1.25rem;
            background: rgba(255,255,255,0.02);
        }
        .merch-tab-panel { display: none; }
        .merch-tab-panel.active { display: block; }

        .btn-save {
            background-color: transparent;
            border: 1px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 0.75rem 1.5rem;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            width: 100%;
            transition: all 0.3s ease;
        }
        .btn-save:hover {
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }

        /* ===== CONNECTIONS TAB ===== */
        .connect-service-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.85rem 1rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            margin-bottom: 0.6rem;
            transition: background 0.2s;
        }
        .connect-service-card:hover {
            background: rgba(255,255,255,0.06);
        }
        .connect-service-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex: 1;
            min-width: 0;
        }
        .connect-service-info svg {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
        }
        .connect-service-name {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        .connect-service-desc {
            font-size: 0.65rem;
            opacity: 0.5;
            margin-top: 0.1rem;
        }
        .connect-service-status {
            flex-shrink: 0;
            margin-left: 0.75rem;
        }
        .connect-oauth-btn {
            padding: 0.4rem 1rem;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.3);
            border-radius: 6px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-oauth-btn:hover {
            background: rgba(99,102,241,0.3);
            border-color: rgba(129,140,248,0.5);
        }
        .connect-oauth-btn.connected {
            background: rgba(34,197,94,0.12);
            border-color: rgba(34,197,94,0.3);
            color: #4ade80;
        }

        /* Search row inside connection cards */
        .connect-search-row {
            display: flex;
            gap: 0.4rem;
            margin-top: 0.5rem;
        }
        .connect-search-input {
            flex: 1;
            padding: 0.4rem 0.6rem;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 5px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
        }
        .connect-search-input:focus {
            outline: none;
            border-color: rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.08);
        }
        .connect-search-input::placeholder { color: rgba(255,255,255,0.25); }
        .connect-search-btn {
            padding: 0.4rem 0.8rem;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.3);
            border-radius: 5px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .connect-search-btn:hover { background: rgba(99,102,241,0.3); }
        .connect-search-results {
            margin-top: 0.4rem;
        }
        .connect-search-result {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.5rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 5px;
            margin-bottom: 0.3rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-search-result:hover {
            background: rgba(99,102,241,0.12);
            border-color: rgba(129,140,248,0.3);
        }
        .connect-search-result img {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        .connect-result-name {
            font-size: 0.8rem;
            font-weight: 600;
        }
        .connect-result-meta {
            font-size: 0.6rem;
            opacity: 0.5;
        }
        .connect-linked-artist {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.5rem;
            padding: 0.5rem 0.65rem;
            background: rgba(34,197,94,0.08);
            border: 1px solid rgba(34,197,94,0.2);
            border-radius: 6px;
        }
        .connect-linked-artist img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        .connect-linked-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: #4ade80;
        }
        .connect-linked-id {
            font-size: 0.55rem;
            opacity: 0.4;
            font-family: 'IBM Plex Mono', monospace;
        }
        .connect-unlink-btn {
            margin-left: auto;
            padding: 0.25rem 0.5rem;
            background: rgba(239,68,68,0.1);
            border: 1px solid rgba(239,68,68,0.2);
            border-radius: 4px;
            color: #ef4444;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-unlink-btn:hover { background: rgba(239,68,68,0.2); }

        /* Setup guide steps */
        .setup-step {
            display: flex;
            gap: 0.6rem;
            align-items: flex-start;
            margin-bottom: 0.5rem;
        }
        .setup-step-num {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(99,102,241,0.2);
            color: #a5b4fc;
            font-family: 'Teko', sans-serif;
            font-size: 0.65rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 0.1rem;
        }
        .setup-step-text {
            font-size: 0.7rem;
            line-height: 1.5;
            opacity: 0.8;
        }
        .setup-step-text strong {
            color: #fff;
            opacity: 1;
        }
        .setup-step-text a {
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .setup-step-text a:hover { opacity: 0.8; }
        .meta-page-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 5px;
            margin-bottom: 0.3rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .meta-page-option:hover {
            background: rgba(99,102,241,0.12);
            border-color: rgba(129,140,248,0.3);
        }
        .meta-page-name {
            font-size: 0.8rem;
            font-weight: 600;
        }
        .meta-page-id {
            font-size: 0.55rem;
            opacity: 0.4;
            font-family: 'IBM Plex Mono', monospace;
        }
        .meta-page-select-btn {
            padding: 0.25rem 0.6rem;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.3);
            border-radius: 4px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
        }
        .meta-page-select-btn:hover { background: rgba(99,102,241,0.3); }

        /* ===== SHOPIFY WIDGET ===== */
        .shopify-widget {
            width: 100%;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 1.25rem;
        }
        .shopify-widget-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        .shopify-widget-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 1rem;
        }
        .shopify-widget-store {
            font-size: 0.65rem;
            opacity: 0.4;
            font-family: 'IBM Plex Mono', monospace;
        }
        .shopify-widget-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        .shopify-stat-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 8px;
            padding: 0.85rem;
            text-align: center;
        }
        .shopify-stat-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
            margin-bottom: 0.3rem;
        }
        .shopify-stat-value {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 1.5rem;
        }
        .shopify-stat-sub {
            font-size: 0.6rem;
            opacity: 0.4;
            margin-top: 0.15rem;
            font-family: 'IBM Plex Mono', monospace;
        }
        .shopify-orders-list {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .shopify-order-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 0.65rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 6px;
            font-size: 0.75rem;
        }
        .shopify-order-name {
            font-weight: 600;
        }
        .shopify-order-items {
            font-size: 0.65rem;
            opacity: 0.5;
            flex: 1;
            margin: 0 0.75rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .shopify-order-total {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            color: #96BF48;
        }
        .shopify-order-status {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            margin-left: 0.5rem;
        }
        .shopify-order-status.unfulfilled {
            background: rgba(234,179,8,0.15);
            color: #fbbf24;
        }
        .shopify-order-status.fulfilled {
            background: rgba(34,197,94,0.12);
            color: #4ade80;
        }
        @media (max-width: 768px) {
            .shopify-widget-stats { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
            .shopify-stat-value { font-size: 1.1rem; }
            .shopify-stat-card { padding: 0.6rem 0.4rem; }
            .shopify-order-items { display: none; }
        }

        /* ===== ACCOUNT TAB ===== */
        .account-info-grid {
            margin-bottom: 1rem;
        }
        .account-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .account-info-row:last-child {
            border-bottom: none;
        }
        .account-info-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
        }
        .account-info-value {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
        }
        .plan-badge {
            display: inline-block;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .plan-free {
            background: rgba(255,255,255,0.08);
            color: rgba(255,255,255,0.6);
        }
        .plan-pro {
            background: rgba(99,102,241,0.2);
            color: #a5b4fc;
        }
        .plan-enterprise {
            background: rgba(234,179,8,0.2);
            color: #fbbf24;
        }
        .plan-lifetime {
            background: linear-gradient(135deg, rgba(230,57,70,0.25), rgba(230,57,70,0.15));
            color: #e63946;
            border: 1px solid rgba(230,57,70,0.4);
        }

        .content {
            padding: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        .tab-content { display: none; }
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .hero-stat {
            text-align: center;
            margin-bottom: 3rem;
        }
        .hero-number {
            font-family: 'Teko', sans-serif;
            font-size: 4rem;
            font-weight: 900;
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
            font-style: italic;
        }
        .hero-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            opacity: 0.7;
            letter-spacing: 0.1em;
        }
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }
        .overview-row {
            display: flex;
            align-items: stretch;
            gap: 0;
            margin-bottom: 2rem;
        }
        /* Merch bar */
        .merch-bar {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0;
            background: rgba(255,255,255,0.025);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 0.8rem 1.5rem;
        }
        .merch-bar-item {
            flex: 1;
            text-align: center;
        }
        .merch-bar-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.55rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            opacity: 0.4;
            margin-bottom: 0.3rem;
        }
        .merch-bar-value {
            font-family: 'Teko', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #fff;
            line-height: 1;
        }
        .merch-bar-divider {
            width: 1px;
            height: 2.5rem;
            background: rgba(255,255,255,0.08);
            flex-shrink: 0;
        }
        .merch-bar-source {
            flex-shrink: 0;
            font-size: 0.5rem;
            opacity: 0.3;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding-left: 1rem;
        }
        .row-label {
            writing-mode: vertical-lr;
            transform: rotate(180deg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.15em;
            opacity: 0.3;
            padding: 0 0.75rem;
            white-space: nowrap;
        }
        .bottom-row {
            display: grid;
            grid-template-columns: 1fr 2.08fr;
            gap: 2rem;
            margin-top: 2rem;
            margin-bottom: 2rem;
        }

        .bp-box {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }
        .bp-box:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }
        .bp-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        .bp-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .bp-status {
            font-family: 'Teko', sans-serif;
            font-size: 0.65rem;
            opacity: 0.4;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .bp-status.saved { color: #10b981; opacity: 0.7; }
        .bp-toggle-arrow {
            font-size: 0.7rem;
            opacity: 0.4;
            transition: transform 0.3s;
            margin-left: 0.5rem;
        }
        .bp-toggle-arrow.open { transform: rotate(180deg); }
        .bp-body {
            display: none;
            margin-top: 1.25rem;
        }
        .bp-body.open { display: block; }
        .bp-field {
            margin-bottom: 1rem;
        }
        .bp-label {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
            margin-bottom: 0.35rem;
        }
        .bp-hint {
            font-family: 'Teko', sans-serif;
            font-weight: 400;
            font-size: 0.7rem;
            opacity: 0.3;
            margin-bottom: 0.4rem;
        }
        .bp-input, .bp-textarea {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.12);
            color: #fff;
            padding: 0.6rem 0.8rem;
            font-family: 'Teko', sans-serif;
            font-size: 0.82rem;
            font-weight: 400;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .bp-textarea {
            min-height: 60px;
            resize: vertical;
            line-height: 1.5;
        }
        .bp-input:focus, .bp-textarea:focus {
            border-color: rgba(255,255,255,0.35);
        }
        .bp-input::placeholder, .bp-textarea::placeholder {
            color: rgba(255,255,255,0.25);
        }
        .bp-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }
        .bp-save-btn {
            background: #fff;
            color: #0a0a0a;
            border: none;
            padding: 0.55rem 1.2rem;
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.72rem;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .bp-save-btn:hover { opacity: 0.85; }
        .bp-clear-btn {
            background: none;
            color: rgba(255,255,255,0.4);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.55rem 1.2rem;
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.72rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .bp-clear-btn:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }
        .bp-tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.4rem;
        }
        .bp-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.3rem 0.7rem;
            font-family: 'Teko', sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 3px;
            border: 1px solid;
            transition: all 0.3s;
        }
        .bp-tag.validating {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.5);
        }
        .bp-tag.green {
            background: rgba(16,185,129,0.12);
            border-color: rgba(16,185,129,0.4);
            color: #10b981;
        }
        .bp-tag.yellow {
            background: rgba(245,158,11,0.12);
            border-color: rgba(245,158,11,0.4);
            color: #f59e0b;
        }
        .bp-tag.red {
            background: rgba(239,68,68,0.12);
            border-color: rgba(239,68,68,0.4);
            color: #ef4444;
        }
        .bp-tag-listeners {
            font-size: 0.6rem;
            font-weight: 400;
            opacity: 0.7;
        }
        .bp-tag-remove {
            cursor: pointer;
            opacity: 0.5;
            font-size: 0.85rem;
            line-height: 1;
            transition: opacity 0.2s;
        }
        .bp-tag-remove:hover { opacity: 1; }


        .gtd-box {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
        }
        .gtd-box:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }
        .gtd-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1rem;
        }
        .gtd-input-row {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }
        .gtd-input {
            flex: 1;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            padding: 0.7rem 1rem;
            font-family: 'Teko', sans-serif;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s;
        }
        .gtd-input:focus {
            border-color: rgba(255,255,255,0.4);
        }
        .gtd-input::placeholder {
            color: rgba(255,255,255,0.3);
        }
        .gtd-btn {
            background: #fff;
            color: #0a0a0a;
            border: none;
            padding: 0.7rem 1.5rem;
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.8rem;
            cursor: pointer;
            white-space: nowrap;
            transition: opacity 0.2s;
        }
        .gtd-btn:hover { opacity: 0.85; }
        .gtd-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .gtd-platform-badge {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 2px 8px;
            border-radius: 3px;
            margin-bottom: 0.75rem;
        }
        .gtd-loading {
            padding: 1.5rem 0;
            font-family: 'Teko', sans-serif;
        }
        .gtd-progress-bar {
            width: 100%;
            height: 4px;
            background: rgba(255,255,255,0.08);
            overflow: hidden;
            margin-bottom: 0.75rem;
        }
        .gtd-progress-fill {
            height: 100%;
            background: #fff;
            width: 0%;
            transition: width 0.4s ease;
        }
        .gtd-progress-status {
            font-size: 0.75rem;
            opacity: 0.5;
            letter-spacing: 0.05em;
        }
        .gtd-results {
            margin-top: 1rem;
            font-family: 'Teko', sans-serif;
        }
        .gtd-verdict {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(255,255,255,0.1);
            background: rgba(255,255,255,0.03);
        }
        .gtd-score-ring {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-size: 1.3rem;
            flex-shrink: 0;
        }
        .gtd-verdict-text {
            flex: 1;
        }
        .gtd-verdict-label {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 0.05em;
        }
        .gtd-verdict-summary {
            font-family: 'Teko', sans-serif;
            font-size: 0.82rem;
            font-weight: 400;
            opacity: 0.7;
            margin-top: 4px;
            line-height: 1.5;
        }
        .gtd-section {
            margin-bottom: 1rem;
        }
        .gtd-section-title {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.5;
            margin-bottom: 0.5rem;
        }
        .gtd-item {
            font-family: 'Teko', sans-serif;
            font-weight: 400;
            padding: 0.5rem 0;
            padding-left: 12px;
            font-size: 0.82rem;
            line-height: 1.6;
            border-left: 2px solid rgba(255,255,255,0.1);
            margin-bottom: 0.4rem;
        }
        .gtd-item.strength { border-left-color: #10b981; }
        .gtd-item.weakness { border-left-color: #ef4444; }
        .gtd-item.rec { border-left-color: #3b82f6; }
        .gtd-meta-bar {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            font-family: 'Teko', sans-serif;
            font-weight: 400;
            font-size: 0.75rem;
            opacity: 0.5;
            margin-bottom: 1rem;
        }
        .gtd-thumbnail-note {
            font-family: 'Teko', sans-serif;
            font-weight: 400;
            font-size: 0.82rem;
            opacity: 0.7;
            line-height: 1.6;
            padding: 0.6rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 1rem;
        }
        /* ── Trying This Button ── */
        .trying-this-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            margin-top: 0.6rem;
            padding: 0.35rem 0.9rem;
            background: rgba(99,102,241,0.12);
            border: 1px solid rgba(129,140,248,0.25);
            border-radius: 6px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .trying-this-btn:hover {
            background: rgba(99,102,241,0.25);
            border-color: rgba(129,140,248,0.5);
            color: #c7d2fe;
            transform: translateY(-1px);
        }
        .trying-this-btn:active { transform: translateY(0); }

        /* ── Tried Content Tracker Section ── */
        .tried-content-box {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }
        .tried-content-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        .tried-content-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #fff;
        }
        .tried-content-count {
            background: rgba(99,102,241,0.2);
            color: #a5b4fc;
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.7rem;
            padding: 0.15rem 0.6rem;
            border-radius: 10px;
            min-width: 1.5rem;
            text-align: center;
        }
        .tried-content-list { display: flex; flex-direction: column; gap: 0.75rem; }
        .tried-content-empty {
            text-align: center;
            padding: 2rem 1rem;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.35);
            font-family: 'IBM Plex Mono', monospace;
        }

        /* ── Individual Tried Card ── */
        .tried-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 1rem;
            transition: all 0.2s ease;
        }
        .tried-card:hover {
            border-color: rgba(255,255,255,0.15);
            background: rgba(255,255,255,0.04);
        }
        .tried-card.analyzed {
            border-color: rgba(99,102,241,0.2);
        }
        .tried-card-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            flex-wrap: wrap;
        }
        .tried-source-badge {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.55rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
        }
        .tried-platform {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.4);
            font-family: 'Teko', sans-serif;
        }
        .tried-time {
            font-size: 0.6rem;
            color: rgba(255,255,255,0.25);
            margin-left: auto;
            font-family: 'IBM Plex Mono', monospace;
        }
        .tried-remove {
            font-size: 1rem;
            color: rgba(255,255,255,0.2);
            cursor: pointer;
            padding: 0 0.2rem;
            line-height: 1;
            transition: color 0.2s;
        }
        .tried-remove:hover { color: #ef4444; }

        .tried-card-title {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            color: #fff;
            margin-bottom: 0.25rem;
        }
        .tried-card-desc {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.55);
            line-height: 1.4;
            margin-bottom: 0.6rem;
        }

        /* ── Star Rating ── */
        .tried-rating-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.6rem;
        }
        .tried-rating-label {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.4);
            font-family: 'IBM Plex Mono', monospace;
        }
        .tried-stars { display: flex; gap: 0.15rem; }
        .tried-star {
            font-size: 1.2rem;
            color: rgba(255,255,255,0.2);
            cursor: pointer;
            transition: all 0.15s ease;
            line-height: 1;
        }
        .tried-star:hover { color: #f59e0b; transform: scale(1.2); }
        .tried-star.filled { color: #f59e0b; }

        /* ── URL Input + Analyze ── */
        .tried-url-row {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        .tried-url-input {
            flex: 1;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #fff;
            padding: 0.4rem 0.6rem;
            font-size: 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            outline: none;
            transition: border-color 0.2s;
        }
        .tried-url-input:focus {
            border-color: rgba(129,140,248,0.4);
        }
        .tried-url-input::placeholder { color: rgba(255,255,255,0.2); }
        .tried-analyze-btn {
            padding: 0.4rem 0.8rem;
            background: #6366f1;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-family: 'Teko', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .tried-analyze-btn:hover { background: #4f46e5; }
        .tried-analyze-btn:disabled {
            background: rgba(99,102,241,0.3);
            color: rgba(255,255,255,0.5);
            cursor: default;
        }

        /* ── Feedback Result ── */
        .tried-feedback {
            margin-top: 0.6rem;
            padding: 0.75rem;
            border-radius: 8px;
        }
        .tried-feedback-verdict {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.3rem;
        }
        .tried-feedback-summary {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.7);
            line-height: 1.4;
            margin-bottom: 0.3rem;
        }
        .tried-feedback-lesson {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.5);
            line-height: 1.4;
            padding-top: 0.3rem;
            border-top: 1px solid rgba(255,255,255,0.06);
            font-style: italic;
        }

        .content-ideas-box {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .content-ideas-box:hover {
            background-color: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .content-ideas-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
        }
        .content-ideas-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 1.4rem;
            letter-spacing: -0.02em;
            color: white;
        }
        .ideas-settings-icon {
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.3s;
        }
        .ideas-settings-icon:hover {
            opacity: 1;
        }
        .platform-buttons {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        .idea-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: white;
            padding: 0.6rem 1.2rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .idea-btn:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
        }
        .idea-btn .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }
        .idea-btn .dot.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
        .idea-btn .dot.facebook  { background: #1877F2; }
        .idea-btn .dot.tiktok    { background: #00f2ea; }
        .idea-btn .dot.threads   { background: #ffffff; }
        .idea-btn .dot.youtube   { background: #FF0000; }
        .card {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            transition: all 0.3s ease;
        }
        .card:hover {
            background-color: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .card-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }
        .card-accent {
            width: 4px;
            height: 30px;
            margin-right: 0.5rem;
        }
        .card-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            font-size: 1.1rem;
        }
        .card-stat { margin-bottom: 1rem; }
        .card-stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            opacity: 0.6;
            margin-bottom: 0.25rem;
            letter-spacing: 0.1em;
        }
        .card-stat-value {
            font-family: 'Teko', sans-serif;
            font-size: 1.8rem;
            font-weight: 900;
            font-style: italic;
            letter-spacing: -0.02em;
        }
        .card-input-group {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        .card-input {
            flex: 1;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
        }
        .card-input:focus {
            outline: none;
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .card-btn {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: all 0.3s ease;
        }
        .card-btn:hover {
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 0.5rem;
        }
        .status-dot.live { background-color: #1DB954; }
        .status-dot.manual { background-color: #ff9900; }
        .card-status {
            font-size: 0.7rem;
            opacity: 0.6;
            text-transform: uppercase;
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
        }
        .more-stats-dropdown {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 0.75rem;
            padding-top: 0.5rem;
        }
        .more-stats-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.6;
            padding: 0.25rem 0;
        }
        .more-stats-toggle:hover { opacity: 1; }
        .more-stats-toggle .arrow { transition: transform 0.3s; }
        .more-stats-toggle.open .arrow { transform: rotate(180deg); }
        .more-stats-content {
            display: none;
            padding-top: 0.5rem;
        }
        .more-stats-content.open { display: block; }
        .more-stats-content .card-stat { margin-bottom: 0.25rem; }

        .cards-grid {
            display: flex;
            gap: 1rem;
            flex: 1;
        }
        .cards-grid .card:not(.collapsed):not(.expanded) {
            flex: 1;
        }
        .card {
            position: relative;
            transition: all 0.3s ease;
            overflow: hidden;
            cursor: pointer;
        }
        .card.expanded {
            flex: 1;
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 0;
        }
        .card.expanded .card-main {

        }
        .card.expanded .more-stats-content {
            display: grid !important;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            max-height: none !important;
            border-left: 1px solid rgba(255,255,255,0.1);
            border-top: none;
            margin-top: 0;
            padding: 1.5rem;
            overflow-y: auto;
            align-content: start;
        }
        .card-collapsed-label {
            display: none;
            writing-mode: vertical-lr;
            transform: rotate(180deg);
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.5);
        }
        .card.collapsed {
            flex: 0 0 36px;
            min-width: 36px;
            max-width: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 0;
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s ease;
        }
        .card.collapsed:hover {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
        }
        .card.collapsed .card-collapsed-label {
            display: block;
        }
        .card.collapsed .card-main,
        .card.collapsed .more-stats-dropdown {
            display: none !important;
        }
        .more-stats-toggle {
            cursor: pointer;
        }
        .card.expanded .more-stats-toggle .arrow {
            transform: rotate(180deg);
        }
        .spotify-hero {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }
        .spotify-stat-box {
            background-color: rgba(29, 185, 84, 0.1);
            border: 2px solid #1DB954;
            padding: 2rem;
        }
        .spotify-stat-box .stat-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            opacity: 0.8;
            margin-bottom: 0.5rem;
            letter-spacing: 0.1em;
        }
        .spotify-stat-box .stat-value {
            font-family: 'Teko', sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            font-style: italic;
            letter-spacing: -0.02em;
        }
        .spotify-stat-box .stat-input {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(29, 185, 84, 0.4);
            color: white;
            padding: 0.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }
        .spotify-stat-box .stat-input:focus {
            outline: none;
            border-color: #1DB954;
        }
        .spotify-stat-box .stat-hint {
            font-size: 0.7rem;
            opacity: 0.5;
            margin-top: 0.25rem;
        }
        .section-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }
        .release-list { display: grid; gap: 1rem; }
        .release-item {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem;
            display: flex;
            gap: 1rem;
            align-items: center;
            transition: all 0.3s ease;
        }
        .release-item:hover {
            background-color: rgba(29, 185, 84, 0.05);
            border-color: rgba(29, 185, 84, 0.3);
        }
        .release-thumb {
            width: 64px;
            height: 64px;
            background-color: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-size: cover;
            background-position: center;
        }
        .release-info { flex: 1; }
        .release-title { font-weight: 600; margin-bottom: 0.25rem; }
        .release-meta { font-size: 0.85rem; opacity: 0.6; }
        .release-link {
            color: #1DB954;
            text-decoration: none;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border: 1px solid rgba(29, 185, 84, 0.3);
            padding: 0.4rem 0.8rem;
            transition: all 0.3s ease;
        }
        .release-link:hover {
            background-color: rgba(29, 185, 84, 0.1);
            border-color: #1DB954;
        }
        .spotify-embed-section {
            margin: 2rem 0;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 2rem;
        }
        .yt-hero {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }
        .yt-stat-box {
            background-color: rgba(255, 0, 0, 0.1);
            border: 2px solid #FF0000;
            padding: 2rem;
        }
        .yt-stat-box .stat-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            opacity: 0.8;
            margin-bottom: 0.5rem;
            letter-spacing: 0.1em;
        }
        .yt-stat-box .stat-value {
            font-family: 'Teko', sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            font-style: italic;
            letter-spacing: -0.02em;
        }
        .video-list { display: grid; gap: 1rem; }
        .video-item {
            background-color: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem;
            display: flex;
            gap: 1rem;
        }
        .video-thumb {
            width: 120px;
            height: 67px;
            background-color: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background-size: cover;
            background-position: center;
        }
        .video-info { flex: 1; }
        .video-title { font-weight: 600; margin-bottom: 0.5rem; }
        .video-meta {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
            opacity: 0.7;
        }
        .video-date {
            font-size: 0.8rem;
            opacity: 0.6;
            margin-top: 0.5rem;
        }
        .ig-video-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            overflow: hidden;
            transition: border-color 0.2s;
        }
        .ig-video-card:hover { border-color: #E4405F; }
        .ig-video-thumb {
            width: 100%;
            aspect-ratio: 1;
            background-color: rgba(255, 255, 255, 0.05);
            background-size: cover;
            background-position: center;
            position: relative;
        }
        .ig-video-thumb::after {
            content: '▶';
            position: absolute;
            bottom: 8px;
            left: 8px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
        }
        .ig-video-body { padding: 0.75rem; }
        .ig-video-caption {
            font-size: 0.85rem;
            opacity: 0.8;
            margin-bottom: 0.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .ig-video-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.8rem;
            opacity: 0.6;
        }
        .ig-video-stats span { display: flex; align-items: center; gap: 0.25rem; }
        .social-platform { margin-bottom: 3rem; }
        .social-platform-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .social-inputs {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .input-group { display: flex; flex-direction: column; }
        .input-group label {
            font-size: 0.75rem;
            text-transform: uppercase;
            opacity: 0.7;
            margin-bottom: 0.5rem;
            letter-spacing: 0.1em;
        }
        .input-group input {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
        }
        .input-group input:focus {
            outline: none;
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .insights-section { margin-top: 2rem; }
        .insights-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            font-size: 1rem;
            margin-bottom: 1rem;
        }
        .insights-textarea {
            width: 100%;
            min-height: 100px;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 1rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            resize: vertical;
        }
        .insights-textarea:focus {
            outline: none;
            border-color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        .setup-notice {
            background-color: rgba(255, 153, 0, 0.08);
            border: 1px solid rgba(255, 153, 0, 0.3);
            padding: 1.5rem;
            margin-bottom: 2rem;
            font-size: 0.85rem;
            line-height: 1.8;
        }
        .setup-notice strong { color: #ff9900; }
        .setup-notice ol { margin: 0.75rem 0 0 1.25rem; }
        .setup-notice li { margin-bottom: 0.35rem; }
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background-color: rgba(29, 185, 84, 0.9);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 4px;
            animation: slideIn 0.3s ease;
            z-index: 2000;
        }
        .toast.error { background-color: rgba(255, 68, 68, 0.9); }
        @keyframes slideIn {
            from { transform: translateX(400px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        .ideas-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 5000;
            align-items: center;
            justify-content: center;
        }
        .ideas-modal-overlay.open { display: flex; }
        .ideas-modal {
            background: rgb(20, 20, 20);
            border: 1px solid rgba(255,255,255,0.15);
            width: 560px;
            max-width: 95vw;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
        }
        .ideas-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .ideas-modal-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 1.1rem;
            letter-spacing: -0.02em;
        }
        .ideas-modal-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.6);
            font-size: 1.4rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
            transition: color 0.2s;
        }
        .ideas-modal-close:hover { color: white; }
        .ideas-modal-tabs {
            display: flex;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            overflow-x: auto;
        }
        .ideas-modal-tab {
            background: none;
            border: none;
            color: rgba(255,255,255,0.4);
            padding: 0.75rem 1rem;
            cursor: pointer;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            position: relative;
            transition: color 0.2s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .ideas-modal-tab:hover { color: rgba(255,255,255,0.8); }
        .ideas-modal-tab.active { color: white; }
        .ideas-modal-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px; left: 0; right: 0;
            height: 2px;
            background: white;
        }
        .ideas-modal-tab .tab-dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            display: inline-block;
        }
        .ideas-tab-content { display: none; padding: 1.5rem; }
        .ideas-tab-content.active { display: block; }
        .ideas-field-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.5;
            margin-bottom: 0.5rem;
        }
        .ideas-field-group { margin-bottom: 1.25rem; }
        .hashtag-input-row {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .hashtag-input {
            flex: 1;
            min-width: 80px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            color: white;
            padding: 0.5rem 0.6rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
        }
        .hashtag-input:focus {
            outline: none;
            border-color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.08);
        }
        .hashtag-input::placeholder { opacity: 0.3; }
        .creator-input {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            color: white;
            padding: 0.5rem 0.6rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            margin-bottom: 0.4rem;
        }
        .creator-input:focus {
            outline: none;
            border-color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.08);
        }
        .creator-input::placeholder { opacity: 0.3; }
        .ideas-save-btn {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.4);
            color: white;
            padding: 0.7rem 1.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
        }
        .ideas-save-btn:hover {
            border-color: white;
            background: rgba(255,255,255,0.08);
        }

        .ideas-results-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.75);
            z-index: 5000;
            align-items: center;
            justify-content: center;
        }
        .ideas-results-overlay.open { display: flex; }
        .ideas-results-modal {
            background: rgb(18, 18, 18);
            border: 1px solid rgba(255,255,255,0.15);
            width: 680px;
            max-width: 95vw;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }
        .ideas-results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: sticky;
            top: 0;
            background: rgb(18,18,18);
            z-index: 1;
        }
        .ideas-results-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            font-size: 1.1rem;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }
        .ideas-results-body { padding: 1.5rem; }
        .ideas-loading {
            text-align: center;
            padding: 3rem 1rem;
            font-size: 0.85rem;
            opacity: 0.6;
        }
        .ideas-loading .spinner {
            display: inline-block;
            width: 24px; height: 24px;
            border: 2px solid rgba(255,255,255,0.15);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 1rem;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
        .ideas-best-times {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            padding: 1rem;
            margin-bottom: 1.5rem;
            border-radius: 4px;
        }
        .ideas-best-times-label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.5;
            margin-bottom: 0.5rem;
        }
        .idea-card {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 1.25rem;
            margin-bottom: 1rem;
            transition: border-color 0.2s;
        }
        .idea-card:hover { border-color: rgba(255,255,255,0.25); }
        .idea-card-number {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 0.75rem;
            opacity: 0.4;
            margin-bottom: 0.4rem;
        }
        .idea-card-title {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }
        .idea-card-desc {
            font-size: 0.82rem;
            opacity: 0.75;
            line-height: 1.6;
            margin-bottom: 0.6rem;
        }
        .idea-card-tags {
            display: flex;
            gap: 0.4rem;
            flex-wrap: wrap;
        }
        .idea-tag {
            font-size: 0.65rem;
            padding: 0.2rem 0.5rem;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 2px;
            opacity: 0.6;
        }
        .idea-inspo-link {
            text-decoration: none;
            color: inherit;
            display: block;
            margin-top: 0.75rem;
        }
        .idea-inspo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.6rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 4px;
            transition: border-color 0.2s, background 0.2s;
        }
        .idea-inspo:hover {
            border-color: rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.07);
        }
        .idea-inspo-thumb {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 3px;
            flex-shrink: 0;
        }
        .idea-inspo-info {
            flex: 1;
            min-width: 0;
        }
        .idea-inspo-label {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            opacity: 0.4;
            margin-bottom: 0.2rem;
            font-family: 'IBM Plex Mono', monospace;
        }
        .idea-inspo-title {
            font-size: 0.72rem;
            line-height: 1.3;
            opacity: 0.8;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .idea-inspo-stats {
            font-size: 0.6rem;
            opacity: 0.4;
            margin-top: 0.15rem;
        }
        .idea-inspo-arrow {
            font-size: 1rem;
            opacity: 0.3;
            flex-shrink: 0;
        }
        .idea-inspo-no-thumb {
            padding: 0.8rem;
        }
        .idea-inspo-icon {
            font-size: 1.4rem;
            opacity: 0.3;
            flex-shrink: 0;
            width: 40px;
            text-align: center;
        }
        .more-ideas-btn {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 0.75rem 1.5rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
            margin-top: 0.5rem;
        }
        .more-ideas-btn:hover {
            border-color: white;
            background: rgba(255,255,255,0.06);
        }
        .more-ideas-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        #contactModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        #contactModal.active { display: flex; }
        #contactModal .modal-box {
            background: rgb(20, 20, 20);
            border: 1px solid rgba(255,255,255,0.15);
            padding: 2rem;
            width: 420px;
            max-width: 92vw;
        }
        #contactModal .modal-box h2 {
            margin: 0 0 1.5rem 0;
            font-family: 'Teko', sans-serif;
            font-size: 1.3rem;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            color: #fff;
        }
        #contactModal .form-group {
            margin-bottom: 1rem;
        }
        #contactModal .form-group label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
        }
        #contactModal .form-group input,
        #contactModal .form-group select {
            width: 100%;
            padding: 0.65rem 0.75rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        #contactModal .form-group input:focus,
        #contactModal .form-group select:focus {
            border-color: white;
            background: rgba(255,255,255,0.1);
        }
        #contactModal .form-group select option {
            background: rgb(20,20,20);
            color: #fff;
        }
        #contactModal .modal-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        #contactModal .modal-btn-save {
            flex: 1;
            padding: 0.75rem;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.5);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        #contactModal .modal-btn-save:hover {
            border-color: white;
            background: rgba(255,255,255,0.1);
        }
        #contactModal .modal-btn-cancel {
            flex: 1;
            padding: 0.75rem;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.2);
            color: rgba(255,255,255,0.6);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        #contactModal .modal-btn-cancel:hover {
            background: rgba(255,255,255,0.05);
        }

        /* Invite Modal - reuses contactModal patterns */
        #inviteModal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.7);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }
        #inviteModal.active { display: flex; }
        #inviteModal .modal-box {
            background: rgb(20, 20, 20);
            border: 1px solid rgba(212,175,55,0.3);
            padding: 2rem;
            width: 420px;
            max-width: 92vw;
        }
        #inviteModal .modal-box h2 {
            margin: 0 0 0.25rem 0;
            font-family: 'Teko', sans-serif;
            font-size: 1.3rem;
            font-weight: 900;
            font-style: italic;
            text-transform: uppercase;
            letter-spacing: -0.02em;
            color: #e63946;
        }
        #inviteModal .form-group {
            margin-bottom: 1rem;
        }
        #inviteModal .form-group label {
            display: block;
            font-size: 0.7rem;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
        }
        #inviteModal .form-group input,
        #inviteModal .form-group select {
            width: 100%;
            padding: 0.65rem 0.75rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        #inviteModal .form-group input:focus,
        #inviteModal .form-group select:focus {
            border-color: #e63946;
            background: rgba(255,255,255,0.1);
        }
        #inviteModal .form-group select option {
            background: rgb(20,20,20);
            color: #fff;
        }
        #inviteModal .modal-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        #inviteModal .modal-btn-save {
            flex: 1;
            padding: 0.75rem;
            background: #e63946;
            border: none;
            color: #000;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        #inviteModal .modal-btn-save:hover {
            background: #e8c84a;
        }
        #inviteModal .modal-btn-save:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        #inviteModal .modal-btn-cancel {
            flex: 1;
            padding: 0.75rem;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.2);
            color: rgba(255,255,255,0.6);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        #inviteModal .modal-btn-cancel:hover {
            background: rgba(255,255,255,0.05);
        }

        /* Contact card invite & team badges */
        .contact-team-badge {
            display: inline-block;
            padding: 0.15rem 0.5rem;
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 2px;
            margin-left: 0.5rem;
            vertical-align: middle;
        }
        .contact-team-joined {
            background: rgba(76, 175, 80, 0.2);
            border: 1px solid rgba(76, 175, 80, 0.4);
            color: #4caf50;
        }
        .contact-team-pending {
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #e63946;
        }
        .contact-card-joined {
            border-color: rgba(76, 175, 80, 0.3) !important;
        }
        .btn-contact-invite {
            background: rgba(212, 175, 55, 0.15);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #e63946;
            padding: 0.35rem 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .btn-contact-invite:hover {
            background: rgba(212, 175, 55, 0.3);
            border-color: #e63946;
        }
        .contact-change-role {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            padding-top: 0.5rem;
        }
        .contact-change-role label {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.5;
            white-space: nowrap;
        }
        .contact-change-role select {
            flex: 1;
            padding: 0.4rem 0.5rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            outline: none;
        }
        .contact-change-role select:focus {
            border-color: #e63946;
        }
        .contact-change-role select option {
            background: rgb(20,20,20);
            color: #fff;
        }

        .contacts-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        .btn-add-contact {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.2rem;
            background: transparent;
            border: 1px solid rgba(255,255,255,0.5);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-add-contact:hover {
            border-color: white;
            background: rgba(255,255,255,0.1);
        }
        .contacts-search-wrap {
            position: relative;
            margin-bottom: 1.5rem;
        }
        .contacts-search-wrap svg {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.3);
            pointer-events: none;
        }
        .contacts-search {
            width: 100%;
            padding: 0.65rem 0.75rem 0.65rem 2.25rem;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.85rem;
            outline: none;
            transition: border-color 0.2s;
            box-sizing: border-box;
        }
        .contacts-search:focus {
            border-color: white;
            background: rgba(255,255,255,0.1);
        }
        .contact-list {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .contact-letter-header {
            font-size: 0.7rem;
            font-weight: 700;
            color: rgba(255,255,255,0.3);
            text-transform: uppercase;
            letter-spacing: 0.15em;
            padding: 0.75rem 0.25rem 0.35rem;
            margin-top: 0.5rem;
        }
        .contact-letter-header:first-child { margin-top: 0; }
        .contact-card {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.08);
            transition: background 0.2s;
        }
        .contact-card:hover {
            background: rgba(255,255,255,0.05);
        }
        .contact-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
            cursor: pointer;
            user-select: none;
        }
        .contact-card-info {
            display: flex;
            flex-direction: column;
        }
        .contact-card-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: #fff;
        }
        .contact-card-role {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.4);
            margin-top: 0.15rem;
        }
        .contact-card .chevron-icon {
            color: rgba(255,255,255,0.25);
            transition: transform 0.25s ease;
        }
        .contact-card.open .chevron-icon {
            transform: rotate(180deg);
        }
        .contact-details {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        .contact-card.open .contact-details {
            max-height: 200px;
        }
        .contact-details-inner {
            padding: 0 1rem 0.85rem 1rem;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }
        .contact-detail-row {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .contact-detail-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: rgba(255,255,255,0.6);
        }
        .contact-detail-item svg {
            flex-shrink: 0;
            color: rgba(255,255,255,0.3);
        }
        .contact-detail-item a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
        }
        .contact-detail-item a:hover {
            text-decoration: underline;
            color: white;
        }
        .contact-actions {
            display: flex;
            gap: 0.5rem;
        }
        .contact-actions button {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.4rem;
            cursor: pointer;
            color: rgba(255,255,255,0.4);
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .contact-actions button:hover {
            background: rgba(255,255,255,0.08);
            color: #fff;
        }
        .contact-actions button.btn-contact-delete:hover {
            background: rgba(239,68,68,0.12);
            border-color: rgba(239,68,68,0.3);
            color: #ef4444;
        }
        /* ═══════ FRIENDS SYSTEM ═══════ */
        .contacts-friends-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        .contacts-col, .friends-col {
            min-width: 0;
        }
        .friends-col {
            border-left: 1px solid rgba(255,255,255,0.06);
            padding-left: 2rem;
        }
        .friends-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .friends-empty {
            text-align: center;
            padding: 2rem 1rem;
            color: rgba(255,255,255,0.35);
            font-size: 0.8rem;
        }
        .friend-card {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 8px;
            transition: background 0.2s;
        }
        .friend-card:hover {
            background: rgba(255,255,255,0.04);
        }
        .friend-card-main {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.85rem 1rem;
        }
        .friend-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: rgba(212,175,55,0.12);
            border: 1px solid rgba(212,175,55,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }
        .friend-avatar span {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 0.85rem;
            color: #e63946;
        }
        .friend-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 7px;
        }
        .friend-name {
            font-family: 'Teko', sans-serif;
            font-size: 0.85rem;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.03em;
        }
        .friend-status {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #10b981;
            font-weight: 700;
            margin-top: 0.1rem;
        }
        .friend-since {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.3);
            margin-top: 0.1rem;
        }
        .friend-chevron {
            color: rgba(255,255,255,0.25);
            transition: transform 0.25s ease;
        }
        .friend-chevron.rotated {
            transform: rotate(180deg);
        }
        .friend-badge {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            padding: 0.2rem 0.5rem;
            border-radius: 3px;
            text-transform: uppercase;
        }
        .friend-badge-pending {
            background: rgba(245,158,11,0.15);
            color: #f59e0b;
            border: 1px solid rgba(245,158,11,0.3);
        }
        .friend-badge-accepted {
            background: rgba(16,185,129,0.15);
            color: #10b981;
            border: 1px solid rgba(16,185,129,0.3);
        }
        .friend-card-pending .friend-name {
            opacity: 0.6;
        }
        .btn-friend-cancel {
            background: none;
            border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.4);
            padding: 0.3rem 0.6rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .btn-friend-cancel:hover {
            border-color: rgba(239,68,68,0.4);
            color: #ef4444;
        }
        /* Friend requests */
        .friend-requests-header {
            font-size: 0.65rem;
            font-weight: 700;
            color: #f59e0b;
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
        }
        .friend-request-card {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: rgba(245,158,11,0.06);
            border: 1px solid rgba(245,158,11,0.15);
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }
        .friend-request-info {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .friend-request-name {
            font-size: 0.85rem;
            font-weight: 600;
            color: #fff;
        }
        .friend-request-label {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.4);
            display: block;
            margin-top: 0.1rem;
        }
        .friend-request-actions {
            display: flex;
            gap: 0.4rem;
        }
        .btn-friend-accept {
            background: rgba(16,185,129,0.15);
            border: 1px solid rgba(16,185,129,0.3);
            color: #10b981;
            padding: 0.35rem 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.2s;
        }
        .btn-friend-accept:hover {
            background: rgba(16,185,129,0.25);
            border-color: #10b981;
        }
        .btn-friend-decline {
            background: none;
            border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.4);
            padding: 0.35rem 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .btn-friend-decline:hover {
            border-color: rgba(239,68,68,0.4);
            color: #ef4444;
        }
        /* Expanded friend card */
        .friend-expanded-content {
            padding: 0 1rem 1rem;
            border-top: 1px solid rgba(255,255,255,0.06);
        }
        .friend-actions-row {
            display: flex;
            gap: 0.5rem;
            margin: 0.75rem 0;
        }
        .btn-friend-action {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.7);
            padding: 0.4rem 0.75rem;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.2s;
        }
        .btn-friend-action:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.3);
            color: #fff;
        }
        .btn-friend-remove {
            color: rgba(239,68,68,0.5);
            border-color: rgba(239,68,68,0.15);
        }
        .btn-friend-remove:hover {
            background: rgba(239,68,68,0.1);
            border-color: rgba(239,68,68,0.3);
            color: #ef4444;
        }
        .friend-shared-section {
            margin-top: 0.75rem;
        }
        .friend-shared-label {
            font-size: 0.6rem;
            font-weight: 700;
            color: rgba(255,255,255,0.35);
            letter-spacing: 0.1em;
            margin-bottom: 0.4rem;
        }
        .friend-shared-date {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.4rem 0.6rem;
            background: rgba(99,102,241,0.06);
            border: 1px solid rgba(99,102,241,0.1);
            margin-bottom: 3px;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.8);
        }
        .friend-shared-date-info {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.4);
        }
        /* Add friend modal */
        .add-friend-modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 9998;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .add-friend-form {
            background: #1a1a1a;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 1.5rem;
            width: 90%;
            max-width: 400px;
        }
        .friend-search-results {
            margin-top: 0.5rem;
            max-height: 250px;
            overflow-y: auto;
        }
        .friend-search-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0.75rem;
            cursor: pointer;
            transition: background 0.15s;
            font-size: 0.8rem;
            color: rgba(255,255,255,0.8);
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .friend-search-item:hover {
            background: rgba(255,255,255,0.06);
        }
        .friend-search-item-existing {
            cursor: default;
            opacity: 0.5;
        }
        .friend-search-add {
            font-size: 0.7rem;
            color: #818cf8;
            font-weight: 700;
        }
        .friend-search-empty {
            padding: 1rem;
            text-align: center;
            color: rgba(255,255,255,0.35);
            font-size: 0.75rem;
        }
        /* Share dates modal */
        .share-dates-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.75);
            z-index: 99999;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .share-dates-panel {
            background: #1a1a1a;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            padding: 1.5rem;
            width: 90%;
            max-width: 450px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
        }
        .share-dates-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            color: #fff;
            margin-bottom: 0.5rem;
        }
        .share-dates-subtitle {
            font-size: 0.7rem;
            color: rgba(255,255,255,0.4);
            margin-bottom: 1rem;
            line-height: 1.4;
        }
        .share-dates-list {
            flex: 1;
            overflow-y: auto;
            margin-bottom: 1rem;
        }
        .share-date-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.6rem 0.5rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            transition: background 0.15s;
        }
        .share-date-item:hover {
            background: rgba(255,255,255,0.04);
        }
        .share-date-item input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 3px;
            background: transparent;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
        }
        .share-date-item input[type="checkbox"]:checked {
            background: rgba(99,102,241,0.3);
            border-color: #818cf8;
        }
        .share-date-item input[type="checkbox"]:checked::after {
            content: '✓';
            position: absolute;
            top: -1px;
            left: 2px;
            font-size: 12px;
            color: #818cf8;
        }
        .share-date-name {
            font-size: 0.8rem;
            color: #fff;
            display: block;
        }
        .share-date-meta {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.4);
        }
        .share-dates-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
        }
        /* ═══════ CONNECT TAB ═══════ */
        .connect-stats-bar {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .connect-stat {
            flex: 1;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 0.75rem;
            text-align: center;
        }
        .connect-stat-val {
            display: block;
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-size: 1.4rem;
            color: #fff;
        }
        .connect-stat-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.4;
            margin-top: 0.15rem;
            display: block;
        }
        .connect-section {
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 10px;
            padding: 1.25rem;
            margin-bottom: 1.25rem;
        }
        .connect-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        .connect-section-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .connect-import-row {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        .connect-import-btn {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: rgba(255,255,255,0.7);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-import-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.2);
            color: #fff;
        }
        .connect-search {
            padding: 0.4rem 0.6rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 4px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            width: 180px;
        }
        .connect-add-btn {
            padding: 0.4rem 0.75rem;
            background: rgba(99,102,241,0.2);
            border: 1px solid rgba(129,140,248,0.3);
            border-radius: 4px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-add-btn:hover { background: rgba(99,102,241,0.35); }
        .connect-fan-list-header {
            display: grid;
            grid-template-columns: 1.5fr 2fr 1.2fr 1fr 0.8fr 0.4fr;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            opacity: 0.35;
            font-weight: 700;
        }
        .cfh-sortable { cursor: pointer; transition: opacity 0.15s; }
        .cfh-sortable:hover { opacity: 2.5; }
        .cfh-arrow { font-size: 0.5rem; margin-left: 0.15rem; }
        .connect-fan-list { max-height: 400px; overflow-y: auto; }
        .connect-fan-row {
            display: grid;
            grid-template-columns: 1.5fr 2fr 1.2fr 1fr 0.8fr 0.4fr;
            gap: 0.5rem;
            padding: 0.6rem 0.75rem;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            font-size: 0.75rem;
            align-items: center;
            transition: background 0.15s;
        }
        .connect-fan-row:hover { background: rgba(255,255,255,0.03); }
        .connect-fan-name { font-weight: 700; color: #fff; }
        .connect-fan-email { opacity: 0.6; font-size: 0.7rem; }
        .connect-fan-phone { opacity: 0.6; font-size: 0.7rem; }
        .connect-fan-source {
            font-size: 0.55rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            display: inline-block;
            font-weight: 700;
        }
        .connect-fan-source.src-shopify { background: rgba(150,191,72,0.15); color: #96BF48; }
        .connect-fan-source.src-mailchimp { background: rgba(255,224,27,0.15); color: #FFE01B; }
        .connect-fan-source.src-bandsintown { background: rgba(0,206,200,0.15); color: #00CEC8; }
        .connect-fan-source.src-manual { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
        .connect-fan-source.src-csv { background: rgba(99,102,241,0.15); color: #a5b4fc; }
        .connect-fan-tag {
            font-size: 0.5rem;
            padding: 0.1rem 0.35rem;
            background: rgba(255,255,255,0.06);
            border-radius: 2px;
            display: inline-block;
            margin: 0.1rem;
            opacity: 0.5;
        }
        .connect-fan-delete {
            background: none;
            border: none;
            color: rgba(255,255,255,0.15);
            cursor: pointer;
            font-size: 0.8rem;
            padding: 0.2rem;
        }
        .connect-fan-delete:hover { color: #ef4444; }
        .connect-broadcast { display: flex; flex-direction: column; gap: 0.75rem; }
        .connect-broadcast-type { display: flex; gap: 0.5rem; }
        .connect-type-btn {
            padding: 0.4rem 1rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 4px;
            color: rgba(255,255,255,0.5);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-type-btn.active {
            background: rgba(99,102,241,0.2);
            border-color: rgba(129,140,248,0.4);
            color: #a5b4fc;
        }
        .connect-input {
            padding: 0.5rem 0.75rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            width: 100%;
            box-sizing: border-box;
        }
        .connect-textarea {
            padding: 0.6rem 0.75rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            width: 100%;
            box-sizing: border-box;
            resize: vertical;
        }
        .connect-broadcast-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        .connect-audience {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .connect-audience-label {
            font-size: 0.65rem;
            opacity: 0.4;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .connect-select {
            padding: 0.35rem 0.5rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 4px;
            color: #fff;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
        }
        .connect-audience-count {
            font-size: 0.65rem;
            color: #a5b4fc;
            font-weight: 700;
        }
        .connect-send-btn {
            padding: 0.5rem 1.5rem;
            background: linear-gradient(135deg, #6366f1, #818cf8);
            border: none;
            border-radius: 6px;
            color: #fff;
            font-family: 'Teko', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-send-btn:hover { opacity: 0.85; transform: translateY(-1px); }
        .connect-history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.04);
            font-size: 0.75rem;
        }
        .connect-history-type {
            font-size: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            font-weight: 700;
        }
        .connect-history-type.type-email { background: rgba(99,102,241,0.15); color: #a5b4fc; }
        .connect-history-type.type-sms { background: rgba(16,185,129,0.15); color: #10b981; }
        .connect-templates {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .connect-templates-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            opacity: 0.35;
            font-weight: 700;
        }
        .connect-tpl-btn {
            padding: 0.3rem 0.6rem;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 4px;
            color: rgba(255,255,255,0.6);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }
        .connect-tpl-btn:hover {
            background: rgba(99,102,241,0.15);
            border-color: rgba(129,140,248,0.3);
            color: #a5b4fc;
        }
        .connect-email-designer { display: flex; flex-direction: column; gap: 0.5rem; }
        .connect-designer-toolbar {
            display: flex;
            gap: 0.3rem;
        }
        .connect-var-btn {
            padding: 0.2rem 0.5rem;
            background: rgba(245,158,11,0.1);
            border: 1px solid rgba(245,158,11,0.2);
            border-radius: 3px;
            color: #f59e0b;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            cursor: pointer;
        }
        .connect-var-btn:hover { background: rgba(245,158,11,0.2); }
        .connect-email-preview {
            background: #fff;
            color: #333;
            border-radius: 6px;
            padding: 1.25rem;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 0.85rem;
            line-height: 1.6;
            max-height: 300px;
            overflow-y: auto;
        }
        .connect-preview-btn {
            align-self: flex-start;
            padding: 0.3rem 0.6rem;
            background: none;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 4px;
            color: rgba(255,255,255,0.4);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
        }
        .connect-preview-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }
        .connect-fan-city { opacity: 0.5; font-size: 0.7rem; }
        .connect-empty {
            text-align: center;
            padding: 2rem 1rem;
            opacity: 0.3;
            font-size: 0.8rem;
        }

        .contacts-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: rgba(255,255,255,0.3);
        }
        .contacts-empty p {
            font-size: 0.85rem;
            margin: 0;
        }

        .content-top-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
            align-items: stretch;
        }
        .content-top-row .top-performers-box {
            flex: 1;
            min-width: 0;
            margin-bottom: 0;
        }
        .content-stats-wrapper {
            flex: 0 0 180px;
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 0.75rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
        }
        .bp-bar-btn {
            padding: 0.3rem 0.6rem;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.25);
            border-radius: 4px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.55rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            white-space: nowrap;
            width: 100%;
            justify-content: center;
        }
        .content-stats-bar {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            width: 100%;
        }
        .content-stat-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            font-size: 0.8rem;
        }
        .stat-full { display: inline; }
        .stat-short { display: none; }
        .content-stat-abbr {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 0.75rem;
        }
        .content-stat-count {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
        }
        /* ── Hashtag Generator ── */
        .hashtag-gen {
            width: 100%;
            border-top: 1px solid rgba(255,255,255,0.08);
            padding-top: 0.6rem;
            margin-top: 0.3rem;
        }
        .hashtag-gen-label {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: rgba(255,255,255,0.5);
            margin-bottom: 0.4rem;
        }
        .hashtag-gen-results {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin-bottom: 0.5rem;
            min-height: 1.5rem;
        }
        .hashtag-chip {
            display: inline-block;
            padding: 0.2rem 0.45rem;
            background: rgba(99,102,241,0.12);
            border: 1px solid rgba(129,140,248,0.2);
            border-radius: 4px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.15s ease;
            user-select: all;
        }
        .hashtag-chip:hover {
            background: rgba(99,102,241,0.25);
            border-color: rgba(129,140,248,0.4);
        }
        .hashtag-chip.copied {
            background: rgba(16,185,129,0.2);
            border-color: rgba(16,185,129,0.4);
            color: #10b981;
        }
        .hashtag-gen-btn {
            width: 100%;
            padding: 0.35rem 0;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.25);
            border-radius: 6px;
            color: #a5b4fc;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.6rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            cursor: pointer;
            transition: all 0.2s;
        }
        .hashtag-gen-btn:hover {
            background: rgba(99,102,241,0.25);
            border-color: rgba(129,140,248,0.5);
        }
        .hashtag-gen-btn:disabled {
            opacity: 0.5;
            cursor: default;
        }

        /* Top Performers */
        .top-performers-box {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }
        .top-performers-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }
        .top-performers-title {
            font-family: 'Teko', sans-serif;
            font-weight: 900;
            font-style: italic;
            font-size: 1.1rem;
            text-transform: uppercase;
        }
        .top-performers-row {
            display: flex;
            gap: 0.75rem;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 0.25rem;
        }
        .top-performers-row::-webkit-scrollbar { display: none; }
        .top-performer-card {
            flex: 1 1 0%;
            min-width: 0;
            text-align: center;
            cursor: pointer;
            scroll-snap-align: start;
        }
        .top-performer-thumb {
            width: 100%;
            padding-top: 100%;
            position: relative;
            border-radius: 6px;
            overflow: hidden;
            border: 2px solid rgba(255,255,255,0.08);
            transition: all 0.2s;
        }
        .top-performer-card:hover .top-performer-thumb {
            border-color: #818cf8;
            transform: scale(1.03);
        }
        .top-performer-thumb img {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .top-performer-platform {
            position: absolute;
            top: 0.3rem;
            left: 0.3rem;
            font-size: 0.5rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding: 0.15rem 0.4rem;
            border-radius: 3px;
            background: rgba(0,0,0,0.7);
        }
        .top-performer-engagement {
            position: absolute;
            bottom: 0;
            left: 0; right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.85));
            padding: 0.5rem 0.25rem 0.25rem;
            font-size: 0.6rem;
            font-weight: 700;
            color: #fff;
        }
        .top-performer-caption {
            font-size: 0.6rem;
            margin-top: 0.35rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            opacity: 0.5;
        }
        .top-performer-cta {
            display: inline-block;
            font-family: 'Teko', sans-serif;
            font-size: 0.55rem;
            font-weight: 700;
            color: #a5b4fc;
            margin-top: 0.35rem;
            padding: 0.25rem 0.5rem;
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: rgba(99,102,241,0.15);
            border: 1px solid rgba(129,140,248,0.2);
            border-radius: 3px;
        }
        .top-performer-cta:hover {
            background: rgba(99,102,241,0.45);
            border-color: #818cf8;
        }
        .top-performer-analysis-panel {
            background: rgba(99,102,241,0.06);
            border: 1px solid rgba(99,102,241,0.15);
            border-radius: 10px;
            padding: 1.25rem;
            margin-top: 0.75rem;
            animation: fadeSlideIn 0.3s ease;
        }
        @keyframes fadeSlideIn {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .tp-analysis-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 1rem;
        }
        .tp-notes-text {
            font-size: 0.85rem;
            line-height: 1.7;
            color: rgba(255,255,255,0.8);
            margin-bottom: 1.25rem;
        }
        .tp-ideas-label {
            font-family: 'Teko', sans-serif;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 0.75rem;
            color: #a5b4fc;
        }
        .tp-idea-card {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            padding: 1.25rem;
            margin-bottom: 0.75rem;
        }
        .tp-idea-card h4 {
            font-family: 'Teko', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            margin: 0 0 0.5rem;
            color: #c7d2fe;
        }
        .tp-idea-card p {
            font-size: 0.85rem;
            line-height: 1.7;
            color: rgba(255,255,255,0.7);
            margin: 0;
        }

        /* Mobile menu - hidden on desktop */
        .mobile-menu-btn { display: none; }
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.6);
            z-index: 9998;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .mobile-menu-overlay.open { display: block; opacity: 1; }
        .mobile-menu {
            display: none;
            position: fixed;
            top: 0; right: 0;
            width: 280px;
            height: 100%;
            background: rgb(15, 15, 15);
            border-left: 1px solid rgba(255,255,255,0.08);
            z-index: 9999;
            flex-direction: column;
            overflow-y: auto;
            box-shadow: -4px 0 24px rgba(0,0,0,0.5);
        }
        .mobile-menu.open { display: flex; }
        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .mobile-menu-role {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            color: #e63946;
            padding: 0.25rem 0.6rem;
            border: 1px solid rgba(212,175,55,0.25);
            border-radius: 4px;
            background: rgba(212,175,55,0.08);
        }
        .mobile-menu-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 1.8rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }
        .mobile-menu-items {
            display: flex;
            flex-direction: column;
            padding: 0.5rem 0;
        }
        .mobile-menu-item {
            background: none;
            border: none;
            color: rgba(255,255,255,0.7);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            text-align: left;
            padding: 1rem 1.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .mobile-menu-item:hover, .mobile-menu-item.active {
            color: white;
            background: rgba(255,255,255,0.05);
        }
        .mobile-menu-item.active {
            border-left: 2px solid #e63946;
            color: #e63946;
        }
        .mobile-menu-divider {
            height: 1px;
            background: rgba(255,255,255,0.08);
            margin: 0.5rem 1.5rem;
        }
        .mobile-menu-refresh {
            color: rgba(255,255,255,0.4);
            font-size: 0.7rem;
        }

        @media (max-width: 768px) {

            /* Prevent any horizontal overflow from causing browser zoom-out blur */
            html, body {
                overflow-x: hidden !important;
                max-width: 100vw !important;
            }

            #top8Grid { grid-template-columns: repeat(4, 1fr) !important; }

            .logo { font-size: 1.3rem; height: 1.5rem; }
            .logo img { max-height: 1.5rem; }
            header { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; padding: 1rem; }
            .header-followers { margin-left: 0.75rem; gap: 0.3rem; }
            .header-followers-number { font-size: 1.1rem; }
            .header-followers-label { font-size: 0.5rem; }
            .header-controls { gap: 0.5rem; }
            .header-controls .last-updated { display: none; }

            /* Hide tab nav and desktop-only controls on mobile */
            .tab-nav { display: none !important; }
            .mobile-menu-btn { display: flex !important; }
            #settingsBtn { display: none !important; }
            #refreshBtn { display: none !important; }
            #jediRoleSwitcher { display: none !important; }
            #planBadge { display: none !important; }

            .content { padding: 1rem; }

            /* Disable tab fade animation on mobile to prevent Safari low-res rasterization */
            .tab-content.active {
                animation: none !important;
            }

            .overview-row { flex-direction: column; gap: 0; margin-bottom: 1rem; }
            .row-label {
                writing-mode: horizontal-tb;
                transform: none;
                padding: 0.5rem 0;
                font-size: 0.7rem;
                opacity: 0.25;
            }

            .cards-grid {
                display: grid !important;
                grid-template-columns: 1fr 1fr !important;
                gap: 0.5rem !important;
            }

            /* Default tile state — compact 2x2 boxes */
            .cards-grid .card:not(.collapsed):not(.expanded) {
                flex: none;
                width: 100%;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-main {
                padding: 0.6rem 0.75rem;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .more-stats-dropdown {
                display: none !important;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-stat + .card-stat,
            .cards-grid .card:not(.collapsed):not(.expanded) .card-status {
                display: none !important;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-stat-value {
                font-size: 1.3rem;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-stat-label {
                font-size: 0.5rem;
                margin-bottom: 0;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-stat {
                margin-bottom: 0;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-header {
                margin-bottom: 0.15rem;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-title {
                font-size: 0.6rem;
            }
            .cards-grid .card:not(.collapsed):not(.expanded) .card-accent {
                width: 3px;
                height: 12px;
            }

            /* Expanded card — full width across both columns */
            .card.expanded {
                grid-column: 1 / -1 !important;
                display: flex !important;
                flex-direction: column !important;
                grid-template-columns: none !important;
                width: 100%;
            }
            .card.expanded .more-stats-content {
                grid-template-columns: 1fr !important;
                gap: 1rem;
                padding: 1rem;
                border-left: none !important;
                border-top: 1px solid rgba(255,255,255,0.1);
            }

            /* Collapsed card — same tile size as default */
            .card.collapsed {
                flex: none !important;
                min-width: auto !important;
                max-width: none !important;
                width: 100%;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 0.75rem 0.5rem;
            }
            .card.collapsed .card-collapsed-label {
                writing-mode: horizontal-tb !important;
                transform: none !important;
                font-size: 0.7rem;
                color: rgba(255, 255, 255, 0.6);
            }

            .content-top-row {
                flex-direction: column;
            }
            .content-stats-wrapper {
                flex: none;
                flex-direction: column;
                padding: 0.75rem;
                align-items: stretch;
                gap: 0.6rem;
            }
            .bp-bar-btn {
                width: auto;
            }
            .content-stats-bar {
                flex-direction: row;
                flex-wrap: wrap;
                gap: 0.3rem 0.75rem;
                justify-content: center;
            }
            .content-stat-item {
                width: auto;
                justify-content: flex-start;
                gap: 0.3rem;
                font-size: 0.7rem;
            }
            .stat-full { display: none; }
            .stat-short { display: inline; }
            .content-stat-abbr { font-size: 0.65rem; }
            .content-stat-count { font-size: 0.75rem; }

            /* Content ideas: 3-2 button layout */
            .platform-buttons {
                display: grid !important;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 0.5rem !important;
            }
            .idea-btn {
                font-size: 0.65rem !important;
                padding: 0.5rem 0.6rem !important;
                justify-content: center;
            }
            .idea-btn[data-platform="youtube"] { order: 4 !important; }
            .idea-btn[data-platform="threads"] { order: 5 !important; }

            .top-performer-card {
                flex: 0 0 40%;
                min-width: 130px;
            }
            .top-performers-box { padding: 0.75rem; margin-bottom: 0; }
            .top-performers-title { font-size: 0.9rem; }
            .top-performer-cta { font-size: 0.5rem; padding: 0.2rem 0.4rem; }

            .content-ideas-box { padding: 0.75rem; margin-bottom: 1rem; }

            /* Tried content mobile */
            .tried-content-box { padding: 0.75rem; margin-bottom: 1rem; }
            .tried-url-row { flex-direction: column; }
            .tried-analyze-btn { width: 100%; }
            .tried-card { padding: 0.75rem; }

            /* Connect mobile */
            .connect-stats-bar { gap: 0.5rem; }
            .connect-stat { padding: 0.5rem; }
            .connect-stat-val { font-size: 1.1rem; }
            .connect-import-row { flex-direction: column; }
            .connect-import-btn { width: 100%; }
            .connect-section { padding: 0.75rem; }
            .connect-section-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
            .connect-fan-list-header { display: none; }
            .connect-fan-row {
                grid-template-columns: 1fr;
                gap: 0.2rem;
                padding: 0.75rem;
                border: 1px solid rgba(255,255,255,0.06);
                border-radius: 6px;
                margin-bottom: 0.4rem;
            }
            .connect-broadcast-footer { flex-direction: column; align-items: stretch; }
            .connect-send-btn { width: 100%; text-align: center; }

            .hero-number { font-size: 2.5rem; }
            .bottom-row { grid-template-columns: 1fr; }
            .spotify-hero { grid-template-columns: 1fr; }
            .yt-hero { grid-template-columns: 1fr; }
            .settings-panel { width: 100%; right: -100%; }
            .settings-panel.open { right: 0 !important; }


            /* Schedule tab: single column on mobile */
            #schedule {
                overflow-x: hidden !important;
                max-width: 100vw !important;
            }
            #scheduleGrid {
                display: flex !important;
                flex-direction: column !important;
                gap: 1rem !important;
                max-width: 100% !important;
            }
            #scheduleGrid > div {
                width: 100% !important;
                max-width: 100% !important;
            }
            /* Schedule stats bar: YEAR centered on top, ALL centered below */
            #scheduleStatsBar {
                flex-direction: column !important;
                gap: 0.75rem !important;
            }
            #scheduleStatsBar > div {
                flex-direction: column !important;
                align-items: center !important;
                flex: none !important;
                width: 100% !important;
                min-width: 0 !important;
            }
            #scheduleStatsBar .row-label {
                writing-mode: horizontal-tb !important;
                transform: none !important;
                font-size: 1rem;
                opacity: 0.35;
                padding: 0 0 0.25rem 0;
                text-align: center;
                min-width: auto !important;
                width: auto !important;
            }
            #scheduleStatsBar .merch-bar {
                width: 100%;
                justify-content: center;
                padding: 0.6rem 1rem;
            }
            /* Grid children: full width, no overflow */
            #schedule > div[style] > div {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
            }
            #addDateForm {
                padding: 1rem !important;
                margin-top: 1rem !important;
                max-width: 100% !important;
            }
            #addDateForm[style*="display:none"], #addDateForm[style*="display: none"] {
                display: none !important;
            }
            #eventTypeButtons,
            #showCategoryButtons {
                flex-wrap: wrap !important;
            }
            #showFinancials div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }
            #showFinancials {
                padding: 0.75rem !important;
            }
            #confirmedDatesList > div,
            #holdDatesList > div,
            #pastDatesList > div {
                width: 100% !important;
                max-width: 100% !important;
                overflow-x: hidden !important;
            }


            #contactModal .modal-box {
                width: 95vw !important;
                max-width: 95vw !important;
                padding: 1.25rem !important;
            }
            #contactModal .modal-box h2 {
                font-size: 1.1rem !important;
            }
            .contacts-friends-layout {
                grid-template-columns: 1fr !important;
                gap: 1.5rem !important;
            }
            .friends-col {
                border-top: 1px solid rgba(255,255,255,0.08);
                padding-top: 1.5rem;
            }
            .contacts-header {
                flex-direction: column !important;
                gap: 0.75rem !important;
                align-items: stretch !important;
            }
            .btn-add-contact {
                width: 100% !important;
                justify-content: center !important;
            }
            .contact-card {
                width: 100% !important;
            }
            .contact-details-inner {
                flex-direction: column !important;
                gap: 0.75rem !important;
                align-items: flex-start !important;
            }


            #assetsContent div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }
            #assets div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
            }
            #assets .btn-save {
                max-width: 100% !important;
            }
            #assets div[style*="display:flex"][style*="gap:0.4rem"] {
                flex-wrap: wrap !important;
            }
            #assets input[style*="max-width:300px"] {
                max-width: 100% !important;
            }



            .ideas-modal,
            .ideas-results-modal {
                width: 98vw !important;
                max-width: 98vw !important;
                max-height: 92vh !important;
            }
            .ideas-modal-tabs {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
                flex-wrap: nowrap !important;
            }
            .ideas-modal-tab {
                font-size: 0.65rem !important;
                padding: 0.6rem 0.6rem !important;
            }

            /* ===== MOBILE DASHBOARD: MERCH & SHOWS ===== */
            #merchOverviewBar {
                flex-direction: column !important;
                gap: 0.75rem !important;
            }
            #merchOverviewBar > div {
                flex-direction: column !important;
                align-items: center !important;
                flex: none !important;
            }
            #merchOverviewBar .row-label {
                writing-mode: horizontal-tb !important;
                transform: none !important;
                font-size: 1rem;
                opacity: 0.35;
                padding: 0 0 0.25rem 0;
                text-align: center;
            }
            #merchOverviewBar .merch-bar {
                width: 100%;
                justify-content: center;
                padding: 0.6rem 1rem;
            }

            /* ===== MOBILE DASHBOARD: COMBINED SOCIALS & STREAMS ===== */
            #streamsRow {
                display: none !important;
            }
            #socialsRow .row-label {
                font-size: 0.85rem;
            }
            #socialsRow .cards-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 0.6rem !important;
            }
            /* Bigger, more readable 2x2 cards */
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-stat-value {
                font-size: 1.5rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-stat-label {
                font-size: 0.55rem;
                margin-bottom: 0.1rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-title {
                font-size: 0.7rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-main {
                padding: 0.75rem 0.85rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-header {
                margin-bottom: 0.25rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-stat {
                margin-bottom: 0.25rem;
                display: block !important;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-stat + .card-stat {
                display: block !important;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-status {
                display: flex !important;
                font-size: 0.5rem;
                margin-top: 0.3rem;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .card-accent {
                width: 4px;
                height: 14px;
            }
            /* Show the more-stats toggle on mobile cards */
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .more-stats-dropdown {
                display: block !important;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .more-stats-content {
                display: none !important;
            }
            #socialsRow .cards-grid .card:not(.collapsed):not(.expanded) .more-stats-toggle {
                font-size: 0.55rem;
                padding: 0.15rem 0;
            }

            /* ===== MOBILE: MORE STATS POPUP/MODAL ===== */
            .more-stats-modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100vw;
                height: 100vh;
                background: rgba(0,0,0,0.7);
                z-index: 9998;
                backdrop-filter: blur(4px);
                -webkit-backdrop-filter: blur(4px);
            }
            .more-stats-modal {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                max-height: 70vh;
                background: #1a1a2e;
                border-top: 1px solid rgba(255,255,255,0.15);
                border-radius: 16px 16px 0 0;
                z-index: 9999;
                overflow-y: auto;
                padding: 1.25rem;
                animation: slideUpModal 0.25s ease-out;
            }
            @keyframes slideUpModal {
                from { transform: translateY(100%); }
                to { transform: translateY(0); }
            }
            .more-stats-modal-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 1rem;
                padding-bottom: 0.75rem;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            .more-stats-modal-title {
                font-family: 'Teko', sans-serif;
                font-size: 1.2rem;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                color: #fff;
            }
            .more-stats-modal-close {
                width: 32px;
                height: 32px;
                border-radius: 50%;
                background: rgba(255,255,255,0.1);
                border: none;
                color: #fff;
                font-size: 1.1rem;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .more-stats-modal-body {
                font-size: 0.85rem;
            }
            .more-stats-modal-body .card-stat {
                margin-bottom: 0.75rem;
            }
            .more-stats-modal-body .card-stat-label {
                font-size: 0.7rem;
                margin-bottom: 0.3rem;
            }
        }
