/* ============================================
   SETTINGS PAGE STYLES
   Matches JK Crypto Strategies Dashboard Theme
   ============================================ */

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   SETTINGS PAGE LAYOUT
   ============================================ */
.settings-page {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   SETTINGS TABS (Navigation)
   ============================================ */
.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.settings-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.settings-tab svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.settings-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.settings-tab.active {
    background: rgba(247, 147, 26, 0.1);
    color: var(--bitcoin-orange);
}

.settings-tab.active svg {
    color: var(--bitcoin-orange);
}

/* ============================================
   SETTINGS CONTENT
   ============================================ */
.settings-content {
    flex: 1;
    min-width: 0;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.panel-header {
    margin-bottom: 32px;
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.panel-header p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ============================================
   SETTINGS SECTIONS
   ============================================ */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-dark);
}

.section-title.danger {
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-zone-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    color: var(--error);
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px 0;
}

.section-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label,
.form-group .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.1);
}

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

.form-input.readonly {
    background: var(--bg-darkest);
    color: var(--text-muted);
    cursor: not-allowed;
    padding-right: 40px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.form-select optgroup {
    font-weight: 600;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-lock {
    position: absolute;
    right: 12px;
    top: 38px;
    color: var(--text-muted);
}

.field-lock svg {
    width: 18px;
    height: 18px;
}

.helper-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.error-message {
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: 6px;
}

.error-message.hidden {
    display: none;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group .country-code {
    width: 120px;
    min-width: 120px;
}

.phone-input-group .form-input {
    flex: 1;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-input-group .form-input {
    padding-right: 48px;
}

.password-input-group .btn-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.toggle-password .eye-closed.hidden,
.toggle-password.showing .eye-open {
    display: none;
}

.toggle-password.showing .eye-closed {
    display: block;
}

/* Password Strength */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-darkest);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.strength-fill.weak { width: 25%; background: var(--error); }
.strength-fill.fair { width: 50%; background: var(--warning); }
.strength-fill.good { width: 75%; background: #3B82F6; }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.strength-text.weak { color: var(--error); }
.strength-text.fair { color: var(--warning); }
.strength-text.good { color: #3B82F6; }
.strength-text.strong { color: var(--success); }

/* Password Requirements */
.password-requirements {
    list-style: none;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.password-requirements li .req-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid .req-icon {
    background: var(--success);
}

.password-requirements li.valid .req-icon::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-bottom: 2px;
}

/* Info Notice */
.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid var(--border-orange);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.info-notice svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--bitcoin-orange);
    margin-top: 1px;
}

.info-notice span {
    flex: 1;
    line-height: 1.5;
}

.info-notice a {
    color: var(--bitcoin-orange);
}

/* Warning Notice - Enhanced styling for legal/tax warnings */
.info-notice.warning-notice {
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.4);
}

.info-notice.warning-notice .warning-triangle-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--bitcoin-orange);
    flex-shrink: 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.radio-option:hover {
    border-color: var(--border-light);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-checkmark {
    border-color: var(--bitcoin-orange);
    background: var(--bitcoin-orange);
}

.radio-option input[type="radio"]:checked + .radio-checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label strong {
    color: var(--bitcoin-orange);
}

.radio-checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
    margin-top: 2px;
}

.radio-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-fast);
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-label strong {
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.radio-label small {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary,
.btn-secondary,
.btn-text,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--bitcoin-orange);
    color: white;
}

.btn-primary:hover {
    background: var(--bitcoin-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-orange);
}

