/* FactChain owner: account */
/* ----------------------------------------------------------------
   19. BADGES (Subscription Status)
   ---------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-tag);
    font-size: 13px;
    font-weight: 600;
}

.badge--active {
    background: rgba(76, 175, 80, 0.15);
    color: var(--success);
}

.badge--active::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: dashPulseDot 2s ease-in-out infinite;
}

.badge--expired {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

.badge--cancelled {
    background: rgba(244, 67, 54, 0.15);
    color: var(--error);
}

.badge--info {
    background: rgba(33, 150, 243, 0.15);
    color: var(--info);
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ----------------------------------------------------------------
   20. TABLE (Payment History)
   ---------------------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-faq);
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    white-space: nowrap;
}

.table th {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    color: var(--text-primary);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(26, 26, 26, 0.5);
}

.table__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.table__status--success {
    color: var(--success);
}

.table__status--failed {
    color: var(--error);
}

.table__status--pending {
    color: var(--warning);
}

/* ----------------------------------------------------------------
   21. MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: color var(--transition-slow), background-color var(--transition-slow), border-color var(--transition-slow), box-shadow var(--transition-slow), opacity var(--transition-slow), transform var(--transition-slow);
}

.modal-overlay--active,
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-modal);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: var(--shadow-modal);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-slow);
}

.modal-overlay--active .modal,
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal__title {
    font-size: 24px;
    font-weight: 700;
}

.modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
    cursor: pointer;
    border: none;
}

.modal__close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.modal__body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* ----------------------------------------------------------------
   24. AUTH CARD (Login / Register)
   ---------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-height) + 40px) var(--container-padding) 40px;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(229,57,53,0.08), transparent),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(229,57,53,0.05), transparent),
        radial-gradient(ellipse 800px 600px at 50% 50%, rgba(255,255,255,0.02), transparent);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(26,26,26,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px 40px;
}

.auth-card__close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 50%;
    transition: color var(--transition-base), background var(--transition-base);
}

.auth-card__close:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.auth-card__title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-card__subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

.auth-form .form-field {
    margin-bottom: 12px;
}

.auth-forgot {
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.auth-card__note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 28px;
    line-height: 1.6;
}

.auth-card__note a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.auth-card--centered {
    text-align: center;
}

.auth-card__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: authIconIn 0.5s ease-out;
}

@keyframes authIconIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.auth-resend-form {
    margin: 16px 0 0;
    text-align: center;
}

.auth-resend-link {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    transition: color var(--transition-base);
}

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

/* ----------------------------------------------------------------
   25. DASHBOARD
   ---------------------------------------------------------------- */

/* ── Keyframes ── */
@keyframes dashFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes dashPulseDot {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 4px transparent; }
}
@keyframes dashProgressGlow {
    0%, 100% { box-shadow: 0 0 4px var(--accent-glow); }
    50% { box-shadow: 0 0 10px var(--accent-glow-strong); }
}

/* ── Dashboard Layout ── */
.dashboard {
    padding: 104px 0 80px;
    font-family: 'Gilroy', sans-serif;
}
.dashboard__hero {
    margin-bottom: 48px;
    text-align: center;
    animation: dashFadeInUp 0.3s ease-out both;
}

/* ── Profile card (glassmorphism) ── */
.dashboard__profile {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-faq);
    padding: 16px 24px;
    margin-bottom: 48px;
    animation: dashFadeInUp 0.3s ease-out 0.05s both;
}
.dashboard__profile-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dashboard__profile-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dashboard__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6f61);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.dashboard__profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dashboard__name {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard__email {
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
}
.dashboard__profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0;
}
.dashboard__profile-item--link {
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-base);
    text-decoration: none;
}
.dashboard__profile-item--link:hover {
    color: var(--text-primary);
}
.dashboard__profile-item--link svg {
    stroke: currentColor;
}

