/* ============================================================
   ACCOUNT PAGES — AUTH + DASHBOARD
   Matches assisting-ai.com WordPress theme
   ============================================================ */

/* ---- Auth Pages (Login / Register / Forgot) ---- */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: var(--paper);
}

.auth-split {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.auth-brand {
    display: none;
    background: var(--dark);
    color: var(--dark-text);
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 30%, rgba(61,90,254,0.18), transparent 60%),
        radial-gradient(ellipse 60% 70% at 80% 70%, rgba(23,163,109,0.12), transparent 60%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
}

.auth-brand .auth-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-brand h1 {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.auth-brand p {
    color: var(--dark-muted);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.55;
    max-width: 420px;
}

.auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.auth-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--dark-text);
    font-size: 0.85rem;
}

.auth-proof-item strong {
    color: #fff;
    font-weight: 600;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--paper);
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-2);
}

.auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-header .auth-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 12px;
}

.auth-header h1 {
    font-family: var(--f-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.auth-header p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Form Styles ---- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
}

.form-group .optional {
    color: var(--faint);
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.95rem;
    font-family: var(--f-sans);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder {
    color: var(--faint);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 0.9;
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-link:hover {
    color: var(--accent-2);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--faint);
    margin-top: 4px;
}

.license-input {
    font-family: "JetBrains Mono", ui-monospace, monospace !important;
    letter-spacing: 0.5px;
}

/* ---- Buttons ---- */

.btn-full {
    width: 100%;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-sans);
    font-size: 0.95rem;
    font-weight: 550;
    letter-spacing: -.01em;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -10px rgba(42, 69, 224, .7);
}

.btn-primary:hover {
    background: var(--accent-2);
}

.btn-outline {
    background: transparent;
    border-color: var(--line-2);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--card);
    border-color: var(--ink);
}

.btn-sm {
    height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
}

.btn-danger {
    border-color: #fecaca;
    color: #b91c1c;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--card);
    color: var(--ink);
    font-family: var(--f-sans);
    font-size: 0.95rem;
    font-weight: 550;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.google-btn:hover {
    background: var(--paper);
    border-color: var(--ink);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--faint);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.auth-footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 14px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--accent-2);
}

.btn-outline:hover {
    background: var(--paper-2);
    border-color: #cbd5e1;
    color: var(--ink);
}

.btn-danger {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* ---- Google Sign-In ---- */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    color: var(--faint);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.google-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.google-btn:active {
    background: #eee;
}

.google-btn svg {
    flex-shrink: 0;
}

/* ---- Alerts ---- */

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.alert-error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-success {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.alert-info {
    background: var(--accent-soft, rgba(61, 90, 254, 0.08));
    border: 1px solid rgba(61, 90, 254, 0.18);
    color: var(--accent-2, #2A45E0);
}

.welcome-alert {
    margin-bottom: 24px;
}

/* ---- Auth Footer ---- */

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.auth-footer p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}


/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-page {
    padding: 100px 0 60px;
    min-height: 100vh;
    background: var(--paper);
}

/* ---- Hero Header ---- */

.dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-1);
    gap: 16px;
    flex-wrap: wrap;
}

.dash-hero-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3D5AFE, #2A45E0);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-hero-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

.dash-hero-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.dash-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: rgba(34,197,94,0.08);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,0.22);
}

.status-inactive {
    background: rgba(239,68,68,0.06);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.18);
}

.status-warning {
    background: rgba(245,158,11,0.08);
    color: #d97706;
    border: 1px solid rgba(245,158,11,0.22);
}

/* ---- Stats Row ---- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    border-color: rgba(139, 30, 63, 0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.stat-card-cta {
    border-color: rgba(139, 30, 63, 0.25);
    background: linear-gradient(180deg, rgba(139,30,63,0.03), #ffffff);
}

.stat-icon {
    font-size: 1.3rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-cta {
    margin-top: 6px;
}

/* ---- Main Grid ---- */

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 32px;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.dash-section-highlight {
    border-color: rgba(34,197,94,0.18);
}

.dash-section-download {
    border-color: rgba(139,30,63,0.14);
}

.dash-section-account {
    border-color: rgba(100,116,139,0.18);
}

.dash-section-feedback {
    border-color: rgba(139,30,63,0.10);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.dash-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.dash-section-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 14px;
}

/* ---- License Cards ---- */

.license-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.license-card:hover {
    border-color: rgba(139,30,63,0.25);
}

.license-card.active {
    border-color: rgba(34,197,94,0.3);
}

.license-card.expired {
    opacity: 0.7;
}

.license-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.license-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.license-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.5);
}

.license-status-dot.expired {
    background: #ef4444;
}

.license-plan {
    font-weight: 600;
    color: var(--ink);
    flex-grow: 1;
    font-size: 0.95rem;
}

.license-status-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.license-status-badge.active {
    background: rgba(34,197,94,0.08);
    color: #16a34a;
}

.license-status-badge.expired {
    background: rgba(239,68,68,0.06);
    color: #dc2626;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: 8px;
    flex-grow: 1;
}

.copy-btn {
    background: #ffffff;
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    padding: 5px 8px;
    border-radius: 8px;
}

.copy-btn:hover {
    opacity: 1;
    border-color: var(--accent);
}

.license-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--faint);
    flex-wrap: wrap;
}

.license-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 5px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3D5AFE, #2A45E0);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--faint);
    margin-top: 5px;
    display: block;
}

/* ---- Empty State ---- */

.empty-state {
    text-align: center;
    padding: 28px 16px;
}

.empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.empty-state h3 {
    color: var(--ink);
    font-size: 1.05rem;
    margin: 0 0 6px;
}

.empty-state p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 14px;
}

/* ---- Download ---- */

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dl-icon {
    font-size: 1.1rem;
}

.download-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--faint);
    margin: 0;
}

/* ---- Quick Links ---- */

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--paper-2);
    color: var(--accent);
}

.quick-link span {
    font-size: 1rem;
}

/* ---- Account Info ---- */

.account-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 12px;
}

.info-label {
    color: var(--muted);
}

.info-value {
    color: var(--ink);
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.account-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Feedback ---- */

.feedback-subtitle {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feedback-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg-card-solid);
    color: var(--ink);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft, rgba(61, 90, 254, 0.1));
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-form .form-hint {
    font-size: 0.75rem;
    color: var(--faint);
    text-align: right;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating .star {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #cbd5e1;
    padding: 0 2px;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}

.star-rating .star:hover,
.star-rating .star.hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.star-rating .star.active {
    color: var(--accent);
}

/* ---- Modal ---- */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    width: 92%;
    max-width: 440px;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-header h3 {
    color: var(--ink);
    font-size: 1.1rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--faint);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 860px) {
    .auth-split {
        grid-template-columns: 1fr 1fr;
    }
    .auth-brand {
        display: block;
    }
    .auth-panel {
        padding: 32px;
    }
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .dash-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .feedback-form .form-row {
        grid-template-columns: 1fr;
    }
    .info-row {
        flex-direction: column;
        gap: 2px;
    }
    .info-value {
        text-align: left;
    }
    .license-meta {
        flex-direction: column;
        gap: 4px;
    }
    .auth-brand-inner {
        padding: 24px;
    }
}