.btn-primary:disabled {
    background: var(--text-disabled);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

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

.btn-text {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
}

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

.btn-danger {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-primary svg,
.btn-secondary svg,
.btn-danger svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   PROFILE PICTURE SECTION
   ============================================ */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.current-avatar {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.avatar-actions .btn-secondary {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* ============================================
   SECURITY STATUS CARD
   ============================================ */
.security-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
}

.status-indicator {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator svg {
    width: 24px;
    height: 24px;
}

.status-indicator.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.status-indicator.enabled {
    background: var(--success-bg);
    color: var(--success);
}

.status-content {
    flex: 1;
}

.status-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.status-content h3 span {
    color: var(--text-muted);
}

.status-content h3 span.enabled {
    color: var(--success);
}

.status-content p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* 2FA Options */
.twofa-options {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twofa-options.hidden {
    display: none;
}

.twofa-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.twofa-method:hover {
    border-color: var(--border-light);
}

.method-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bitcoin-orange);
}

.method-icon svg {
    width: 22px;
    height: 22px;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.recommended-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 10px;
    margin-top: 6px;
}

/* Authenticator Setup */
.authenticator-setup {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border-orange);
    border-radius: 10px;
}

.authenticator-setup.hidden {
    display: none;
}

.setup-step h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.setup-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img,
.qr-code canvas {
    width: 100%;
    height: 100%;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--bg-dark);
    font-size: 0.8125rem;
}

.manual-entry {
    text-align: center;
    margin-top: 20px;
}

.manual-entry p {
    margin-bottom: 12px;
}

.secret-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
}

.secret-code code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bitcoin-orange);
    letter-spacing: 2px;
}

/* Verification Code Input */
.verification-code-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.code-digit {
    width: 48px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-fast);
}

.code-digit:focus {
    outline: none;
    border-color: var(--bitcoin-orange);
    background: var(--bg-dark);
}

.code-separator {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin: 0 4px;
}

.setup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

/* ============================================
   SESSIONS LIST
   ============================================ */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
}

.session-item.current {
    border-color: var(--border-orange);
}

.session-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.session-icon svg {
    width: 20px;
    height: 20px;
}

.session-info {
    flex: 1;
}

.session-device {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.session-device .current-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--success-bg);
    color: var(--success);
    border-radius: 10px;
    margin-left: 8px;
}

.session-details {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.session-actions .btn-text {
    color: var(--error);
}

.session-actions .btn-text:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Loading States */
.session-loading,
.history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   LOGIN HISTORY
   ============================================ */
.login-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: 8px;
}

/* Compact single-line layout */
.history-item.compact {
    padding: 10px 16px;
}

.history-item.compact .history-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.history-status {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
}

.history-status.success {
    background: var(--success);
}

.history-status.failed {
    background: var(--error);
}

.history-info {
    flex: 1;
    min-width: 0;
}

/* Compact layout text styles */
.history-status-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.history-separator {
    color: var(--text-disabled);
    margin: 0 8px;
    font-size: 0.75rem;
}

.history-browser {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.history-ip {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-style: normal;
}

.history-location {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-device {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Load More button styling */
#loadMoreHistory {
    display: none;
    margin-top: 8px;
}

/* Responsive: stack on small screens */
@media (max-width: 700px) {
    .history-item.compact .history-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .history-separator {
        display: none;
    }
    
    .history-item.compact .history-info span {
        display: block;
    }
    
    .history-ip,
    .history-location {
        font-size: 0.75rem;
    }
}

/* ============================================
   NOTIFICATION TOGGLES
   ============================================ */
.notification-toggles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border-radius: 10px;
}

.notification-info {
    flex: 1;
}

.notification-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch label {
    width: 48px;
    height: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input[type="checkbox"]:checked + label {
    background: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
}

.toggle-switch input[type="checkbox"]:checked + label::after {
    left: 24px;
    background: white;
}

.toggle-switch input[type="checkbox"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}

.always-on-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================================
   SUBSCRIPTION CARD
   ============================================ */
.subscription-card {
    padding: 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
}

.subscription-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tier-badge {
    padding: 4px 12px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.subscription-tier h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.active-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(247, 147, 26, 0.1);
    border: 1px solid var(--border-orange);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--bitcoin-orange);
}

.service-badge svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   EXPORT OPTIONS
   ============================================ */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bitcoin-orange);
    cursor: pointer;
}

.export-option label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ============================================
   DANGER ZONE
   ============================================ */
.danger-zone {
    border-color: rgba(239, 68, 68, 0.3);
}

.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.danger-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.danger-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   SETTINGS ACTIONS (Save Button Area)
   ============================================ */
.settings-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.save-status {
    font-size: 0.875rem;
    color: var(--success);
}

.save-status.error {
    color: var(--error);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    overflow: hidden;
}