/* ── Section ── */
.dashboard__section {
    margin-bottom: 48px;
    animation: dashFadeInUp 0.3s ease-out 0.1s both;
}
.dashboard__section:nth-child(4) { animation-delay: 0.15s; }
.dashboard__section:nth-child(5) { animation-delay: 0.2s; }
.dashboard__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.dashboard__section-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Accordion (shared max-height transition) ── */
.dashboard__section-header--toggle {
    cursor: pointer;
    user-select: none;
}
.dashboard__section-header--toggle:hover .dashboard__section-title {
    color: var(--accent);
    transition: color var(--transition-base);
}
.dashboard__chevron {
    transition: transform var(--transition-accordion);
    color: var(--text-muted);
    display: inline-flex;
}
.dashboard__settings-item--open > .dashboard__section-header--toggle .dashboard__chevron {
    transform: rotate(180deg);
    color: var(--accent);
}
.dashboard__accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-accordion), opacity 0.25s ease-out;
}
.dashboard__settings-item--open > .dashboard__accordion-body {
    max-height: 600px;
    opacity: 1;
}

/* ── Subscription grid ── */
.dashboard__subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

/* ── Subscription card ── */
.dashboard__sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-faq);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out, opacity 0.25s ease-out;
}
.dashboard__sub-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dashboard__sub-card--expired {
    opacity: 0.6;
}
.dashboard__sub-card--expired:hover {
    opacity: 1;
}
.dashboard__sub-card--unowned {
    opacity: 0.85;
    border-style: dashed;
}
.dashboard__sub-card--unowned:hover {
    opacity: 1;
}
.dashboard__sub-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}
.dashboard__sub-price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}
.dashboard__sub-price-val {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard__sub-price-sep {
    color: var(--text-muted);
    font-size: 14px;
}
.dashboard__sub-price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ── Sub header ── */
.dashboard__sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.dashboard__sub-name {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Badges ── */
.dashboard__sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Gilroy', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.dashboard__sub-badge--active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.dashboard__sub-badge--active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.dashboard__sub-badge--expired {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.dashboard__sub-badge--expired::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #808080;
    flex-shrink: 0;
}
.dashboard__sub-badge--cancelled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.dashboard__sub-badge--warning {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}
.dashboard__sub-badge--warning::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: dashPulseDot 2s infinite ease-in-out;
    flex-shrink: 0;
}

/* ── Sub details (timer layout) ── */
.dashboard__sub-details {
    margin-bottom: 20px;
}

/* ── Sub body (2-col: timer+progress | meta) ── */
.dashboard__sub-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 20px;
}
.dashboard__sub-left { min-width: 0; }
.dashboard__sub-left .dashboard__sub-timer { margin-bottom: 8px; }
.dashboard__sub-meta {
    display: flex;
    gap: 32px;
    align-items: center;
}
.dashboard__sub-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard__sub-meta-label {
    font-family: 'Gilroy', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.dashboard__sub-meta-value {
    font-family: 'Gilroy', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
@media (max-width: 640px) {
    .dashboard__sub-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dashboard__sub-meta { gap: 20px; flex-wrap: wrap; }
}
.dashboard__sub-timer {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.dashboard__sub-timer--warning .dashboard__days-number {
    color: var(--accent);
    font-weight: 800;
}
.dashboard__days-number {
    font-family: 'Gilroy', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.dashboard__days-text {
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Progress bar ── */
.dashboard__progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.dashboard__progress-bar {
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    transition: width 0.5s ease-out;
}
.dashboard__progress--warning {
    box-shadow: 0 0 8px var(--accent-glow);
    animation: dashProgressGlow 2s infinite ease-in-out;
}

/* ── Reminder text ── */
.dashboard__sub-reminder {
    font-family: 'Gilroy', sans-serif;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ── Expired info ── */
.dashboard__sub-expired-info {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dashboard__sub-label {
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}
.dashboard__sub-expired-date {
    font-family: 'Gilroy', sans-serif;
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Unowned product info ── */
.dashboard__sub-desc {
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}
.dashboard__sub-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
    font-family: 'Gilroy', sans-serif;
}
.dashboard__price-rub {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard__price-sep {
    font-size: 14px;
    color: var(--text-dim);
}
.dashboard__price-usd {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── Sub actions ── */
.dashboard__sub-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
    flex-wrap: wrap;
}

/* ── Inline renewal panel (max-height transition) ── */
.dashboard__renew-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}
.dashboard__renew-panel--open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 12px;
}
.dashboard__renew-inner {
    padding-top: 16px;
}

/* ── Renewal period tabs ── */
.dashboard__renew-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 16px;
}
.dashboard__renew-tab {
    flex: 1;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: calc(var(--radius-sm) - 2px);
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-base), background-color var(--transition-base);
}
.dashboard__renew-tab:hover {
    color: var(--text-secondary);
}
.dashboard__renew-tab--active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.dashboard__renew-tab--active:hover {
    color: #fff;
}

/* ── Renewal price display ── */
.dashboard__renew-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    font-family: 'Gilroy', sans-serif;
}
.dashboard__renew-price-rub {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard__renew-price-sep {
    font-size: 14px;
    color: var(--text-dim);
}
.dashboard__renew-price-usd {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ── Renewal buttons ── */
.dashboard__renew-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dashboard__renew-form {
    flex: 1;
    min-width: 140px;
}
.dashboard__renew-form .btn {
    width: 100%;
}
.renew-period-input {
    display: none;
}

/* ── Settings modal overlay ── */
.dashboard__modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}
.dashboard__modal-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Settings modal (centered card) ── */
.dashboard__modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 85vh;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-faq);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard__modal--open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.dashboard__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    flex-shrink: 0;
}
.dashboard__modal-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard__modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-base);
}
.dashboard__modal-close:hover {
    color: var(--text-primary);
}
.dashboard__modal-body {
    padding: 0 24px 24px;
    flex: 1;
}

