@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1f1f1f;
    --bg-input: #2a2a2a;
    --bg-hover: #333333;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --text-inverse: #000000;
    --accent: #f5f5f5;
    --border: #333333;
    --border-focus: #555555;
    --border-error: #ff4444;
    --border-success: #2d1e15;
    --success: #de6c3c;
    --error: #ff4444;
    --warning: #ffaa00;
    --info: #4488ff;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --font-size-xs: clamp(0.7rem, 2vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 2.5vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 3vw, 1rem);
    --font-size-lg: clamp(1rem, 3.5vw, 1.125rem);
    --font-size-xl: clamp(1.2rem, 4vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
    --font-size-3xl: clamp(2rem, 6vw, 3rem);
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 5vw, 3rem);
    --space-2xl: clamp(3rem, 6vw, 4rem);
    --radius: 8px;
    --radius-sm: 4px;
    --transition: 0.2s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --touch-target: 44px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: #e8e4dc;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;

}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
    padding: var(--space-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
}

.container.prediction-page {
    padding-top: 80px;
}

.nav {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: none;
    transition: transform 0.25s ease;
}

.nav.active {
    display: block;
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0px auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xs);
}

.nav-brand {
    font-weight: 300;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: u;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.back-link.logout-mobile {
    display: none !important;
}
/* ADD TO styles-app.css after line 125 */

/* Desktop: hide mobile logout, show desktop logout */
.logout-btn-mobile {
    display: none !important;

}

.logout-btn-desktop {
    display: inline-flex;
}

.nav-logout-container {
    display: flex;
}

/* Mobile: show mobile logout in grid, hide desktop logout */
@media (max-width: 480px) {
    .logout-btn-mobile {
        display: inline-flex !important;
        align-items: center;
        gap: var(--space-xs);
    
    }
    
    .logout-btn-desktop {
        display: none;
    }
    
    .nav-logout-container {
        display: none;
    }
}
.back-nav {
    display: flex;
}

.nav-logout {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: black;
    text-transform: uppercase;
}

.nav-logout:hover {
    color: var(--error);
    background: var(--bg-hover);
    border-color: var(--accent);
}

button.nav-dashboard {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    background: black;
    text-transform: uppercase;
}

button.nav-dashboard .btn:hover {
    color: var(--info);
    background: var(--bg-hover);
    border-color: var(--accent);
}

.hero {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.hero-content {
    opacity: 1;
}

.hero-title {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg) 0;
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.page-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

 
.back-link {
        display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    background: var(--bg-secondary);
    border: 1px solid #b3b3b357;
    border-radius: var(--radius);
    padding: 13px;
    cursor: pointer;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--accent);
}

.back-link i {
    font-size: 0.9em;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0px auto;
}

.card.active {
    display: block;
}

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

.prediction-card {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .prediction-card {
        max-width: 1000px;
    }
    
    .results-card {
        max-width: 1200px;
    }
    
    .tab-content {
        padding: var(--space-xl) var(--space-xl);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .prediction-card {
        max-width: 900px;
    }
    
    .results-card {
        max-width: 800px;
    }
}

.card-header {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    text-align: center;
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: 400;
    font-family: Lato;
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 400;
    margin-bottom: 20px;

}

.card-body {
    padding: 0 var(--space-xl) var(--space-xl);
}

.auth-card {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

.auth-card.active {
    opacity: 1;
    transform: translateY(10px);
    background: var(--text-inverse);
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 30px;
}

.auth-card .card-header {
    color: var(--bg-primary);
    font-size: var(--font-size-lg);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.auth-card .card-title {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    margin: 0px 0px 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.auth-card .card-subtitle {
    font-size: var(--font-size-base);
    margin: 0px;
}

.auth-card .card-body {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hover State */
.tab-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-success);
    color: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(222, 108, 60, 0.2);
}

/* Active State - Neon Green Theme */
.tab-btn.active {
    background: var(--bg-secondary);
    border: 1px solid var(--border-success);
    color: var(--success);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(222, 108, 60, 0.3),
inset 0 0 10px rgba(222, 108, 60, 0.1);
    transform: translateY(-2px);

}

/* Active State Glow Effect */
.tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(222, 108, 60, 0.1),
        transparent
    );
    border-radius: var(--radius);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
} 
.tab-container {
    margin: var(--space-lg) 0;
}

.tab-headers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);  /* Force 6 columns */
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding: 0;
    border: none;
}

.tab-headers.tab-headers-2-cols {
    grid-template-columns: repeat(2, 1fr) !important;
}
.tab-content {
    display: none;
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-height: 300px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.tab-content h5 {
    color: var(--accent);
    margin: var(--space-lg) 0 var(--space-sm) 0;
    font-weight: 400;
    font-size: var(--font-size-lg);
}

.tab-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

#g_id_onload {
    margin-bottom: 1rem;
}

.g_id_signin {
    margin: 0px auto;
    display: flex !important;
    justify-content: center !important;
}

.g_id_signin > div {
    margin: 0px auto !important;
}

.auth-card .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: rgb(102, 102, 102);
    font-size: 0.9rem;
}