.modal-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bitcoin-orange);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px 24px 24px;
}

.modal-body p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.modal-body ul {
    margin: 0 0 20px 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.modal-body ul li {
    margin-bottom: 8px;
}

.warning-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #EF4444;
}

.warning-text svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
}

/* Delete Account Liability Notice */
.delete-liability-notice {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.delete-liability-notice strong {
    color: var(--error);
}

/* Delete Account Acknowledgment Checkboxes */
.delete-acknowledgments {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.delete-acknowledgments .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.delete-acknowledgments .checkbox-label:hover {
    border-color: var(--border-light);
}

.delete-acknowledgments .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: var(--error);
    cursor: pointer;
}

.delete-acknowledgments .checkbox-label span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.delete-acknowledgments .checkbox-label:has(input:checked) {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.delete-acknowledgments .checkbox-label:has(input:checked) span {
    color: var(--text-primary);
}

.confirm-input {
    margin-top: 20px;
}

.confirm-input label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.confirm-input input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.confirm-input input:focus {
    outline: none;
    border-color: var(--error);
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px 24px;
}

.modal-actions button {
    flex: 1;
}

/* Backup Codes Display */
.backup-codes-display {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 10px;
}

.backup-codes-display code {
    padding: 10px;
    background: var(--bg-card);
    border-radius: 6px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

/* ============================================
   SPINNER
   ============================================ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-dark);
    border-top-color: var(--bitcoin-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 900px) {
    .settings-page {
        flex-direction: column;
    }

    .settings-tabs {
        flex-direction: row;
        overflow-x: auto;
        min-width: 100%;
        position: static;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-dark);
        margin-bottom: 24px;
        -webkit-overflow-scrolling: touch;
    }

    .settings-tabs::-webkit-scrollbar {
        display: none;
    }

    .settings-tab {
        flex-shrink: 0;
        padding: 10px 14px;
    }

    .settings-tab span {
        white-space: nowrap;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-picture-section {
        flex-direction: column;
        text-align: center;
    }

    .avatar-actions {
        align-items: center;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .danger-action {
        flex-direction: column;
        align-items: flex-start;
    }

    .danger-action .btn-danger {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .settings-section {
        padding: 16px;
    }

    .verification-code-input {
        gap: 4px;
    }

    .code-digit {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
    }

    .session-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-actions {
        width: 100%;
    }

    .session-actions .btn-text {
        width: 100%;
        justify-content: center;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toggle-switch {
        width: 100%;
        justify-content: space-between;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ============================================
   CONDITIONAL DISPLAY (Service-based)
   ============================================ */
.mining-only,
.education-only,
.consulting-only {
    /* These will be shown/hidden via JavaScript based on user services */
}

/* Hide service-specific items by default, JS will show them */
body:not(.has-mining) .mining-only {
    display: none;
}

body:not(.has-education) .education-only {
    display: none;
}

body:not(.has-consulting) .consulting-only {
    display: none;
}

/* ============================================
   IMAGE CROP MODAL
   ============================================ */
.crop-modal {
    max-width: 560px;
}

.crop-modal-body {
    padding: 0 24px 24px 24px;
}

.crop-instructions {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.cropper-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.cropper-container {
    width: 320px;
    height: 320px;
    background: var(--bg-darkest);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* Cropper.js Overrides for Dark Theme */
.cropper-container .cropper-container {
    background: var(--bg-darkest);
}

.cropper-container .cropper-view-box {
    border-radius: 50%;
    outline: none;
    box-shadow: 0 0 0 1px var(--bitcoin-orange);
}

.cropper-container .cropper-face {
    background-color: transparent;
}

.cropper-container .cropper-dashed {
    border-color: rgba(247, 147, 26, 0.5);
}

.cropper-container .cropper-center {
    display: none;
}

.cropper-container .cropper-line {
    background-color: var(--bitcoin-orange);
    opacity: 0.3;
}

.cropper-container .cropper-point {
    background-color: var(--bitcoin-orange);
    width: 8px;
    height: 8px;
    opacity: 1;
}

.cropper-container .cropper-point.point-se {
    width: 12px;
    height: 12px;
}

.cropper-container .cropper-modal {
    background: rgba(0, 0, 0, 0.6);
}

/* Circle crop guide */
.cropper-container .cropper-crop-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed rgba(247, 147, 26, 0.5);
    pointer-events: none;
}

/* Preview */
.crop-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.crop-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crop-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--bg-card) 100%);
    overflow: hidden;
}

.crop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom Controls */
.crop-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-dark);
    border-radius: 10px;
    margin: 0 auto;
    max-width: 320px;
}

