/* ========================================
   Tangazo AI - Premium Design System
   ======================================== */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-hover: #162032;
    --secondary: #c9a227;
    --secondary-light: #e5b82a;
    --secondary-hover: #a68819;
    --secondary-glow: rgba(201, 162, 39, 0.15);
    --neutral: #ffffff;
    --neutral-light: #f8fafc;
    --neutral-dark: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.2);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 60px;
    --bottom-nav-height: 72px;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ========================================
   Top Navigation Bar
   ======================================== */
.top-nav {
    background: var(--primary);
    color: var(--text-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.top-nav .brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-gold);
}

.top-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav .credits-badge {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: var(--secondary-light);
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.top-nav .credits-badge:hover {
    background: rgba(201, 162, 39, 0.18);
    color: var(--secondary-light);
    transform: translateY(-1px);
}

.top-nav .nav-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.top-nav .nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    transform: translateY(-1px);
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--neutral);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 56px;
    position: relative;
    letter-spacing: 0.02em;
}

.bottom-nav .nav-item i {
    font-size: 21px;
    transition: var(--transition);
}

.bottom-nav .nav-item.active {
    color: var(--secondary);
}

.bottom-nav .nav-item.active i {
    color: var(--secondary);
    transform: scale(1.05);
}

.bottom-nav .nav-item:hover {
    color: var(--text-primary);
}

.bottom-nav .nav-item-center {
    position: relative;
    top: -16px;
}

.bottom-nav .nav-item-center .center-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
    transition: var(--transition);
}

.bottom-nav .nav-item-center:hover .center-btn {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.4);
}

/* ========================================
   Main Content Area
   ======================================== */
.main-content {
    margin-top: calc(var(--nav-height) + 16px);
    padding: 0 20px 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    margin-bottom: 24px;
    padding-top: 4px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.card-body {
    padding: 22px;
}

.feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 10px;
}

.feature-card .card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
}

.feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-card .feature-icon.ads {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.05));
    color: var(--secondary);
}

.feature-card .feature-icon.announce {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.05));
    color: var(--info);
}

.feature-card .feature-icon.translate {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success);
}

.feature-card .feature-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.feature-card .feature-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.feature-card .feature-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.feature-card:hover .feature-arrow {
    color: var(--secondary);
    transform: translateX(2px);
}

/* ========================================
   Stats Cards
   ======================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ========================================
   Custom Forms
   ======================================== */
.form-floating-custom {
    margin-bottom: 18px;
}

.form-control-custom {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--neutral);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    letter-spacing: -0.01em;
}

.form-control-custom:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-glow);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-label-custom {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 7px;
    letter-spacing: -0.01em;
}

.form-select-custom {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--neutral);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select-custom:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px var(--secondary-glow);
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 100px;
}

.input-group-custom {
    position: relative;
}

.input-group-custom .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    z-index: 2;
}

.input-group-custom .form-control-custom {
    padding-left: 44px;
}

.input-group-custom .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
    padding: 4px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ========================================
   Voice Character Selector
   ======================================== */
.voice-selector {
    margin-bottom: 18px;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.voice-card {
    position: relative;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--neutral);
    text-align: center;
}

.voice-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 12px var(--secondary-glow);
}

.voice-card.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.04), rgba(201, 162, 39, 0.01));
    box-shadow: 0 0 0 3px var(--secondary-glow);
}

.voice-card .voice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral);
}

.voice-card .voice-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.voice-card .voice-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.voice-card .voice-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--neutral);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.voice-card.active .voice-check {
    display: flex;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary-custom {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--neutral);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--neutral);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-primary-custom:disabled,
.btn-primary-custom.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary-custom {
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--neutral);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-secondary-custom:hover {
    background: var(--neutral-light);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-sm-custom {
    padding: 8px 16px;
    font-size: 13px;
    width: auto;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--neutral);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--neutral-light);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: var(--primary);
    background-image: radial-gradient(ellipse at top, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
}

.auth-container {
    width: 100%;
    max-width: 380px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 18px;
    color: var(--neutral);
    box-shadow: var(--shadow-gold);
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.auth-card {
    background: var(--neutral);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-lg);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.auth-footer a {
    color: var(--secondary-light);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Audio Player
   ======================================== */
.audio-player {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.audio-player .player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-player .play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--neutral);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.audio-player .play-btn:hover {
    transform: scale(1.06);
}

.audio-player .player-info {
    flex: 1;
    min-width: 0;
}

.audio-player .player-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.audio-player .progress-bar-custom {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.audio-player .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-player .player-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.audio-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.audio-actions .btn-audio {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.audio-actions .btn-audio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* ========================================
   Script Output
   ======================================== */
.script-output {
    background: var(--neutral-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 16px;
}

.script-output h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.script-output .script-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* ========================================
   Processing / Loading States
   ======================================== */
.processing-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.processing-overlay.active {
    display: flex;
}

.spinner-custom {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(201, 162, 39, 0.15);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
}

.processing-subtext {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--neutral) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

/* ========================================
   History Cards (Mobile Stacked)
   ======================================== */
.history-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.history-card:hover {
    box-shadow: var(--shadow);
}

.history-card .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.history-card .history-type {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-card .type-ad {
    background: rgba(201, 162, 39, 0.08);
    color: var(--secondary-hover);
}

.history-card .type-announcement {
    background: rgba(6, 182, 212, 0.08);
    color: var(--info);
}

.history-card .type-translator {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.history-card .history-date {
    font-size: 12px;
    color: var(--text-muted);
}

.history-card .history-preview {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-card .history-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   Credit Packages
   ======================================== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.package-card {
    background: var(--card-bg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.package-card:hover,
.package-card.selected {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-glow);
}

.package-card.popular::before {
    content: 'Maarufu';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-hover));
    color: var(--neutral);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 10px;
    letter-spacing: 0.03em;
}

.package-card .pkg-credits {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.package-card .pkg-label {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 14px;
    font-weight: 500;
}

.package-card .pkg-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-hover);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========================================
   Tone Pills
   ======================================== */
.tone-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tone-pill {
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    background: var(--neutral);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tone-pill:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.tone-pill.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--neutral);
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

/* ========================================
   Section Title
   ======================================== */
.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 56px 24px;
}

.empty-state i {
    font-size: 44px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Admin Specific
   ======================================== */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--primary);
    color: var(--text-light);
    z-index: 1001;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar .sidebar-nav {
    padding: 12px 0;
}

.admin-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar .sidebar-link.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar .sidebar-link.active {
    border-right: 3px solid var(--secondary);
}

.admin-sidebar .sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.admin-main {
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

.admin-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.admin-stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin-stat-card .stat-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ========================================
   Utilities
   ======================================== */
.text-gold { color: var(--secondary) !important; }
.bg-gold { background-color: var(--secondary) !important; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.divider {
    height: 1px;
    background: var(--border-light);
    margin: 24px 0;
}

.badge-credits {
    background: rgba(201, 162, 39, 0.08);
    color: var(--secondary-hover);
    padding: 5px 12px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================
   Landing Page
   ======================================== */
.landing-page {
    background: var(--primary);
    min-height: 100vh;
    padding-bottom: 0;
}

.landing-hero {
    padding: 72px 24px 48px;
    text-align: center;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 36px;
}

.landing-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.landing-features {
    background: var(--neutral);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 44px 24px;
    margin-top: 40px;
}

.landing-features h2 {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.landing-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.landing-feature-card:last-child {
    border-bottom: none;
}

.landing-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.landing-feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.landing-feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
    }
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}