.auth-card .loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(102, 126, 234) rgb(243, 243, 243) rgb(243, 243, 243);
    border-image: none;
    border-radius: 50%;
    animation: 1s linear infinite spin;
    margin-right: 0.5rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);

}

.form-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
    min-height: var(--touch-target);
    text-transform: capitalize;
}

#brand-business-context.form-input {
    text-transform: none;
}
.form-input:focus {
    outline: currentcolor;
    border-color: var(--border-focus);
    background: var(--bg-secondary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-dashboard {
    width: 50%;
    /* padding: var(--space-md); */
    background: var(--bg-input);
    /* border: 1px solid #ffffff; */
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
    min-height: var(--touch-target);
    margin: 10px;
    text-align: center;
    text-transform: capitalize;
}

.form-input-dashboard:focus {
    outline: currentcolor;
    border-color: var(--border-focus);
    background: var(--bg-secondary);
}

.form-input-dashboard::placeholder {
    color: var(--text-muted);
}

select#analysis-profiles-dropdown,
select#prediction-profiles-dropdown,
select#compatibility-profiles-dropdown {
    appearance: none;
    -webkit-appearance: none;
    font-size: 17px;
    line-height: 1.4;
    padding: var(--space-md);
}

.form-input.error, .validation-error {
    border-color: var(--border-error);
}

.form-input.success, .validation-success {
    border-color: var(--border-success);
}

.form-feedback, .validation-feedback {
    font-size: var(--font-size-xs);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-feedback.error, .validation-feedback.error {
    color: var(--error);
}

.form-feedback.success, .validation-feedback.success {
    color: var(--success);
}

.validation-icon {
    font-size: var(--font-size-sm);
}

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-sm);
}

.feedback-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 16px;
    resize: vertical;
    height: 80px;
    margin-bottom: var(--space-md);
}

.feedback-textarea:focus {
    outline: currentcolor;
    border-color: var(--border-focus);
}

.feedback-textarea::placeholder {
    color: var(--text-muted);
}

.requirement-notice {
    margin-bottom: 15px;
}

.requirement-alert {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #f0ad4e;
    border-radius: 8px;
    color: #856404;
}

.requirement-alert i {
    margin-right: 10px;
    font-size: 16px;
    color: #f0ad4e;
}

.requirement-text strong {
    display: block;
    margin-bottom: 4px;
}

.missing-items {
    font-size: 14px;
    color: #d58512;
}

.field-required {
    border: 2px solid #f0ad4e !important;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(240, 173, 78, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(240, 173, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 173, 78, 0); }
}
.monthly-fields {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.month-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    min-height: var(--touch-target);
}

.month-checkbox:hover {
    background: var(--bg-hover);
    border-color: var(--border-focus);
    color: var(--text-primary);
}

.month-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--accent);
}

.month-checkbox input[type="checkbox"]:checked + .month-checkbox,
.month-checkbox:has(input[type="checkbox"]:checked) {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--text-primary);
}

.month-controls {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}

.btn-small {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    min-height: auto;
    width: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-small.btn-success {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-small.btn-success:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

.btn-small.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-small.btn-primary {
    border-color: var(--accent);
    color: var(--accent);
    background: none !important;

}

.btn-small.btn-primary:hover {
    background: var(--accent);
    color: var(--text-inverse);
}

.selected-months {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.selected-months span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

#selected-months-display {
    color: var(--accent);
    font-weight: 400;
}

.btn {
    width: 100%;
    padding: var(--space-md);
    border: medium;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: var(--touch-target);
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);

}

.btn-primary:hover:not(:disabled) {
    background: var(--text-primary);
}

.btn-secondary {
    background: none;
    color: var(--text-secondary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.btn-outline {
    background: none;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--text-primary);
    color: var(--text-inverse);
}

.btn-analysis {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-lg);
    margin-top: var(--space-sm);
}

.btn-prediction {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
    font-weight: 500;
}

.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-width: 2px;
    border-style: solid;
    border-color: currentcolor transparent transparent;
    border-image: none;
    border-radius: 50%;
    animation: 1s linear infinite spin;
}

.btn-loading .btn-text, .btn-loading .btn-icon {
    opacity: 0;
}

.link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition);
}

.link:hover {
    color: var(--text-primary);
}

.forgot-password-link {
    text-align: center;
    margin-top: var(--space-md);
}

.form-footer {
    text-align: center;
    margin-top: var(--space-md);
}

.results-content {
    padding: var(--space-xl);
    line-height: 1.8;
    color: var(--text-primary);
    width: 100%;
    margin: 0px auto;
    max-width: 1000px !important;
}

.results-content h1, .results-content h2, .results-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 400;
    text-transform: capitalize;

}

.results-content p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.results-content strong {
    color: var(--text-primary);
}

.results-actions {
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.results-actions .btn {
    width: auto;
    min-width: 120px;
}

.results-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-wrap: auto;
}

.results-title {
    margin: 0px;
    color: var(--text-primary);
    font-weight: 400;
    font-size: var(--font-size-xl);
}