/* ── Modal sections ── */
.dashboard__modal-section {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.dashboard__modal-section:last-child {
    border-bottom: none;
}
.dashboard__modal-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.15s ease-out;
}
.dashboard__modal-section-toggle:hover {
    opacity: 0.85;
}
.dashboard__modal-section-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Gilroy', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.dashboard__modal-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard__modal-section-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
}
.dashboard__modal-muted {
    color: var(--text-muted);
}
.dashboard__modal-section-hint {
    padding-top: 4px;
}
.dashboard__modal-section--open > .dashboard__modal-section-toggle .dashboard__chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ── Modal password accordion body ── */
.dashboard__modal-section-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition-accordion), opacity 0.25s ease-out;
}
.dashboard__modal-section--open > .dashboard__modal-section-body {
    max-height: 400px;
    opacity: 1;
    padding-top: 16px;
}

/* ── Password form (compact for slide-panel) ── */
.dashboard__password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dashboard__password-form .form-field,
.form-field--compact {
    margin-bottom: 0;
    position: relative;
}
.dashboard__password-form .form-field__input,
.form-field--compact .form-field__input {
    height: 56px;
    padding: 20px 44px 8px 20px;
    font-size: 15px;
    border-radius: var(--radius-md);
}
.dashboard__password-form .form-field__label,
.form-field--compact .form-field__label {
    left: 20px;
    font-size: 14px;
}
.dashboard__password-form .form-field__input:focus + .form-field__label,
.dashboard__password-form .form-field__input:not(:placeholder-shown) + .form-field__label {
    top: 14px;
    font-size: 10px;
}

/* ── Eye toggle (show/hide password) ── */
.dashboard__eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease-out;
}
.dashboard__eye:hover {
    color: var(--text-primary);
}
.dashboard__eye--active {
    color: var(--accent);
}

/* ── Settings dot ── */
.dashboard__settings-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.dashboard__settings-dot--active {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ── Empty state ── */
.dashboard__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-faq);
}
.dashboard__empty p {
    font-family: 'Gilroy', sans-serif;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}
.dashboard__no-data {
    font-family: 'Gilroy', sans-serif;
    color: var(--text-muted);
    font-size: 14px;
    padding: 16px 0;
}

/* ── Payment table ── */
.dashboard__table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
/* Mobile: fade-right hint that table scrolls horizontally */
@media (max-width: 767px) {
    .dashboard__table-wrap {
        position: relative;
        -webkit-overflow-scrolling: touch;
    }
    .dashboard__table-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 32px;
        pointer-events: none;
        background: linear-gradient(to right, transparent, var(--bg-card));
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    }
}
.dashboard__table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Gilroy', sans-serif;
}
.dashboard__table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}
.dashboard__table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.dashboard__table td strong {
    font-weight: 600;
}
.dashboard__table tr:last-child td {
    border-bottom: none;
}
.dashboard__table tr {
    transition: background-color 0.15s ease-out;
}
.dashboard__table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ── Status dots ── */
.dashboard__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    font-weight: 500;
}
.dashboard__status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.dashboard__status--success {
    color: var(--success);
}
.dashboard__status--success::before {
    background: var(--success);
}
.dashboard__status--failed {
    color: var(--accent);
}
.dashboard__status--failed::before {
    background: var(--accent);
}
.dashboard__status--pending {
    color: var(--warning);
}
.dashboard__status--pending::before {
    background: var(--warning);
}

