/* ===================
   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;
}

.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-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);
}

/* ===================
   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);
}

/* ===================
   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);
    padding-right: 60px;
}

.opener-card::after {
    content: 'Copy';
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.opener-card.copied::after {
    content: 'Copied!';
    color: #2ecc71;
    font-weight: 600;
    background: rgba(46, 204, 113, 0.15);
}

/* Feedback */
.feedback-section {
    margin-bottom: 12px;
    text-align: center;
}

.feedback-prompt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.feedback-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.feedback-btn {
    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;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 36px;
}

.feedback-btn:active {
    transform: scale(0.95);
}

.feedback-btn.selected {
    background: linear-gradient(135deg, rgba(255,107,107,0.25) 0%, rgba(254,202,87,0.15) 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.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;
}

/* 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;
}

/* 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;
}

/* 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);
}

/* 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-starter {
    border-color: rgba(255, 255, 255, 0.15);
}

.pack-starter:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(160deg, rgba(46,46,76,0.8) 0%, rgba(32,43,72,0.6) 100%);
}

.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: 18px;
    font-weight: 700;
    color: white;
    margin-top: 8px;
}

.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;
}

/* ===================
   REDUCED MOTION
   =================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