.results-subtitle {
    margin: var(--space-xs) 0 0 0;
    opacity: 0.9;
    color: var(--text-secondary);
}

.results-meta {
    margin: var(--space-xs) 0 0 0;
    font-size: var(--font-size-xs);
    opacity: 0.8;
    color: var(--text-muted);
    text-transform: lowercase !important;

}

.content-wrapper {
    line-height: 1.8;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.content-wrapper h1, .content-wrapper h2, .content-wrapper h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.content-wrapper p {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.content-wrapper strong {
    color: var(--text-primary);
    font-weight: 500;
}

.content-wrapper em {
    color: var(--text-primary);
    font-style: italic;
}

.results-content .content-wrapper {
    max-width: none;
}

.results-content .monthly-guidance {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.results-content .yearly-guidance {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.results-content .integration-strategy {
    background: rgba(245, 245, 245, 0.05);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.analysis-info {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    /* padding: var(--space-md); */
    /* margin: var(--space-md) 0; */
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: nowrap;
    /* gap: var(--space-sm); */
    /* justify-content: flex-start; */
    flex-direction: row;
    text-wrap: wrap;
}

.analysis-subject, .analysis-birthdate, .analysis-gender {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    flex: 1 1 0%;
    /* min-width: 80px; */
    text-wrap: auto;
}

.analysis-subject strong, .analysis-birthdate strong, .analysis-gender strong {
    color: var(--text-primary);
    margin-right: var(--space-xs);
}

.feedback-analysis-info {
    background: var(--bg-input);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    border: 1px solid var(--border);
}

.feedback-analysis-info p {
    margin: var(--space-xs) 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.feedback-analysis-info strong {
    color: var(--text-primary);
}

.analysis-counter {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    text-align: center;
}

.analysis-counter.warning, .analysis-counter-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: rgb(217, 119, 6);
}

.analysis-counter.error, .analysis-counter-error {
    background: var(--bg-secondary);
    border: 1px solid var(--error);
    color: var(--error);
}

.analysis-counter-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(5, 150, 105);
}

.counter-main {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.counter-reset {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.counter-text {
    font-size: 11px;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

.counter-icon {
    margin-right: var(--space-xs);
}

.message-content {
    text-align: center;
    padding: var(--space-xl);
}

.message-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    text-align: center;
}

.message-note {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0px;
}

.message-icons {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.message-icons.success {
    color: var(--success);
}

.message-icons.error {
    color: var(--error);
}

.message-icons.info {
    color: var(--info);
}

.message-icons.warning {
    color: var(--warning);
}

.message-title {
    margin: 0 0 var(--space-md) 0;
    font-weight: 400;
}

.message-title.success {
    color: var(--success);
}

.message-title.error {
    color: var(--error);
}

.message-title.info {
    color: var(--info);
}

.message-title.warning {
    color: var(--warning);
}

.message-text {
    margin: 0px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.limit-message {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-primary);
}

.limit-message h3 {
    color: var(--error);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.limit-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.limit-message .btn {
    margin-top: var(--space-md);
}

.error-message {
    background: var(--bg-secondary);
    border: 1px solid var(--error);
    border-radius: var(--radius);
    padding: var(--space-xl);
    text-align: center;
    color: var(--error);
}

.error-message h3 {
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.daily-limit-message {
    text-align: center;
    padding: 30px 20px;
}

.daily-limit-header {
    margin-bottom: 25px;
}

.daily-limit-icon {
    font-size: 48px;
    color: rgb(99, 102, 241);
    margin-bottom: 15px;
}

.daily-limit-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.daily-limit-subtitle {
    font-size: 16px;
    color: rgb(107, 114, 128);
    margin-bottom: 15px;
}

.reset-countdown {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(99, 102, 241);
    font-weight: 500;
}

.reset-timer {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(37, 99, 235);
    font-size: 14px;
}

.daily-limit-info {
    background: rgb(248, 250, 252);
    border: 1px solid rgb(226, 232, 240);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0px;
    text-align: left;
}

.daily-limit-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgb(229, 231, 235);
}

.limit-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(99, 102, 241);
    flex-shrink: 0;
}

.limit-feature-content {
    flex: 1 1 0%;
}

.limit-feature-content strong {
    display: block;
    color: rgb(31, 41, 55);
    margin-bottom: 4px;
}

.limit-feature-content span {
    color: rgb(107, 114, 128);
    font-size: 14px;
}

.loading-state {
    text-align: center;
    padding: var(--space-2xl);
}

.loading-spinner {
    margin-bottom: var(--space-lg);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: 1s linear infinite spin;
    margin: 0px auto;
}

.loading-title {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.loading-text {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.loading-state .loading-text {
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.feedback-section {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius);
    text-align: center;
}

.feedback-title {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.feedback-subtitle {
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.star-rating span {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating span:hover, .star-rating span.active {
    color: var(--warning);
}

.rating-text {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
}

.feedback-success {
    color: var(--success);
    padding: var(--space-lg);
}

.feedback-success-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.feedback-success-title {
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.feedback-success-text {
    color: var(--text-secondary);
}

.toast-container {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: wheat;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    min-height: var(--touch-target);
}

.toast.success, .toast-success {
    border-left: 4px solid var(--success);
}

.toast.error, .toast-error {
    border-left: 4px solid var(--error);
}

.toast.warning, .toast-warning {
    border-left: 4px solid var(--warning);
}

.toast.info, .toast-info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: var(--font-size-lg);
}

.toast.success .toast-icon, .toast-icon-success {
    color: var(--success);
}

.toast.error .toast-icon, .toast-icon-error {
    color: var(--error);
}

.toast.warning .toast-icon, .toast-icon-warning {
    color: var(--warning);
}

.toast.info .toast-icon, .toast-icon-info {
    color: var(--info);
}

.toast-content, .toast-content-wrapper {
    flex: 1 1 0%;
}

.toast-title {
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    font-size: var(--font-size-xl);
}

.toast-message {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.4;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.p-sm {
    padding: var(--space-sm);
}

.p-md {
    padding: var(--space-md);
}

.p-lg {
    padding: var(--space-lg);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-70 {
    opacity: 0.7;
}

.opacity-90 {
    opacity: 0.9;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes fadeInUp {
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.nuclear-warning {
    background: var(--warning);
    color: var(--text-inverse);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
    border-left: 4px solid var(--error);
}

.service-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.service-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--accent);
}

.service-btn::before {
    content: "";
    position: absolute;
    top: 0px;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.service-btn:hover::before {
    left: 100%;
}

.service-btn i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.service-btn span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

.clear-form-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);

}

.clear-form-btn:hover {
    background: #666666;
    transform: translateY(-1px);
}

.card {
    display: none !important;
}

.card.active {
    display: block !important;
}

#auth-card,
#analysis-card, 
#prediction-card,
#results-card,
#forgot-password-card,
#reset-password-card,
#message-card {
    display: none;
}

#auth-card.active,
#analysis-card.active,
#prediction-card.active, 
#results-card.active,
#forgot-password-card.active,
#reset-password-card.active,
#message-card.active {
    display: block;
}

.dashboard-card {
    margin: 0px auto;
    background: var(--bg-card);
    max-width: 1200px !important;
}

.dashboard-card .card-body {
    padding: var(--space-xl);
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);

}

.stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-xs);
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-grid {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
}

#service-selection-card .card-body {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

#service-selection-card .service-grid {
    display: grid;
    gap: var(--space-lg);
    overflow: visible;
    padding-bottom: 0;
}

#service-selection-card #personal-services {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
}

#service-selection-card #corporate-services {
    grid-template-columns: repeat(2, minmax(240px, 300px));
    justify-content: center;
}

#service-selection-card .service-card {
    min-width: 0;
    flex: initial;
}

/* Consistent widths for service detail pages */
.analysis-card,
.prediction-card,
#compatibility-card {
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .analysis-card,
    .prediction-card,
    #compatibility-card {
        max-width: 900px;
    }
}

.form-actions {
      display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;

}

.service-card {
    cursor: pointer;
    flex: 1 1 300px;
    min-width: 280px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.service-content {
    text-align: center;
    padding: 11px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content.wide {
    padding: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-icon.accent { color: var(--accent); }
.service-icon.success { color: var(--success); }
.service-icon.danger { color: #ff4444; }
.feature-icon.success { color: var(--success); margin-right: 0.25rem; }
.feature-icon.warning { color: #ffd700; margin-right: 0.25rem; }

.service-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-features {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-price {
    padding: 0.5rem;
    /* border-radius: 8px; */
    /* border: 1px solid; */
}

.service-price.accent { background: rgba(102, 126, 234, 0.1); border-color: var(--accent); }
.service-price.danger { background: rgba(255, 68, 68, 0.1); border-color: #ff4444; }
.service-price strong { color: inherit; font-size: 1.125rem; }

.service-card.wide { margin-bottom: 1.5rem; }

.service-prediction-list {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.token-balance-banner {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
}

.token-balance-sub {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}


/* Mobile optimizations */

.stat-card::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light, #4facfe));
}

.stat-card:hover {
    transform: translateY(-4px);
    background: var(--bg-hover);
    border-color: var(--accent);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 25px;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin: 0 0 var(--space-xs) 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.stat-icon {
    font-size: var(--font-size-2xl);
    color: var(--accent);
    filter: drop-shadow(rgba(0, 0, 0, 0.2) 0px 2px 4px);
}

.stat-value span {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    margin-bottom: var(--space-xl);
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
}

.section-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);

}

.section-header h3 {
    color: var(--text-primary);
    font-size: var(--font-size-l);
    font-weight: 400;
    margin: 0px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: 0.02em;

}

.section-header h3 i {
    color: var(--accent);
    font-size: 1.2em;
}
.btn.btn-beli {
    background: var(--success);
    color: #000000;
    border: 1px solid transparent;
    font-weight: 500;
}

.btn.btn-beli:hover:not(:disabled) {
    background: var(--text-primary);
    color: #000000;
    border-color: transparent;
}
.dashboard-form {
    padding: var(--space-md);
    background: var(--bg-primary);
}

.form-row {
    margin-bottom: var(--space-sm);

}

.form-hint {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-top: var(--space-sm);
    font-style: italic;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: var(--space-md);
}

.date-inputs .form-input {
    text-align: center;
}

.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
    padding: 0px;
    background: var(--bg-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--border-focus) var(--bg-primary);
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--border-focus);
    border-radius: 4px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
    background: var(--bg-primary);
    margin: 0px;
}

.profile-filter-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.filter-tab {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-tab.active {
    background: var(--accent-soft, rgba(242, 201, 76, 0.1));
    border-color: var(--accent);
    color: var(--accent);
}

.profile-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-right: 6px;
    font-weight: 600;
}

.profile-type-personal {
    background: rgba(99, 179, 237, 0.15);
    color: #63b3ed;
}

.profile-type-corporate {
    background: rgba(129, 230, 217, 0.15);
    color: #81e6d9;
}

.profile-type-brand {
    background: rgba(214, 188, 250, 0.15);
    color: #d6bcfa;
}

.dashboard-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: black;
    color: var(--text-secondary);
    padding: var(--space-sm);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--font-size-xs);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    border: 2px solid var(--border);

}

.dashboard-table td {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(255, 255, 255, 0.05);
    color: var(
--text-primary);
    vertical-align: middle;
    font-size: var(
--font-size-sm);
    text-transform: capitalize;
    text-align: center;

}

.dashboard-table tbody tr {
    transition: background-color 0.2s;
}

.dashboard-table tbody tr:hover {
    background: var(--bg-hover);
}

.dashboard-table tbody tr:last-child td {
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
}

.btn-action {
    padding: var(--space-sm);
    margin: 0 var(--space-xs);
    border: medium;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
    font-size: var(--font-size-sm);
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
}

.btn-use {
    background: black;
    color: white;
    border: 1px solid white;
    margin: 10px;
    padding: none !important;
}

.btn-use:hover {
    background: linear-gradient(135deg, rgb(33, 136, 56), rgb(30, 166, 123));
    transform: translateY(-1px);
    box-shadow: rgba(40, 167, 69, 0.3) 0px 4px 8px;
}

.btn-delete {
     background: black;
    color: white;
    border: 1px solid white;
    margin: 10px;
    padding: none !important;
}

.btn-delete:hover {
    background: linear-gradient(135deg, rgb(200, 35, 51), rgb(192, 57, 43));
    transform: translateY(-1px);
    box-shadow: rgba(220, 53, 69, 0.3) 0px 4px 8px;
}

.loading-row, .empty-row, .error-row {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-primary);
}

.loading-row i {
    margin-right: var(--space-sm);
    animation: 1s linear infinite spin;
}

.empty-row {
    color: var(--text-secondary);
}

.empty-row i {
    color: var(--accent);
    font-size: 1.2em;
    margin-right: var(--space-sm);
}

.error-row {
    color: var(--error);
}

.dashboard-form .form-group {
    position: relative;
}

.dashboard-form .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    display: block;
}

.dashboard-form .form-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: 0.3s;
    width: 100%;

}

.dashboard-form .form-input:focus {
    outline: currentcolor;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 102, 126, 234), 0.1);
}