/* ── Navbar logout ── */
.navbar-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.navbar-logout-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.navbar-login--logout {
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    transition: opacity var(--transition-base);
}
.navbar-login--logout:hover {
    opacity: 0.7;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .dashboard__hero,
    .dashboard__profile,
    .dashboard__section { animation: none; }
    .dashboard__sub-card { transition: none; }
    .dashboard__accordion-body { transition: none; }
    .dashboard__renew-panel { transition: none; }
    .dashboard__modal { transition: none; }
    .dashboard__modal-overlay { transition: none; }
    .dashboard__modal-section-body { transition: none; }
    .dashboard__chevron { transition: none; }
    .dashboard__sub-badge--warning::before { animation: none; }
    .dashboard__progress--warning { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .dashboard__hero { margin-bottom: 32px; }
    .dashboard__profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        margin-bottom: 32px;
    }
    .dashboard__profile-right { gap: 12px; }
    .dashboard__email { display: none; }
    .dashboard__section { margin-bottom: 32px; }
    .dashboard__subs-grid { grid-template-columns: 1fr; }
    .dashboard__sub-actions { flex-direction: column; }
    .dashboard__sub-actions .btn { width: 100%; }
    .dashboard__renew-buttons { flex-direction: column; }
    .dashboard__renew-form { min-width: 0; }
    .dashboard__renew-form .btn { width: 100%; }
}

/* ── Mobile modal adjustments ── */
@media (max-width: 480px) {
    .dashboard { padding: 24px 0 64px; }
    .dashboard__avatar { width: 36px; height: 36px; font-size: 15px; }
    .dashboard__table th,
    .dashboard__table td { padding: 10px 14px; font-size: 13px; }
    .dashboard__days-number { font-size: 26px; }

    .dashboard__modal {
        max-width: calc(100% - 24px);
    }
}

/* ----------------------------------------------------------------
   LEGAL PAGES
   ---------------------------------------------------------------- */
