/* ═══════════════════════════════════════════════════════════════
   PROFILE/DASHBOARD PAGE - Terminal Theme
   ═══════════════════════════════════════════════════════════════ */

/* Note: .container-wide, .info-card, .section-header, .stats-row are now in utilities.css */

/* ═══════════════════════════════════════════════════════════════
   USER INFORMATION CARD
   ═══════════════════════════════════════════════════════════════ */

.user-info-header {
    color: var(--phosphor-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    padding-bottom: 0.5rem;
    text-align: center;
}

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

.user-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-info-label {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-info-value {
    color: var(--phosphor-green);
    font-size: 1rem;
    font-weight: bold;
}

/* Note: .stats-row, .stat-item, .stat-value, .stat-label moved to utilities.css */

/* Hairline rule — matches the phosphor-green accent border used throughout this page */
.section-divider {
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.quota-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 65, 0.15);
    margin-top: 0.5rem;
    overflow: hidden;
}

.quota-bar-fill {
    height: 100%;
    background: var(--phosphor-green);
    transition: width 0.3s ease;
}

.quota-bar-fill.quota-warning {
    background: #ffcc00;
}

.quota-bar-fill.quota-critical {
    background: #ff4444;
}

.quota-detail {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECURITY SECTION
   ═══════════════════════════════════════════════════════════════ */

.security-section {
    margin-top: 2rem;
}

/* Note: Use .section-header.section-header-center from utilities.css for section-title */

.security-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.security-icon {
    font-size: 1.5rem;
    filter: grayscale(100%) brightness(1.5);
}

.security-card-title {
    color: var(--phosphor-green);
    font-size: 1rem;
    font-weight: bold;
}

.security-card-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.security-card-status {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid rgba(0, 255, 65, 0.3);
}

.security-card-action {
    display: inline-block;
    color: var(--phosphor-green);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: lowercase;
}

.security-card-action:hover {
    color: var(--phosphor-green);
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.6);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .user-info-grid {
        grid-template-columns: 1fr;
    }

    /* Note: .stats-row responsive is now in utilities.css */
}

/* ═══════════════════════════════════════════════════════════════
   ALTERNATE USER INFO CARD LAYOUT (Row-Based)
   ═══════════════════════════════════════════════════════════════ */

.user-info-card {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.user-info-row:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   SECURITY CARDS GRID
   ═══════════════════════════════════════════════════════════════ */

.security-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.security-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: rgba(0, 255, 65, 0.4);
    background: rgba(0, 255, 65, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   SESSIONS PAGE
   ═══════════════════════════════════════════════════════════════ */

.sessions-count {
    color: var(--phosphor-green);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Session items use .info-card-dark as base, add layout and current/deleted states */
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.session-item.current-session {
    border-color: rgba(0, 255, 65, 0.5);
    background: rgba(0, 255, 65, 0.05);
}

.session-item.session-deleted {
    border-color: rgba(0, 255, 65, 0.1);
    background: rgba(0, 0, 0, 0.2);
    opacity: 0.6;
}

.session-info {
    flex: 1;
}

.session-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.session-device {
    color: var(--phosphor-green);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
}

.session-badge {
    background: rgba(0, 255, 65, 0.2);
    color: var(--phosphor-green);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: bold;
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-detail-item {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.session-label {
    color: rgba(0, 255, 65, 0.6);
    min-width: 120px;
}

.session-value {
    color: var(--phosphor-green);
}

.session-actions {
    display: flex;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

/* Sessions page responsive */
@media (max-width: 768px) {
    .session-item {
        flex-direction: column;
    }

    .session-actions {
        width: 100%;
    }

    .session-actions .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TOKENS PAGE
   ═══════════════════════════════════════════════════════════════ */

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.token-info {
    flex: 1;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.token-name {
    color: var(--phosphor-green);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: bold;
}

.token-prefix-badge {
    background: rgba(0, 255, 65, 0.08);
    color: var(--text-dim);
    padding: 0.15rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    letter-spacing: 0.05em;
}

/* Action buttons — gap between Regenerate and Revoke */
.token-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap-sm);
}

/* Token reveal */
.token-created-reveal {
    border-color: rgba(0, 255, 65, 0.5);
    background: rgba(0, 255, 65, 0.04);
    margin-bottom: 1.5rem;
}

.token-warning-text {
    color: #ffcc00;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0;
}

.token-value-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.token-raw-input {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--phosphor-green);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.4);
    padding: 0.4rem 0.6rem;
}

.token-created-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .token-item {
        flex-direction: column;
    }

    .token-actions,
    .token-value-display,
    .token-created-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .token-raw-input {
        width: 100%;
    }
}