.dashboard-form .btn {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    text-decoration: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.dashboard-form .btn:hover {
     background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.quota-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.quota-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quota-number {
    font-size: 18px;
    font-weight: bold;
    color: #4488ff;
}

.quota-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quota-separator {
    color: #999;
    font-weight: bold;
}

@media (max-width: 768px) {
    .quota-breakdown {
        font-size: 12px;
    }
    
    .quota-number {
        font-size: 16px;
    }
    
    .quota-label {
        font-size: 10px;
    }
}

.export-section {
    text-align: center;
    margin: var(--space-lg) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

.btn-export {
    max-width: 200px;
    margin: 0px auto;
}

.btn-export i {
    color: var(--error);
}

@media (max-width: 768px) {
    .container {
        padding-right: var(--space-sm);
        padding-bottom: var(--space-sm);
        padding-left: var(--space-sm);
        gap: var(--space-sm);
        justify-content: flex-start;
        padding-top: var(--space-lg);
    }
    
    .container.prediction-page {
        padding-top: 70px;
    }

    .hero {
        margin-bottom: var(--space-lg);
    }

    .hero-title {
        font-size: var(--font-size-xl);
        letter-spacing: 0.1em;
    }

    .card-header, .card-body {
        padding: var(--space-lg);
    }

.results-content {
        padding: var(--space-lg) !important;
        line-height: 1.6;
        padding-top: 20px !important;
        margin-top: 0 !important;
    }

    .date-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .results-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .results-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .analysis-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .analysis-subject, .analysis-birthdate, .analysis-gender {
        width: 100%;
        margin-bottom: var(--space-xs);
        min-width: auto;
    }

    .star-rating span {
        font-size: 1.5rem;
    }

    .daily-limit-feature {
        flex-direction: column;
        text-align: center;
    }

    .limit-feature-icon {
        align-self: center;
        margin-bottom: 8px;
    }

    .nav-container {
        padding: var(--space-md);
        gap: var(--space-xs);
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: center;
    }

    .nav-brand {
        font-size: var(--font-size-base);
        text-transform: capitalize;
    }

    .nav-user {
        padding: var(--space-sm);
    }
    
    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--space-xs);
    }
    
    .month-controls {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
        text-align: center;
    }
    
    .tab-headers {
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        max-width: 80px;
        /* text-align: center; */
    }
    
    .welcome-popup-content {
        width: 95%;
        margin: var(--space-md);
    }

    .welcome-popup-header, .welcome-popup-body {
        padding: var(--space-md);
    }

    .shakespeare-quote blockquote p {
        font-size: var(--font-size-base);
    }
    
    .dashboard-card .card-body {
        padding: var(--space-lg);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .section-header {
        padding: var(--space-lg);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .dashboard-form {
        padding: var(--space-lg);
    }

    
    .date-inputs {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .date-inputs input:last-child {
        grid-column-start: 1;
        grid-column-end: -1;
        margin-top: var(--space-sm);
    }
}

@media (max-width: 640px) {
    .container {
        padding: var(--space-sm);
        gap: var(--space-sm);
         margin-top: 0;
    }

    .hero-title {
        font-size: var(--font-size-lg);
        letter-spacing: 0.1em;
    }

   

    .card-title {
        font-size: var(--font-size-lg);
    }

    .date-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .form-input {
        font-size: 14px;
    }

    .btn {
        min-height: var(--touch-target);
        font-size: var(--font-size-base);
    }

    .toast-container {
        left: var(--space-sm);
        right: var(--space-sm);
        top: var(--space-sm);
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .auth-card {
        /*margin: 1rem;*/
        max-width: none;
    }

    .auth-card .card-header {
        padding: 1.5rem 1rem 1rem;
    }

    .auth-card .card-body {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: var(--font-size-xl);
    }
    
    .page-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .month-checkbox {
        padding: var(--space-xs);
        font-size: var(--font-size-xs);
    }
    
    .tab-content {
        padding: var(--space-md);
    }
    
    .monthly-fields {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    
    
    .container.prediction-page {
        padding-top: 60px;
    }

    .hero-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-xs);
        margin-top: 0;
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
    }

   

    .card-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-xs);
    }

    .form-group {
        gap: calc(var(--space-xs) / 2);
    }

    

    .btn {
        min-height: 40px;
    }
    
    .nav-container {
        grid-template-columns: 1fr;
    }

    .nav-user {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-xs);
    }

    .nav-user .back-link {
        width: 100%;
        padding: 10px;
        font-size: var(--font-size-xs);
        justify-content: center;
        min-width: 0;
    }

    .nav-brand {
        display: none;
    }

    .back-nav {
        display: none;
    }

    /* ensure single-row grid, no flex override */

    .logout-mobile {
        display: inline-flex;
        align-items: center;
        gap: var(--space-xs);
    }

    select#analysis-profiles-dropdown,
    select#prediction-profiles-dropdown {
        appearance: none;
        -webkit-appearance: none;
        font-size: 18px;
        line-height: 1.4;
        padding: var(--space-md);
    }

    .results-content {
        padding: var(--space-sm);
        line-height: 1.5;
    }

    .feedback-textarea {
        height: 60px;
    }

    .analysis-counter {
        padding: var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .loading-state {
        padding: var(--space-lg);
    }

    .spinner {
        width: 30px;
        height: 30px;
    }

    .counter-main {
        font-size: 14px;
    }

    .reset-countdown {
        font-size: 13px;
        padding: 8px 12px;
    }

    .auth-card .card-title {
        font-size: 1.3rem;
    }
    
    .page-header {
        margin-bottom: var(--space-md);
        padding: var(--space-md) 0;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
    
    .tab-headers {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tab-btn {
        border-radius: var(--radius-sm);
        /* margin-bottom: var(--space-xs); */
    }
    
    .tab-content {
        border-radius: var(--radius);
        margin-top: var(--space-sm);
        min-height: 200px;
        padding: var(--space-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-table {
        font-size: var(--font-size-xs);
        padding: var(--space-xs);
    }

    .dashboard-table th:nth-child(3), .dashboard-table td:nth-child(3) {
        display: none;
    }

    .btn-action {
        min-width: 32px;
        height: 32px;
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 380px) {
    .dashboard-table th:nth-child(3),
    .dashboard-table td:nth-child(3),
    .dashboard-table th:nth-child(4),
    .dashboard-table td:nth-child(4) {
        display: none;
    }
    .dashboard-table th:nth-child(5),
    .dashboard-table td:nth-child(5) {
        width: 1%;
        white-space: nowrap;
    }
}

@media (max-width: 320px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 1rem;
    }

    .container {
        padding: var(--space-xs);
    }

    .hero-title {
        font-size: var(--font-size-sm);
        letter-spacing: 0.05em;
    }

    .card-header, .card-body {
        padding: var(--space-xs);
    }

    .form-input, .btn {
        font-size: var(--font-size-sm);
    }
}

@media (max-height: 500px) and(orientation: landscape) {
    .container {
        justify-content: flex-start;
        padding-top: var(--space-sm);
        gap: var(--space-sm);
         margin-top: 0;
    }

    .hero {
        margin-bottom: var(--space-sm);
    }

    .hero-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-xs);
    }

    .card-header {
        padding: var(--space-sm) var(--space-md);
    }

    .card-body {
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.loading-container {
    text-align: center;
    padding: var(--space-xl);
    max-width: 90vw;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: 2s linear infinite spin;
    margin: 0 auto var(--space-lg);
}

.loading-title-mobile {
    font-size: var(--font-size-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.loading-text-mobile {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.loading-warning {
    color: var(--warning);
    font-size: var(--font-size-sm);
    display: block;
    margin-top: var(--space-sm);
    font-weight: 500;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto var(--space-sm);
    overflow: hidden;
}

.progress-animation {
    width: 30%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: 2s ease-in-out infinite progress-slide;
}

@keyframes progress-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(300%); }
    100% { transform: translateX(-100%); }
}

.progress-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .loading-container {
        padding: var(--space-lg);
    }
    
    .spinner-large {
        width: 80px;
        height: 80px;
        border-width: 6px;
    }
    
    .loading-title-mobile {
        font-size: var(--font-size-2xl);
    }
}
@media (hover: none) and(pointer: coarse) {
    .btn, .form-input, .tab-btn, .nav-logout {
        min-height: var(--touch-target);
    }

    .star-rating span {
        min-width: var(--touch-target);
        min-height: var(--touch-target);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .toast {
        min-height: var(--touch-target);
    }
    
    .month-checkbox,
    .tab-btn,
    .btn-small {
        min-height: var(--touch-target);
    }
    
    .month-checkbox {
        padding: var(--space-sm);
    }
}

@media print {
    body {
        background: white;
        color: black;
    }

    .nav, .hero, .auth-card, .analysis-card, .results-actions, .toast-container {
        display: none;
    }

    .results-card {
        box-shadow: none;
        border: 1px solid rgb(51, 51, 51);
    }
}


.token-balance-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.token-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.token-label {
    font-size: 1rem;
    color: #b3b3b3;
    font-weight: 400;
}

.token-refill-info {
    margin-top: 8px;
}

.token-refill-info small {
    color: #de6c3c;
    font-size: 0.75rem;
}

@keyframes tokenIncrease {
    0% {
        transform: scale(1);
        color: #ffffff;
    }
    50% {
        transform: scale(1.3);
        color: #de6c3c;
    }
    100% {
        transform: scale(1);
        color: #ffffff;
    }
}

.token-increase-animation {
    animation: tokenIncrease 0.6s ease-in-out;
}

.token-promo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .token-promo-section {
        grid-template-columns: 1fr;
    }
}

.promo-card {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333333;
}

.promo-card h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card h3 i {
    color: #de6c3c;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #333333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.promo-input-group input:focus {
    outline: none;
    border-color: #de6c3c;
    box-shadow: 0 0 0 3px rgba(222, 108, 60, 0.1);
}

.btn-promo {
    padding: 12px 24px;
    background: var(--success);
    color: #000000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}


.btn-promo:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

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

.btn-promo:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

.promo-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.promo-message.success {
    background: rgba(222, 108, 60, 0.1);
    color: #de6c3c;
    border: 1px solid rgba(222, 108, 60, 0.3);
}

.promo-message.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.service-prices-card {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333333;
}

.service-prices-card h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-prices-card h3 i {
    color: #de6c3c;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #2a2a2a;
    border-radius: 4px;
    border: 1px solid #333333;
}

.price-item-special {
    border-color: #de6c3c;
    background: rgba(222, 108, 60, 0.05);
}

.service-name {
    color: #ffffff;
    font-size: 0.9rem;
}

.service-price {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.price-save {
    margin-left: auto;
    padding-left: 10px;
    color: #ffaa00;
    font-size: 0.8rem;
    font-weight: 600;
}

.transactions-container {
    margin-top: 15px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1f1f1f;
    border-radius: 4px;
    border: 1px solid #333333;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.transaction-date {
    color: #b3b3b3;
    font-size: 0.75rem;
}

.transaction-desc {
    color: #b3b3b3;
    font-size: 0.8rem;
    margin-top: 4px;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1rem;
}

.amount-positive {
    color: #de6c3c;
}

.amount-negative {
    color: #ff4444;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #666666;
    font-style: italic;
}

.btn-toggle {
    padding: 8px 16px;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    background: #333333;
    border-color: #de6c3c;
}

.token-balance-card .btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.token-balance-card .btn i {
    margin-right: 0.5rem;
}

 
/* Progress Container - Minimal & Clean */
.progress-container {
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Progress Bar */
.progress-bar-wrapper {
    margin-bottom: 20px;
}

.progress-bar-monthly {
    width: 100%;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #667eea, var(--success));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;

}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Progress Text */
.progress-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Current Month Indicator */
.current-month-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.processing-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.current-month-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--success);
    padding: 8px 16px;
    /* background: rgba(102, 126, 234, 0.15); */
    border-radius: 8px;
    animation: pulse 1.5s infinite;

}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Completed Months - Compact List */
.completed-months {
    font-size: 13px;
    color: rgba(76, 175, 80, 0.8);
    line-height: 1.6;
}
 
    .tab-content {
        min-height: 200px;
        padding: var(--space-sm);
    }
    .promo-input-group {
        flex-direction: column;
    }

    .btn-promo {
        width: 100%;
    }


/* PWA Install Banner */
.pwa-install-banner {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-success);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    animation: fadeIn 0.3s ease;
}

.pwa-install-banner i {
    color: var(--success);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-install-pwa {
    padding: var(--space-xs) var(--space-md);
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-install-pwa:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
}

.btn-dismiss-pwa {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--font-size-2xl);
    cursor: pointer;
    padding: 0 var(--space-xs);
    line-height: 1;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-dismiss-pwa:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pwa-install-banner {
        flex-wrap: wrap;
    }
    
    .banner-text {
        width: 100%;
        margin-bottom: var(--space-xs);
    }
    
    .btn-install-pwa {
        flex: 1;
    }
}
div#service-selection-card {
    max-width: 1200px;
    margin: 0 auto;
}
select#compatibility-profiles-dropdown,
select#business-profiles-dropdown {
    margin-bottom: 20px;
}

.insufficient-tokens-modal {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.token-summary {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.token-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.token-info-row.shortage {
    border-top: 2px solid var(--accent);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--accent);
}

.packages-section h4 {
    margin-bottom: 1rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.package-option {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.package-option.recommended {
    border-color: var(--success);
    /* background: linear-gradient(to bottom right, #4744cc, rgba(12, 255, 136, 1)); */

}

.package-option .badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.package-amount {
    margin: 1rem 0;
}

.token-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.token-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.package-price {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0;
}

.package-buy-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--accent);
    color: #000000;
    border: 1px solid transparent;
    font-weight: 500;
}

.package-buy-btn:hover:not(:disabled) {
    background: var(--text-primary);
    color: #000000;
    border-color: transparent;
}
.modal-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Centered Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-lg);
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    position: relative;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.popup-message {
    font-size: var(--font-size-md);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.popup-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.popup-close-btn:hover {
    background: var(--primary-dark);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.service-token-banner {
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: var(--text-primary);
}
 

.service-token-banner strong {
    color: var(--success);
    font-weight: 600;
}

.service-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--border);
    color: var(--info);
    padding: 4px 10px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    align-self: center;
}

/* ============================================
   ONBOARDING MODAL STYLES
   ============================================ */

.onboarding-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

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

.onboarding-modal {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    padding: 0;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.onboarding-header {
    background: linear-gradient(135deg, #c4a987 0%, #daae7c 100%);
    padding: 24px;
    text-align: center;
}

.onboarding-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.onboarding-body {
    padding: 32px 24px;
}

.onboarding-token-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: rgba(139, 115, 85, 0.08);
    border-radius: 12px;
    margin-bottom: 24px;
}

.onboarding-token-icon {
    font-size: 48px;
    line-height: 1;
}

.onboarding-token-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.onboarding-token-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.onboarding-token-value {
    font-size: 32px;
    color: var(--bg-input);
    font-weight: 700;
    line-height: 1;

}

.onboarding-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;

}

.onboarding-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 8px;
    /* border: 1px solid rgba(139, 115, 85, 0.2); */
    margin-top: 14px;
}

.onboarding-cost-label {
    font-size: 14px;
    color: var(--text-secondary, #666);
}

.onboarding-cost-value {
    font-size: 16px;
    color: var(--error);
    font-weight: 600;

}

.onboarding-actions {
    padding: 0 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onboarding-btn-start {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: var(--accent);
    color: var(--text-inverse);
    /* border: 1px solid #cccccc; */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.onboarding-btn-start:hover {
    background: var(--text-primary) !important;
    color: var(--text-inverse);
    /* border-color: #45a049; */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.onboarding-btn-skip {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    background: rgba(139, 115, 85, 0.08);
    color: #000000;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 8px;
}

.onboarding-btn-skip:hover {
    background: rgba(139, 115, 85, 0.05);
    border-color: rgba(139, 115, 85, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .onboarding-modal {
        width: 95%;
        max-width: none;
    }
    
    .onboarding-header h2 {
        font-size: 20px;
    }
    
    .onboarding-token-value {
        font-size: 28px;
    }
    
    .onboarding-description {
        font-size: 15px;
    }
}

/* Service Type Toggle */
.service-type-toggle {
    display: flex;
    gap: 6px;
    margin-top: 15px;
    justify-content: center;
    padding: 6px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-focus);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.toggle-btn {
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-focus);
    color: rgba(255, 255, 255, 0.95);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #c4a987 0%, #8b7355 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: white;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.toggle-btn i {
    font-size: 16px;
}