.crop-control-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-secondary);
}

.crop-control-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--bitcoin-orange);
}

.zoom-slider-wrapper {
    flex: 1;
    max-width: 180px;
}

.zoom-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-darkest);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bitcoin-orange);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(247, 147, 26, 0.3);
    transition: transform var(--transition-fast);
}

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--bitcoin-orange);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(247, 147, 26, 0.3);
}

.zoom-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--bitcoin-orange) 0%, var(--bg-darkest) 0%);
    height: 6px;
    border-radius: 3px;
}

.zoom-slider::-moz-range-track {
    background: var(--bg-darkest);
    height: 6px;
    border-radius: 3px;
}

/* Responsive adjustments for crop modal */
@media (max-width: 600px) {
    .crop-modal {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .cropper-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .cropper-container {
        width: 280px;
        height: 280px;
    }
    
    .crop-preview-wrapper {
        flex-direction: row;
        gap: 12px;
    }
    
    .crop-preview {
        width: 64px;
        height: 64px;
    }
}

/* ============================================
   STATE AUTOCOMPLETE DROPDOWN
   ============================================ */

/* ============================================
   CURRENCY SEGMENTED CONTROL
   ============================================ */
.currency-segmented-control {
    display: flex;
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 4px;
    margin-top: 8px;
}

.currency-segmented-control input[type="radio"] {
    display: none;
}

.currency-segmented-control .segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
    z-index: 1;
    position: relative;
}

.currency-segmented-control .segment-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.currency-segmented-control .segment:hover .segment-label {
    color: var(--text-secondary);
}

.currency-segmented-control input[type="radio"]:checked + .segment .segment-label {
    color: white;
}

/* Animated highlight background */
.currency-segmented-control .segment-highlight {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(33.333% - 2.67px);
    height: calc(100% - 8px);
    background: var(--bitcoin-orange);
    border-radius: 8px;
    transition: transform 0.25s ease;
    z-index: 0;
}

/* Move highlight based on selection */
.currency-segmented-control input#currencyFiat:checked ~ .segment-highlight {
    transform: translateX(0);
}

.currency-segmented-control input#currencyBtc:checked ~ .segment-highlight {
    transform: translateX(100%);
}

.currency-segmented-control input#currencyBoth:checked ~ .segment-highlight {
    transform: translateX(200%);
}

/* Fiat Currency Selector */
.fiat-currency-selector {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-dark);
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

.fiat-currency-selector.hidden {
    display: none;
}

.fiat-currency-selector label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.fiat-currency-selector .form-select {
    width: 100%;
}

/* ============================================
   STATE AUTOCOMPLETE DROPDOWN
   ============================================ */
.state-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.state-autocomplete-input {
    padding-right: 40px;
    cursor: pointer;
}

.state-autocomplete-input:focus {
    cursor: text;
}

.state-dropdown-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.state-autocomplete-wrapper.open .state-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--bitcoin-orange);
}

.state-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
}

.state-autocomplete-wrapper.open .state-dropdown {
    display: block;
}

.state-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.state-dropdown-item:first-child {
    border-radius: 7px 7px 0 0;
}

.state-dropdown-item:last-child {
    border-radius: 0 0 7px 7px;
}

.state-dropdown-item:only-child {
    border-radius: 7px;
}

.state-dropdown-item:hover,
.state-dropdown-item.highlighted {
    background: var(--bg-card-hover);
}

.state-dropdown-item.selected {
    background: rgba(247, 147, 26, 0.15);
}

.state-dropdown-item.selected:hover,
.state-dropdown-item.selected.highlighted {
    background: rgba(247, 147, 26, 0.25);
}

