/* ===================
   MOBILE-FIRST CSS
   =================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: #0a0a0f;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    background-image: linear-gradient(145deg, #0a0a0f 0%, #13131f 40%, #1a1a2e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

@media (min-width: 480px) {
    .container { max-width: 420px; }
}

/* ===================
   SCREENS
   =================== */

.screen {
    display: none;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* Results screen specifically more compact */
#results-screen {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* ===================
   LOGIN SCREEN
   =================== */

#login-screen {
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
}

.login-content {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.login-logo {
    text-align: center;
}

.login-logo .logo-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-logo h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.login-tagline {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.login-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: white;
    border: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 56px;
}

.btn-google:active {
    transform: scale(0.98);
    background: #f0f0f0;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.login-divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 56px;
}

.btn-email:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.email-icon {
    font-size: 18px;
}

/* Email Auth Modal */
.email-auth-content {
    text-align: center;
}

.email-auth-content .form-group {
    margin-bottom: 12px;
}

.email-auth-content input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
}

.email-auth-content input:focus {
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.email-auth-content input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-error {
    color: #ff6b6b;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: left;
}

.auth-toggle {
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-toggle a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.btn-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 56px;
    text-align: center;
}

.btn-skip:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.login-bonus {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 4px;
}

.login-terms {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.login-terms a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.login-terms a:active {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #ff6b6b;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.auth-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.auth-message.error {
    display: block;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}


/* ===================
   HOME SCREEN
   =================== */

#home-screen {
    padding-top: 20px;
    gap: 0;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-logo-icon {
    font-size: 28px;
}

.home-logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-user {
    display: flex;
    flex-direction: column;
}

.home-greeting {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.home-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: none;
}

.home-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-icon:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Stats */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.stat-card:nth-child(1) .stat-number {
    color: #ff6b6b;
}

.stat-card:nth-child(2) .stat-number {
    color: #feca57;
}

.stat-card:nth-child(3) .stat-number {
    color: #2ecc71;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Card */
.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #feca57 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
}

.hero-card:active::before {
    left: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hero-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-arrow {
    font-size: 28px;
    color: white;
    font-weight: 300;
    opacity: 0.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, rgba(26,26,46,0.9) 0%, rgba(22,33,62,0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.feature-card:active {
    transform: scale(0.96);
    border-color: rgba(255, 107, 107, 0.4);
    background: linear-gradient(160deg, rgba(255,107,107,0.1) 0%, rgba(26,26,46,0.9) 100%);
}

.feature-card:nth-child(1) {
    border-color: rgba(52, 152, 219, 0.3);
}

.feature-card:nth-child(2) {
    border-color: rgba(254, 202, 87, 0.3);
}

.feature-card:nth-child(3) {
    border-color: rgba(155, 89, 182, 0.3);
}

.feature-card:nth-child(4) {
    border-color: rgba(46, 204, 113, 0.3);
}

.feature-icon {
    font-size: 36px;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.home-cta {
    margin-bottom: 20px;
}

.home-disclaimer {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* Special feature cards */
.feature-card.leaderboard-card {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
}

.feature-card.referral-card {
    border-color: rgba(74, 222, 128, 0.3);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
}

/* ===================
   LEADERBOARD SCREEN
   =================== */

.leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.lb-tab {
    flex: 1;
    min-width: fit-content;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lb-tab.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.my-rank-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.my-rank-header {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.my-rank-stats {
    display: flex;
    justify-content: space-around;
}

.my-rank-stat {
    text-align: center;
}

.my-rank-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
}

.my-rank-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.lb-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s;
}

.lb-item.top-3 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.lb-item.rank-1 {
    border-color: rgba(255, 215, 0, 0.5);
}

.lb-item.rank-2 {
    border-color: rgba(192, 192, 192, 0.4);
}

.lb-item.rank-3 {
    border-color: rgba(205, 127, 50, 0.4);
}

.lb-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lb-item.rank-1 .lb-rank {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.lb-item.rank-2 .lb-rank {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.lb-item.rank-3 .lb-rank {
    background: linear-gradient(135deg, #cd7f32, #b8702b);
    color: #fff;
}

.lb-info {
    flex: 1;
    min-width: 0;
}

.lb-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.lb-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
}

/* ===================
   REFERRALS SCREEN
   =================== */

.referral-hero {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
}

.referral-hero-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.referral-hero h2 {
    font-size: 24px;
    color: #4ade80;
    margin-bottom: 8px;
}

.referral-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.referral-how {
    margin-bottom: 20px;
}

.referral-how h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
}

.referral-step.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.referral-step.success .step-num {
    background: rgba(74, 222, 128, 0.2);
    font-size: 16px;
}

.step-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.referral-step.success .step-text {
    color: #4ade80;
    font-weight: 600;
}

.referral-code-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.referral-code-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-code-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.referral-code-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    color: #fff;
    font-size: 13px;
    font-family: monospace;
}

.copy-referral-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.copy-referral-btn:active {
    background: rgba(74, 222, 128, 0.3);
}

.share-referral-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.share-referral-btn:active {
    transform: scale(0.98);
}

.referral-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.referral-stats h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.referral-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.referral-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 8px;
}

.referral-stat.highlight {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.referral-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.referral-stat.highlight .referral-stat-value {
    color: #4ade80;
}

.referral-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* ===================
   SCREEN HEADER
   =================== */

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    min-height: 40px;
}

.screen-title {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 0;
    min-width: 60px;
    text-align: left;
    font-weight: 600;
}

.back-btn:active {
    color: #feca57;
}

.usage-badge {
    font-size: 12px;
    background: linear-gradient(135deg, rgba(255,107,107,0.2) 0%, rgba(254,202,87,0.15) 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 6px 12px;
    border-radius: 100px;
    font-weight: 600;
}

/* ===================
   GENERATE SCREEN
   =================== */

#generate-screen h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 15px;
}

.upload-zone {
    background: linear-gradient(160deg, rgba(255,107,107,0.08) 0%, rgba(254,202,87,0.04) 100%);
    border: 2px dashed rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:active {
    border-color: #ff6b6b;
    background: linear-gradient(160deg, rgba(255,107,107,0.15) 0%, rgba(254,202,87,0.08) 100%);
}

.upload-zone.has-image {
    padding: 0;
    border-style: solid;
    border-color: #ff6b6b;
    min-height: auto;
    background: linear-gradient(160deg, rgba(255,107,107,0.1) 0%, rgba(254,202,87,0.05) 100%);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(255,107,107,0.4));
}

.upload-zone p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.upload-hint {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.preview-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 18px;
}

/* Mode Selector */
.mode-selector {
    margin-bottom: 24px;
}

.mode-selector h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.modes-row-2 {
    margin-top: 10px;
}

.mode-option {
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: all 0.2s;
}

.mode-option input:checked + .mode-card {
    border-color: #ff6b6b;
    background: linear-gradient(160deg, rgba(255,107,107,0.2) 0%, rgba(254,202,87,0.1) 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.25);
}

.mode-card:active {
    transform: scale(0.96);
}

.mode-emoji {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.mode-name {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.mode-rate {
    font-size: 10px;
    font-weight: 600;
    color: #2ecc71;
    margin-top: 2px;
    min-height: 14px;
}

.mode-rate.best {
    color: #feca57;
}

/* ===================
   LOADING SCREEN
   =================== */

#loading-screen {
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(255,107,107,0.1) 0%, transparent 70%);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 72px;
    height: 72px;
    border: 4px solid rgba(255, 107, 107, 0.15);
    border-top-color: #ff6b6b;
    border-right-color: #feca57;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-screen h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 500;
}

/* ===================
   RESULTS SCREEN
   =================== */

.results-header {
    text-align: center;
    margin-bottom: 12px;
}

.results-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 2px;
}

.match-name {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.openers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.opener-card {
    background: linear-gradient(160deg, rgba(255,107,107,0.1) 0%, rgba(254,202,87,0.05) 100%);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.opener-card:nth-child(2) {
    background: linear-gradient(160deg, rgba(254,202,87,0.1) 0%, rgba(255,159,243,0.05) 100%);
    border-color: rgba(254, 202, 87, 0.25);
}

.opener-card:nth-child(3) {
    background: linear-gradient(160deg, rgba(255,159,243,0.1) 0%, rgba(155,89,182,0.05) 100%);
    border-color: rgba(255, 159, 243, 0.25);
}

.opener-card:nth-child(4) {
    background: linear-gradient(160deg, rgba(155,89,182,0.1) 0%, rgba(108,92,231,0.05) 100%);
    border-color: rgba(155, 89, 182, 0.25);
}

.opener-card:active {
    transform: scale(0.98);
}

.opener-card.copied {
    border-color: #2ecc71;
    background: linear-gradient(160deg, rgba(46,204,113,0.15) 0%, rgba(39,174,96,0.08) 100%);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.2);
}

.opener-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.opener-emoji {
    font-size: 16px;
}

.opener-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.opener-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

.opener-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.opener-actions button {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.copy-btn:active {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.share-btn {
    background: rgba(139, 92, 246, 0.15);
    color: rgba(139, 92, 246, 0.9);
}

.share-btn:hover {
    background: rgba(139, 92, 246, 0.25);
}

.share-btn:active {
    background: rgba(139, 92, 246, 0.4);
    transform: scale(0.98);
}

.worked-btn {
    background: rgba(255, 107, 107, 0.15);
    color: rgba(255, 107, 107, 0.8);
}

.worked-btn:hover {
    background: rgba(255, 107, 107, 0.25);
}

.worked-btn.selected {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.opener-card.copied .copy-btn {
    background: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/* Feedback */
.feedback-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.05) 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.feedback-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.feedback-icon {
    font-size: 20px;
}

.feedback-prompt {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.feedback-buttons {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.feedback-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feedback-btn:active {
    transform: scale(0.95);
}

.feedback-btn.selected {
    background: linear-gradient(135deg, rgba(255,107,107,0.3) 0%, rgba(254,202,87,0.2) 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.feedback-btn.success {
    border-color: rgba(46, 204, 113, 0.3);
}

.feedback-btn.fire {
    border-color: rgba(255, 107, 107, 0.3);
}

.feedback-btn.fail {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Predictions Section */
.predictions-section {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(52, 152, 219, 0.05) 100%);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.predictions-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.predictions-icon {
    font-size: 20px;
}

.predictions-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.predictions-vibe {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.predictions-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.prediction-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.prediction-card:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

.prediction-card.recommended {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.1);
}

.prediction-emoji {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.prediction-mode {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 2px;
}

.prediction-rate {
    font-size: 12px;
    font-weight: 700;
    color: #2ecc71;
}

.prediction-card.recommended .prediction-rate {
    color: #2ecc71;
}

.prediction-card.recommended .prediction-mode::after {
    content: " ⭐";
}

/* Follow-up Response Section */
.followup-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.followup-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.followup-icon {
    font-size: 20px;
}

.followup-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.followup-desc {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.followup-input-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.followup-input-wrap textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 14px;
    resize: none;
    font-family: inherit;
}

.followup-input-wrap textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.followup-input-wrap textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
}

.followup-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.followup-send-btn:hover {
    transform: scale(1.05);
}

.followup-send-btn:active {
    transform: scale(0.95);
}

.followup-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.followup-results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.followup-results.hidden {
    display: none;
}

.followup-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.followup-suggestions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.followup-suggestion {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.followup-suggestion:active {
    transform: scale(0.98);
    background: rgba(139, 92, 246, 0.2);
}

.followup-suggestion.copied {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.1);
}

.followup-style {
    font-size: 11px;
    color: rgba(139, 92, 246, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.followup-text {
    font-size: 14px;
    color: white;
    line-height: 1.4;
    margin: 0;
}

.followup-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px;
}

.results-actions {
    display: flex;
    gap: 10px;
}

.results-actions button {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
}

/* ===================
   HISTORY SCREEN
   =================== */

.history-list {
    flex: 1;
}

.history-item {
    background: linear-gradient(160deg, rgba(254,202,87,0.08) 0%, rgba(255,159,243,0.04) 100%);
    border: 1px solid rgba(254, 202, 87, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:active {
    background: linear-gradient(160deg, rgba(254,202,87,0.15) 0%, rgba(255,159,243,0.08) 100%);
    transform: scale(0.98);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-item-name {
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-badge {
    font-size: 12px;
    margin-left: 4px;
}

.history-item-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.history-item-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(255,107,107,0.3));
}

.empty-state p {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================
   MODALS
   =================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
}

@media (min-height: 600px) {
    .modal {
        align-items: center;
        padding: 24px;
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px 24px 0 0;
    padding: 32px 24px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-height: 600px) {
    .modal-content {
        border-radius: 24px;
        max-width: 380px;
        padding-bottom: 32px;
    }
}

.modal-app-name {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modal-app-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-content > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-size: 15px;
}

/* Checkboxes */
.age-checkbox,
.terms-checkbox,
.harassment-checkbox {
    text-align: left;
    margin-bottom: 14px;
}

.age-checkbox label,
.terms-checkbox label,
.harassment-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    padding: 6px 0;
}

.age-checkbox input,
.terms-checkbox input,
.harassment-checkbox input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: #ff6b6b;
}

.harassment-checkbox {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.25);
    border-radius: 12px;
    padding: 14px;
}

.terms-checkbox a {
    color: #ff6b6b;
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings Modal */
.settings-modal-content {
    position: relative;
    text-align: left;
    padding: 24px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.settings-modal-content * {
    font-family: inherit;
}

/* Profile Header */
.settings-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-email {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.username-row {
    display: flex;
    gap: 6px;
}

.username-row input {
    flex: 1;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 400;
    outline: none;
}

.username-row input:focus {
    border-color: #ff6b6b;
}

.btn-save-small {
    background: #ff6b6b;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* Settings Cards */
.settings-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.card-value {
    font-size: 15px;
    font-weight: 600;
    color: #2ecc71;
}

.card-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

/* Settings Fields */
.settings-field {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-row {
    display: flex;
    gap: 8px;
}

.field-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
}

.field-row input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
}

/* Pack Options */
.pack-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pack-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pack-option:active {
    transform: scale(0.97);
}

.pack-option.pack-best {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.4);
}

.pack-tag {
    position: absolute;
    top: -8px;
    background: #2ecc71;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.pack-amt {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.pack-best .pack-amt {
    color: #2ecc71;
}

.pack-cost {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.pack-label-small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Referral */
.referral-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.referral-row input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    outline: none;
}

.btn-copy-small {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-share {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(142, 68, 173, 0.2) 100%);
    border: 1px solid rgba(155, 89, 182, 0.4);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.referral-stats {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    text-align: center;
}

/* Subscription */
.btn-subscribe {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(254, 202, 87, 0.15) 100%);
    border: 2px solid rgba(255, 107, 107, 0.4);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:active {
    transform: scale(0.98);
    border-color: rgba(255, 107, 107, 0.6);
}

.sub-offer {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.sub-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.sub-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff6b6b;
    margin-top: 4px;
}

.sub-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.sub-plan {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-cancel-sub {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
}

.btn-cancel-sub:active {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff6b6b;
}

/* Delete Account Button */
.btn-delete-account {
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 59, 48, 0.4);
    border-radius: 12px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-account:active {
    background: rgba(255, 59, 48, 0.15);
    border-color: #ff3b30;
    transform: scale(0.98);
}

/* Toggle */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    transition: 0.2s;
}

.toggle-track::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .toggle-track {
    background: #ff6b6b;
}

.toggle input:checked + .toggle-track::before {
    transform: translateX(18px);
}

/* Admin Button in Settings */
.settings-admin-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-admin-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
}

/* Sign In/Out Buttons */
.btn-signout {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* Footer */
.settings-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
}

.settings-footer span {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.settings-footer .version {
    color: rgba(255, 255, 255, 0.3);
}

.btn-save:active {
    transform: scale(0.97);
}


/* ===================
   BUTTONS
   =================== */

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #feca57 100%);
    background-size: 200% 200%;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.4);
    min-height: 52px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
}

.btn-secondary {
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
}

.btn-secondary:active {
    background: linear-gradient(160deg, rgba(255,107,107,0.15) 0%, rgba(254,202,87,0.08) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-large {
    font-size: 18px;
    padding: 18px 40px;
    width: 100%;
}

.btn-credits {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-credits:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.5);
}

/* Credit Packs */
.credit-packs,
.settings-packs {
    margin-top: 20px;
}

.packs-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    text-align: center;
}

.pack-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pack-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    cursor: pointer;
    transition: all 0.2s;
}

.pack-btn:active {
    transform: scale(0.97);
}

.pack-impulse {
    border-color: rgba(255, 193, 7, 0.4);
    background: linear-gradient(160deg, rgba(255,193,7,0.1) 0%, rgba(255,152,0,0.05) 100%);
}

.pack-impulse:hover {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
}

.pack-value {
    border-color: rgba(46, 204, 113, 0.4);
    background: linear-gradient(160deg, rgba(46,204,113,0.15) 0%, rgba(39,174,96,0.1) 100%);
}

.pack-value:hover {
    border-color: rgba(46, 204, 113, 0.6);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.2);
}

.pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pack-credits {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.pack-value .pack-credits {
    color: #2ecc71;
}

.pack-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.pack-price {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.pack-price-small {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.pack-savings {
    font-size: 11px;
    color: #2ecc71;
    font-weight: 600;
    margin-top: 4px;
}

/* Analysis Screen */
.analysis-content {
    flex: 1;
    overflow-y: auto;
}

#analysis-screen .empty-state {
    background: linear-gradient(160deg, rgba(155,89,182,0.1) 0%, rgba(108,92,231,0.05) 100%);
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
}

#analysis-screen .empty-icon {
    filter: drop-shadow(0 4px 12px rgba(155,89,182,0.4));
}

#analysis-screen .empty-state p {
    background: linear-gradient(135deg, #9b59b6 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Insights Button */
.btn-insights {
    width: 100%;
    background: linear-gradient(160deg, rgba(155,89,182,0.15) 0%, rgba(108,92,231,0.1) 100%);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.btn-insights:active {
    transform: scale(0.98);
    background: linear-gradient(160deg, rgba(155,89,182,0.25) 0%, rgba(108,92,231,0.15) 100%);
}

/* Analysis Sections */
.analysis-section {
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.analysis-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.analysis-vibe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vibe-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vibe-value {
    font-size: 24px;
    font-weight: 800;
    text-transform: capitalize;
    background: linear-gradient(135deg, #9b59b6 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-list li:last-child {
    border-bottom: none;
}

.analysis-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #9b59b6;
}

.analysis-list.green li::before {
    content: '✓';
    color: #2ecc71;
}

.analysis-list.red li::before {
    content: '!';
    color: #ff6b6b;
}

.analysis-list.warning li::before {
    content: '⚠';
    color: #feca57;
}

/* ===================
   TOAST
   =================== */

.toast {
    position: fixed;
    bottom: calc(32px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    z-index: 3000;
    animation: toastIn 0.3s ease;
    box-shadow: 0 6px 24px rgba(46, 204, 113, 0.3);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ===================
   CONVERSATION COACH
   =================== */

.nav-convo {
    background: linear-gradient(160deg, rgba(52,152,219,0.15) 0%, rgba(155,89,182,0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.nav-convo .nav-icon {
    filter: drop-shadow(0 2px 6px rgba(52,152,219,0.4));
}

/* Goal selector */
.convo-goal {
    margin: 20px 0;
}

.convo-goal h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.goal-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.goal-options.three-goals {
    grid-template-columns: repeat(3, 1fr);
}

.goal-option {
    cursor: pointer;
}

.goal-option input {
    display: none;
}

.goal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s;
}

.goal-option input:checked + .goal-card {
    background: linear-gradient(160deg, rgba(52,152,219,0.2) 0%, rgba(155,89,182,0.15) 100%);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.goal-emoji {
    font-size: 24px;
}

.goal-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* Conversation Results */
.convo-results {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.convo-vibe-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(160deg, rgba(52,152,219,0.15) 0%, rgba(155,89,182,0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 16px;
    margin-bottom: 16px;
}

.convo-vibe-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.convo-vibe-value {
    font-size: 28px;
    font-weight: 800;
    text-transform: capitalize;
    background: linear-gradient(135deg, #3498db 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.convo-vibe-value.vibe-hot { background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%); -webkit-background-clip: text; background-clip: text; }
.convo-vibe-value.vibe-warm { background: linear-gradient(135deg, #f39c12 0%, #feca57 100%); -webkit-background-clip: text; background-clip: text; }
.convo-vibe-value.vibe-flirty { background: linear-gradient(135deg, #e91e63 0%, #ff6b6b 100%); -webkit-background-clip: text; background-clip: text; }
.convo-vibe-value.vibe-cold, .convo-vibe-value.vibe-awkward { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); -webkit-background-clip: text; background-clip: text; }

.convo-replying-to {
    background: linear-gradient(160deg, rgba(26,26,46,0.8) 0%, rgba(22,33,62,0.6) 100%);
    border-left: 3px solid #3498db;
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.replying-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 4px;
}

.replying-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

.convo-breakdown,
.convo-responses,
.convo-tips {
    background: linear-gradient(160deg, rgba(26,26,46,0.6) 0%, rgba(22,33,62,0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}

.convo-breakdown h3,
.convo-responses h3,
.convo-tips h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

#convo-summary {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

/* Suggestions */
.convo-suggestion {
    background: linear-gradient(160deg, rgba(52,152,219,0.1) 0%, rgba(155,89,182,0.05) 100%);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.convo-suggestion:active,
.convo-suggestion.copied {
    background: linear-gradient(160deg, rgba(46,204,113,0.2) 0%, rgba(39,174,96,0.1) 100%);
    border-color: rgba(46, 204, 113, 0.4);
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.suggestion-emoji {
    font-size: 16px;
}

.suggestion-style {
    font-size: 12px;
    font-weight: 700;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-text {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Tips */
#convo-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#convo-tips-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#convo-tips-list li:last-child {
    border-bottom: none;
}

#convo-tips-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

#convo-tips-list li.avoid-tip {
    color: #e74c3c;
    padding-left: 0;
}

#convo-tips-list li.avoid-tip::before {
    display: none;
}

.convo-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

.convo-actions button {
    flex: 1;
}

/* ===================
   NOTIFICATIONS TOGGLE
   =================== */


/* ===================
   ANALYTICS MODAL
   =================== */

.analytics-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.analytics-modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.analytics-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.analytics-empty {
    text-align: center;
    padding: 40px 20px;
}

.analytics-empty span:first-child {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.analytics-empty p {
    font-size: 16px;
    color: white;
    margin-bottom: 8px;
}

.analytics-empty .hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.analytics-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.analytics-stat.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(238, 90, 36, 0.1) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.analytics-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.analytics-stat .stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.analytics-section {
    margin-bottom: 20px;
}

.analytics-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.mode-performance {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-row {
    display: grid;
    grid-template-columns: 100px 1fr 45px 40px;
    align-items: center;
    gap: 10px;
}

.mode-row .mode-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.mode-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.mode-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #2ecc71 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.mode-row .mode-rate {
    font-size: 13px;
    font-weight: 600;
    color: #2ecc71;
    text-align: right;
}

.mode-row .mode-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

.analytics-tip {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.analytics-tip strong {
    color: #3498db;
}

/* ===================
   BREAKDOWN MODALS
   =================== */

.breakdown-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.breakdown-modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.breakdown-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.breakdown-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.highlight {
    padding: 12px 0;
}

.breakdown-row.sub {
    padding-left: 16px;
    opacity: 0.7;
}

.breakdown-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breakdown-value {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.breakdown-value.big {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breakdown-value.success {
    color: #2ecc71;
}

.breakdown-value.fail {
    color: #e74c3c;
}

.breakdown-value.muted {
    color: rgba(255, 255, 255, 0.4);
}

.breakdown-value.active {
    color: #2ecc71;
}

.breakdown-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.breakdown-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===================
   FEEDBACK PROMPT MODAL
   =================== */

.feedback-prompt-content {
    max-height: 85vh;
    overflow-y: auto;
}

.feedback-prompt-content h2 {
    text-align: center;
    margin-bottom: 8px;
}

.feedback-prompt-desc {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.feedback-prompt-item {
    background: linear-gradient(160deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.05) 100%);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.feedback-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.feedback-prompt-name {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feedback-prompt-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.feedback-prompt-preview {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.4;
}

.feedback-prompt-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.feedback-prompt-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.feedback-prompt-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.15);
}

.feedback-prompt-btn.success {
    border-color: rgba(46, 204, 113, 0.3);
}

.feedback-prompt-btn.fire {
    border-color: rgba(255, 107, 107, 0.3);
}

.feedback-prompt-btn.fail {
    border-color: rgba(255, 255, 255, 0.1);
}

.feedback-skip-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
}

.feedback-skip-btn:active {
    color: rgba(255, 255, 255, 0.6);
}

.feedback-prompt-progress {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.feedback-prompt-list .btn-secondary {
    margin-top: 8px;
}

/* Stat cards clickable */
.stat-card {
    cursor: pointer;
    transition: all 0.2s;
}

.stat-card:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.08);
}

/* ===================
   DISCLAIMER MODAL
   =================== */

.disclaimer-modal-content {
    text-align: center;
    padding: 28px 24px;
}

.disclaimer-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.disclaimer-modal-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ff6b6b;
}

.disclaimer-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.5;
}

.disclaimer-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
}

.disclaimer-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.disclaimer-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.btn-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    padding: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
}

.btn-text:active {
    color: rgba(255, 255, 255, 0.7);
}

/* ===================
   REDUCED MOTION
   =================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================
   ADMIN PANEL
   =================== */

.admin-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.admin-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.admin-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.admin-search {
    margin-bottom: 16px;
}

.admin-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
}

.admin-search input:focus {
    border-color: #ff6b6b;
}

.admin-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-bottom: 20px;
}

.admin-user-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-user-card:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.99);
}

.admin-user-info {
    flex: 1;
    min-width: 0;
}

.admin-user-email {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.admin-user-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.admin-user-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-user-stat {
    text-align: center;
}

.admin-user-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.admin-user-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.admin-user-stat.credits .admin-user-stat-value {
    color: #4ade80;
}

.admin-add-btn {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.2s;
}

.admin-add-btn:active {
    background: rgba(255, 107, 107, 0.4);
    transform: scale(0.95);
}

.admin-credits-form {
    text-align: left;
    margin: 16px 0;
}

.admin-credits-form .form-group {
    margin-bottom: 12px;
}

.admin-credits-form label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.admin-credits-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 16px;
    padding: 12px;
    border-radius: 10px;
    outline: none;
}

.admin-credits-form input:focus {
    border-color: #ff6b6b;
}

#admin-credits-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: -8px;
}

.admin-only {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.1);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
}

.admin-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.admin-tab:active {
    transform: scale(0.95);
}

.admin-content {
    display: block;
}

.admin-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.admin-section-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.admin-content.hidden {
    display: none;
}

/* Admin Dashboard Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.admin-dash-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.admin-dash-card.highlight {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.admin-dash-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.admin-dash-card.highlight .admin-dash-value {
    color: #4ade80;
}

.admin-dash-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-dash-sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

/* Expandable Dashboard Cards */
.admin-dash-card.expandable {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.admin-dash-card.expandable:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.admin-dash-card.expandable.active {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.admin-dash-card.highlight.expandable.active {
    background: rgba(74, 222, 128, 0.2);
}

.expand-icon {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.admin-dash-card.active .expand-icon {
    transform: rotate(180deg);
}

/* Dashboard Breakdown Panel */
.dash-breakdown-panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-breakdown-panel.hidden {
    display: none;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.breakdown-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.breakdown-close:hover {
    color: #fff;
}

.breakdown-content {
    padding: 16px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.breakdown-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.breakdown-value.positive {
    color: #4ade80;
}

.breakdown-value.negative {
    color: #f87171;
}

.breakdown-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

/* Admin Activity */
.admin-activity-list,
.admin-payments-list,
.admin-subs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.admin-activity-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-activity-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.admin-activity-info {
    flex: 1;
    min-width: 0;
}

.admin-activity-main {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-activity-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-activity-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Admin Payment Item */
.admin-payment-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-payment-info {
    flex: 1;
}

.admin-payment-email {
    font-size: 14px;
    color: #fff;
}

.admin-payment-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-payment-amount {
    font-size: 18px;
    font-weight: 600;
    color: #4ade80;
}

/* Admin Subscription Item */
.admin-sub-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sub-item.active {
    border-left: 3px solid #4ade80;
}

.admin-sub-item.cancelled {
    border-left: 3px solid #ff6b6b;
    opacity: 0.7;
}

.admin-sub-info {
    flex: 1;
}

.admin-sub-email {
    font-size: 14px;
    color: #fff;
}

.admin-sub-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-sub-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-sub-status.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.admin-sub-status.cancelled {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.admin-cancel-btn {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
}

/* Admin User Modal */
.admin-user-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.admin-user-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.admin-user-header h2 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-all;
}

.admin-user-header p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.admin-user-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.admin-user-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.admin-user-stat-card .value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.admin-user-stat-card .label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.admin-user-section {
    margin-bottom: 16px;
}

.admin-user-section h3 {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.admin-user-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.admin-user-actions .btn-add {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.admin-user-actions .btn-remove {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.admin-user-actions .btn-delete {
    background: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

.admin-mini-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.admin-mini-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
}

.admin-mini-item:last-child {
    border-bottom: none;
}

/* ===================
   USER PROFILE MODAL (Admin)
   =================== */

.admin-user-modal-content {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.profile-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.profile-header-info {
    flex: 1;
}

.profile-email {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.profile-provider {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

.profile-joined {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.profile-stat.highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(34, 197, 94, 0.15));
}

.profile-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.profile-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.profile-info-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.info-value.small {
    font-size: 10px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.6);
}

.profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.profile-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.profile-btn.add {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.profile-btn.remove {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.profile-btn.delete {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
}

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.profile-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.profile-tab.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.profile-tab-content {
    max-height: 300px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 30px;
    font-size: 13px;
}

/* Generation Cards */
.generations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.generation-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.generation-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.generation-card.has-winner {
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}

.gen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gen-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.gen-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.winner-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 600;
}

.gen-mode {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.gen-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.gen-expand {
    font-size: 10px;
    color: rgba(255, 107, 107, 0.7);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gen-openers {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gen-opener {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
}

.gen-opener.winner {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.gen-opener.winner .opener-num {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    font-size: 14px;
}

.opener-num {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.opener-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.gen-feedback {
    margin-top: 10px;
    padding: 10px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: #4ade80;
}

/* Payment Cards */
.payments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.payment-card .payment-amount {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    min-width: 60px;
}

.payment-card .payment-info {
    flex: 1;
}

.payment-card .payment-credits {
    display: block;
    font-size: 12px;
    color: #fff;
}

.payment-card .payment-type {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.payment-card .payment-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* Legacy styles kept for compatibility */
.user-detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.user-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
}

.user-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.user-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-detail-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.user-detail-info p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.user-detail-info p:last-child {
    margin-bottom: 0;
}

.user-detail-info strong {
    color: rgba(255, 255, 255, 0.5);
}

.user-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-detail-actions button {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-danger {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
}

.user-detail-history {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-detail-history h3 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.user-gen-item {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Activity Item Styles */
.activity-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.activity-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-email {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.activity-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.activity-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.admin-activity-item.payment .activity-icon {
    background: rgba(74, 222, 128, 0.1);
}

/* Payment Item Styles */
.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-email {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.payment-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.payment-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-amount {
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
}

.payment-credits {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.payment-type {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

/* Subscription Item Styles */
.sub-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sub-email {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.sub-started {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.sub-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.sub-status.active {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.sub-status.inactive,
.sub-status.cancelled,
.sub-status.canceled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.sub-usage {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.sub-cancel-btn {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ===================
   ADMIN MANAGEMENT
   =================== */

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-section-header h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.admin-add-new-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-admins-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.admin-admin-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-admin-email {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.admin-admin-role {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-role-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}

.admin-role-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-remove-btn {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.admin-badge {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.admin-badge.owner {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Admin Logs */
.admin-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-log-item {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.log-action {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
}

.log-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.log-admin {
    font-size: 11px;
    color: #ff6b6b;
}

.log-target {
    font-size: 11px;
    color: #4ade80;
}

.log-extra {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

.log-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* Add Admin Modal */
.admin-form {
    margin: 16px 0;
}

.admin-form .form-group {
    margin-bottom: 16px;
}

.admin-form label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
}

.admin-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.admin-form select option {
    background: #1a1a2e;
    color: #fff;
}

.form-hint {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.role-descriptions {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
}

.role-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: none;
}

.role-desc strong {
    color: #fff;
}