.legal-page { padding: 120px 0 60px; }
.legal-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; color: var(--text-primary, #F5F5F5); }
.legal-content { max-width: 720px; line-height: 1.7; color: var(--text-secondary, #A0A0A0); }
.legal-content h2 { color: var(--text-primary, #F5F5F5); font-size: 20px; margin: 32px 0 12px; font-weight: 600; }
.legal-content p { margin: 0 0 12px; }
.legal-content a { color: var(--accent, #E53935); }
.legal-date { color: var(--text-muted, #666); font-size: 14px; margin-bottom: 24px; }

/* ── Card renew animation ("red fill") ── */
.dashboard__sub-card {
    position: relative;
    overflow: hidden;
}

.sub-card__fill {
    position: absolute;
    inset: 0;
    background: var(--accent);
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}
.dashboard__sub-card--renewing .sub-card__fill {
    clip-path: circle(150% at 50% 50%);
}

.sub-card__content,
.sub-card__renew {
    position: relative;
    z-index: 2;
}

/* Compact renew state inside the card */
.sub-card__content {
    transition: opacity 0.15s;
}
.dashboard__sub-card--renewing .sub-card__content {
    display: none;
}

.sub-card__renew {
    display: none;
    padding: 0;
    z-index: 2;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
}
.dashboard__sub-card--renewing .sub-card__renew {
    display: flex;
}

.dashboard__sub-card--renewing.dashboard-hero {
    padding: 28px;
}

.sub-card__back {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
    transition: color 0.2s;
}
.sub-card__back:hover { color: #fff; }

.sub-card__renew-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 44px 0 0;
}

.sub-card__currency-switch {
    margin-top: 2px;
}

.sub-card__currency-switch.currency-switch {
    background: rgba(0, 0, 0, 0.12);
    padding: 4px;
}

.sub-card__currency-switch .currency-switch__tab {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid transparent;
}

.sub-card__currency-switch .currency-switch__tab--active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
}

.sub-card__currency-switch .currency-switch__label,
.sub-card__currency-switch .currency-switch__tab--active .currency-switch__label {
    color: #fff;
    font-size: 14px;
}

.sub-card__payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.sub-card__payment-method strong {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.sub-card__form {
    width: 100%;
}

.sub-card__pay-btn {
    margin-top: 0;
    width: 100%;
    min-height: 72px;
    border-radius: 24px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(18, 18, 18, 0.18);
}

/* Period buttons (on red bg) */
.renew-periods { display: flex; gap: 8px; }
.renew-period {
    flex: 1;
    padding: 14px 10px;
    min-height: 70px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.7);
}
.renew-period:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.5);
}
.renew-period--active {
    background: rgba(255,255,255,0.22);
    border-color: #fff;
    color: #fff;
}
.renew-period__label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.renew-period__price { display: block; font-size: 18px; font-weight: 700; color: #fff; }

@media (max-width: 768px) {
    .dashboard__sub-card--renewing.dashboard-hero {
        padding: 22px;
    }

    .sub-card__pay-btn {
        min-height: 64px;
    }

    .sub-card__currency-switch .currency-switch__tab {
        min-height: 48px;
        padding: 10px 12px;
    }

    .sub-card__currency-switch .currency-switch__label {
        font-size: 13px;
    }

    .sub-card__payment-method {
        min-height: 52px;
        padding: 12px 14px;
    }

    .renew-periods {
        flex-direction: column;
    }
}

/* ----------------------------------------------------------------
   31. DASHBOARD v2 (hero + benefits + history)
   ---------------------------------------------------------------- */

/* Navbar logout */
.navbar-logout-form { margin: 0; display: inline; }
.navbar-login--logout { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }

/* Hero card */
.dashboard-hero {
    padding: 40px;
    background:
        radial-gradient(1000px 400px at 85% 0%, rgba(229, 57, 53, 0.18), transparent 60%),
        radial-gradient(800px 300px at 15% 100%, rgba(229, 57, 53, 0.08), transparent 60%),
        linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}
.dashboard-hero:hover { transform: none; border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }

.dashboard-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(320px, 420px);
    gap: 40px;
    align-items: stretch;
}
.dashboard-hero__left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
}
.dashboard-hero__identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.dashboard-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    min-width: 0;
}
.dashboard-stat__label {
    font-family: 'Gilroy', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-stat__value {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}
.dashboard-hero__avatar {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.dashboard-hero__avatar svg { width: 100%; height: 100%; display: block; }
.dashboard-hero__user { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dashboard-hero__greeting {
    font-family: 'Gilroy', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.dashboard-hero__greeting strong { font-weight: 800; }
.dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}
.dashboard-hero__email { overflow: hidden; text-overflow: ellipsis; }
.dashboard-hero__tg { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); }

.dashboard-hero__divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    align-self: stretch;
}

.dashboard-hero__status { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dashboard-hero__status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dashboard-hero__plan {
    font-family: 'Gilroy', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.dashboard-hero__countdown {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}
.dashboard-hero__countdown .dashboard__days-number { font-size: 56px; }
.dashboard-hero__countdown .dashboard__days-text { font-size: 14px; }
.dashboard-hero__countdown--warning .dashboard__days-number {
    color: var(--accent);
    font-weight: 800;
}
.dashboard-hero__date {
    font-family: 'Gilroy', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}
.dashboard-hero__date strong { color: var(--text-secondary); font-weight: 600; }

.dashboard-hero--empty {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Benefits card */
.dashboard-benefits { margin-bottom: 24px; }
.dashboard-section__title {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}
.dashboard-benefits__list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-faq);
    overflow: hidden;
}
.dashboard-benefits__group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-benefits__group:last-child { border-bottom: none; }
.dashboard-benefits__group-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 24px 6px;
    background: rgba(255, 255, 255, 0.015);
}
.dashboard-benefits__group .dashboard-benefits__row:last-child { border-bottom: none; }
.dashboard-benefits__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.dashboard-benefits__row:last-child { border-bottom: none; }
.dashboard-benefits__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.dashboard-benefits__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dashboard-benefits__name { font-family: 'Gilroy', sans-serif; font-size: 15px; font-weight: 600; color: var(--text-primary); }
.dashboard-benefits__sub { font-family: 'Gilroy', sans-serif; font-size: 12px; color: var(--text-muted); }
.dashboard-benefits__action { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

/* History accordion */
.dashboard-history {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-faq);
    overflow: hidden;
    margin-bottom: 24px;
}
.dashboard-history__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color var(--transition-base);
}
.dashboard-history__summary::-webkit-details-marker { display: none; }
.dashboard-history__summary:hover { background: rgba(255, 255, 255, 0.02); }
.dashboard-history__title {
    font-family: 'Gilroy', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.dashboard-history__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(229, 57, 53, 0.15);
    color: var(--accent);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}
.dashboard-history__chevron {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    display: inline-flex;
}
.dashboard-history[open] .dashboard-history__chevron { transform: rotate(180deg); }
.dashboard-history__body { padding: 0 24px 24px; }

/* Mobile */
@media (max-width: 768px) {
    .dashboard-hero { padding: 24px; }
    .dashboard-hero__content { grid-template-columns: 1fr; gap: 24px; }
    .dashboard-hero__divider { display: none; }
    .dashboard-hero__left { gap: 20px; }
    .dashboard-hero__avatar { width: 72px; height: 72px; border-radius: 18px; }
    .dashboard-hero__greeting { font-size: 18px; }
    .dashboard-hero__countdown .dashboard__days-number { font-size: 44px; }
    .dashboard-hero__stats { gap: 8px; }
    .dashboard-stat { padding: 10px 12px; border-radius: 12px; }
    .dashboard-stat__label { font-size: 10px; }
    .dashboard-stat__value { font-size: 15px; }
    .dashboard-benefits__row { padding: 16px; gap: 12px; }
    .dashboard-benefits__action { width: 100%; justify-content: flex-start; }
    .dashboard-history__summary { padding: 16px 20px; }
    .dashboard-history__body { padding: 0 20px 20px; }
}
@media (max-width: 480px) {
    .dashboard { padding: 48px 0 64px; }
    .dashboard-hero { padding: 20px; }
    .dashboard-hero__greeting { font-size: 17px; }
    .dashboard-hero__countdown .dashboard__days-number { font-size: 40px; }
}

.dashboard__access-fallback {
    display: inline-block;
    max-width: 240px;
    font-family: 'Gilroy', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 768px) {
    .dashboard__access-fallback {
        text-align: left;
    }
}

/* Dashboard: redeem promo block */
.dashboard-promo {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 24px;
}
.dashboard-promo__header { margin-bottom: 14px; }
.dashboard-promo__hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0;
    line-height: 1.5;
}
.dashboard-promo__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.dashboard-promo__field { display: flex; flex-direction: column; gap: 4px; }
.dashboard-promo__field > span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}
.dashboard-promo__field input,
.dashboard-promo__field select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    color: inherit;
    font: inherit;
}
.dashboard-promo__field input:focus-visible,
.dashboard-promo__field select:focus-visible {
    outline: 2px solid rgba(229, 57, 53, 0.6);
    outline-offset: 1px;
}
@media (max-width: 640px) {
    .dashboard-promo__form {
        grid-template-columns: 1fr;
    }
}

/* fail.html */
.fail-page {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fail-card {
    width: 100%;
    max-width: 380px;
    background: #1E1E1E;
    border-radius: 16px;
    padding: 36px 32px 32px;
    text-align: center;
}
.fail-icon { margin: 0 auto 20px; }
.fail-title {
    font-size: 22px;
    font-weight: 700;
    color: #F5F5F5;
    margin: 0 0 12px;
}
.fail-text {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* dashboard.html */
.dashboard__access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 640px) { .dashboard__access-grid { grid-template-columns: 1fr; } }
.dashboard__access-card { display: flex; align-items: center; gap: 12px; background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 12px; padding: 16px; flex-wrap: wrap; }
.dashboard__access-card--wide { grid-column: 1 / -1; }
.dashboard__access-icon { flex-shrink: 0; }
.dashboard__access-info { flex: 1; min-width: 0; }
.dashboard__access-name { font-weight: 600; font-size: 14px; color: #ddd; }
.dashboard__access-action { flex-shrink: 0; }
.dashboard__access-locked { font-size: 12px; color: #666; }
.dashboard__access-key { font-family: monospace; font-size: 15px; font-weight: 700; color: #fff; background: #2A2A2A; padding: 4px 10px; border-radius: 6px; letter-spacing: 2px; margin-right: 8px; }
.dashboard__onboarding { background: rgba(229, 57, 53, 0.08); border: 1px solid rgba(229, 57, 53, 0.2); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 16px; }
.dashboard__onboarding p { margin: 0; font-size: 14px; color: #aaa; flex: 1; }
.dashboard__tg-banner {
    border-radius: var(--radius-faq, 24px);
    padding: 16px 20px;
    margin-bottom: 16px;
    font-family: 'Gilroy', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
}
.dashboard__tg-banner--error { background: rgba(229, 57, 53, 0.1); border-color: rgba(229, 57, 53, 0.35); color: #ffb3b1; }
.dashboard__tg-banner--success { background: rgba(46, 160, 67, 0.1); border-color: rgba(46, 160, 67, 0.35); color: #b6f2c3; }

.dashboard__tg-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    background: var(--bg-card, #1A1A1A);
    border: 1px solid var(--border-light, #333333);
    border-radius: var(--radius-modal, 24px);
    padding: 0;
    color: var(--text-primary, #F5F5F5);
    width: min(560px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    font-family: 'Gilroy', 'Inter', sans-serif;
}
.dashboard__tg-dialog::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px); }

.dashboard__tg-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Gilroy', 'Inter', sans-serif;
}
.dashboard__tg-form > [data-tg-step] { display: flex; flex-direction: column; gap: 24px; }
.dashboard__tg-form > [data-tg-step][hidden] { display: none; }

.dashboard__tg-form h3 {
    margin: 0;
    font-family: 'Gilroy', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary, #F5F5F5);
    letter-spacing: -0.01em;
}
.dashboard__tg-form p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary, #A0A0A0);
    line-height: 1.55;
}
.dashboard__tg-form p strong { color: var(--text-primary, #F5F5F5); font-weight: 600; }

.dashboard__tg-field { display: flex; flex-direction: column; gap: 10px; }
.dashboard__tg-form label {
    font-family: 'Gilroy', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted, #777);
    text-transform: none;
    letter-spacing: 0;
}
.dashboard__tg-form input[type="text"] {
    width: 100%;
    height: 64px;
    padding: 0 24px;
    background: var(--bg-input, #2A2A2A);
    border: 2px solid transparent;
    border-radius: var(--radius-input, 24px);
    color: var(--text-primary, #F5F5F5);
    font-family: 'Gilroy', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}
.dashboard__tg-form input[type="text"]::placeholder { color: var(--text-muted, #777); }
.dashboard__tg-form input[type="text"]:hover:not(:focus) { border-color: var(--border-light, #333); }
.dashboard__tg-form input[type="text"]:focus { border-color: var(--accent, #E53935); background: var(--bg-card, #1A1A1A); }

.dashboard__tg-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }

.dashboard__tg-warning {
    background: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.35);
    border-radius: var(--radius-faq, 24px);
    padding: 20px 24px;
    color: #ffd4d1;
    font-size: 15px;
    line-height: 1.55;
}
.dashboard__tg-warning strong { color: #ff7a75; font-weight: 700; }

.dashboard__tg-new-handle {
    display: block;
    background: var(--bg-input, #2A2A2A);
    border-radius: var(--radius-sm, 12px);
    padding: 14px 20px;
    font-family: 'Gilroy', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #F5F5F5);
    word-break: break-all;
}

@media (max-width: 560px) {
    .dashboard__tg-dialog {
        width: calc(100vw - 16px);
        border-radius: var(--radius-md, 16px);
        max-height: calc(100vh - 16px);
    }
    .dashboard__tg-form { padding: 28px 24px; gap: 20px; }
    .dashboard__tg-form > [data-tg-step] { gap: 20px; }
    .dashboard__tg-form h3 { font-size: 22px; }
    .dashboard__tg-form p { font-size: 14px; }
    .dashboard__tg-form input[type="text"] { height: 56px; padding: 0 20px; font-size: 16px; border-radius: 16px; }
    .dashboard__tg-warning { padding: 16px 18px; font-size: 14px; border-radius: 16px; }
    .dashboard__tg-new-handle { font-size: 16px; padding: 12px 16px; }
    .dashboard__tg-form-actions { flex-direction: column-reverse; gap: 10px; }
    .dashboard__tg-form-actions .btn { width: 100%; }
}

/* Account responsive overrides must follow account defaults. */
@media (max-width: 767px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-faq);
    }

    .auth-card__title {
        font-size: 24px;
    }
}