.state-name {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.state-abbr {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    background: var(--bg-darkest);
    padding: 2px 8px;
    border-radius: 4px;
}

.state-dropdown-item.selected .state-abbr {
    background: rgba(247, 147, 26, 0.2);
    color: var(--bitcoin-orange);
}

.state-dropdown-empty {
    padding: 16px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Highlight matching text */
.state-name .match {
    color: var(--bitcoin-orange);
    font-weight: 600;
}

/* Custom scrollbar for state dropdown */
.state-dropdown::-webkit-scrollbar {
    width: 8px;
}

.state-dropdown::-webkit-scrollbar-track {
    background: var(--bg-darkest);
    border-radius: 0 8px 8px 0;
}

.state-dropdown::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

.state-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   SUBSCRIPTIONS TAB
   ============================================ */

/* Subscription Status Cards */
.sub-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sub-status-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-status-icon svg {
    width: 24px;
    height: 24px;
}

.sub-status-icon.active {
    background: var(--success-bg);
    color: var(--success);
}

.sub-status-icon.inactive {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.sub-status-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.sub-status-icon.expired {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.sub-status-content {
    flex: 1;
    min-width: 0;
}

.sub-status-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sub-status-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sub-status-text {
    font-weight: 500;
}

.sub-renewal-text {
    font-size: 0.8125rem !important;
    color: var(--text-secondary) !important;
    margin-top: 4px;
}

.sub-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* Plan Selection Cards */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.plan-card {
    padding: 24px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

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

.plan-card.featured {
    border-color: var(--bitcoin-orange);
    background: rgba(247, 147, 26, 0.04);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 14px;
    background: var(--bitcoin-orange);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-select-btn {
    width: 100%;
}

/* Consulting Purchase Cards */
.consulting-purchase-card {
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    margin-bottom: 16px;
}

.purchase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.purchase-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.purchase-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.purchase-badge.full-package {
    background: rgba(247, 147, 26, 0.15);
    color: var(--bitcoin-orange);
}

.purchase-badge.partial {
    background: rgba(96, 165, 250, 0.15);
    color: #60A5FA;
}

.purchase-elements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.element-item.purchased {
    color: var(--text-secondary);
}

.element-item.purchased svg {
    color: var(--success);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.element-item.not-purchased {
    opacity: 0.4;
}

.element-item.not-purchased svg {
    color: var(--text-disabled);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Support Status */
.support-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-darkest);
    border-radius: 8px;
    flex-wrap: wrap;
}

.support-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.support-badge.active {
    background: var(--success-bg);
    color: var(--success);
}

.support-badge.expired {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.support-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex: 1;
}

/* Billing History */
.billing-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.billing-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-dark);
}

.billing-item:last-child {
    border-bottom: none;
}

.billing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.billing-desc {
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.billing-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.billing-amount {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.billing-amount.refunded {
    color: var(--error);
    text-decoration: line-through;
}

.billing-invoice-link {
    color: var(--bitcoin-orange);
    text-decoration: none;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.billing-invoice-link:hover {
    text-decoration: underline;
}

/* Small button variant */
.btn-sm {
    padding: 6px 14px !important;
    font-size: 0.8125rem !important;
}

/* Consulting Support Subscribe Plan Cards (2-column grid) */
.consulting-support-plan-cards {
    grid-template-columns: repeat(2, 1fr) !important;
}

.consulting-support-subscribe-pkg {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.consulting-support-subscribe-pkg:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ============================================
   SUBSCRIPTIONS TAB — RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .plan-cards {
        grid-template-columns: 1fr;
    }

    .consulting-support-plan-cards {
        grid-template-columns: 1fr !important;
    }

    .sub-status-card {
        flex-direction: column;
        text-align: center;
    }

    .sub-actions {
        align-items: center;
        width: 100%;
    }

    .sub-actions .btn-primary,
    .sub-actions .btn-secondary {
        width: 100%;
    }

    .purchase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .support-status {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Legal Links */
.settings-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 0 0;
    margin: 0 0 -8px;
    flex-basis: 100%;
}
.settings-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.settings-legal-links a:hover {
    color: #F7931A;
}
.settings-legal-links span {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}
