/**
 * Custom Modal Styles - Stitch Design
 * Supports both light and dark modes
 */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.filled-icon {
    font-variation-settings: 'FILL' 1;
}

/* ==========================================
   MODAL OVERLAY
   ========================================== */
.tsp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.dark .tsp-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}
.tsp-modal-overlay.tsp-modal-visible {
    opacity: 1;
}
.tsp-modal-overlay.tsp-modal-closing {
    opacity: 0;
}

/* ==========================================
   MODAL CONTAINER
   ========================================== */
.tsp-modal-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.5rem;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
    /* Light mode - white background */
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}
/* Dark mode - dark navy background */
.dark .tsp-modal-container {
    background: #0B1120;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.tsp-modal-visible .tsp-modal-container {
    transform: scale(1) translateY(0);
}
.tsp-modal-closing .tsp-modal-container {
    transform: scale(0.95) translateY(10px);
}

/* Background decorations */
.tsp-modal-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}
.dark .tsp-modal-bg-gradient {
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.15), transparent);
}
.tsp-modal-bg-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.05);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.dark .tsp-modal-bg-glow {
    background: rgba(16, 185, 129, 0.08);
}
.tsp-glow-red { background: rgba(239, 68, 68, 0.05); }
.tsp-glow-blue { background: rgba(59, 130, 246, 0.05); }
.dark .tsp-glow-red { background: rgba(239, 68, 68, 0.08); }
.dark .tsp-glow-blue { background: rgba(59, 130, 246, 0.08); }

/* ==========================================
   HEADER
   ========================================== */
.tsp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
    z-index: 10;
    position: relative;
}
.tsp-modal-header-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tsp-modal-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}
.tsp-modal-header-text {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
}
.dark .tsp-modal-header-text {
    color: #64748b;
}
.tsp-modal-close-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}
.dark .tsp-modal-close-btn {
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #162032;
}
.tsp-modal-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.dark .tsp-modal-close-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #ffffff;
}
.tsp-modal-close-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ==========================================
   CONTENT - Scrollable
   ========================================== */
.tsp-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1rem;
    text-align: center;
    z-index: 10;
    position: relative;
}

/* Icon Section */
.tsp-modal-icon-section {
    position: relative;
    margin-bottom: 1rem;
}
.tsp-modal-icon-glow {
    position: absolute;
    inset: -10px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    filter: blur(20px);
}
.dark .tsp-modal-icon-glow {
    background: rgba(16, 185, 129, 0.2);
}
/* Icon glow color variants */
.tsp-modal-icon-glow.tsp-glow-red {
    background: rgba(239, 68, 68, 0.15);
}
.dark .tsp-modal-icon-glow.tsp-glow-red {
    background: rgba(239, 68, 68, 0.2);
}
.tsp-modal-icon-glow.tsp-glow-orange {
    background: rgba(245, 158, 11, 0.15);
}
.dark .tsp-modal-icon-glow.tsp-glow-orange {
    background: rgba(245, 158, 11, 0.2);
}
.tsp-modal-icon-glow.tsp-glow-blue {
    background: rgba(59, 130, 246, 0.15);
}
.dark .tsp-modal-icon-glow.tsp-glow-blue {
    background: rgba(59, 130, 246, 0.2);
}
.tsp-modal-icon-box {
    position: relative;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.dark .tsp-modal-icon-box {
    background: #162032;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.tsp-modal-icon-box .material-symbols-outlined {
    font-size: 2rem;
    color: #10b981;
}
.tsp-icon-pdf .material-symbols-outlined { color: #ef4444; }
.tsp-icon-csv .material-symbols-outlined { color: #3b82f6; }

/* Title & Subtitle */
.tsp-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
    letter-spacing: -0.025em;
}
.dark .tsp-modal-title {
    color: #ffffff;
}
.tsp-modal-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 0.75rem;
}

/* Credits Badge */
.tsp-modal-credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}
.dark .tsp-modal-credits-badge {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
}
.tsp-credits-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.tsp-modal-credits-badge span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}
.dark .tsp-modal-credits-badge span {
    color: #e2e8f0;
}

/* Description */
.tsp-modal-description {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.dark .tsp-modal-description {
    color: #94a3b8;
}
.tsp-modal-description strong {
    color: #1e293b;
}
.dark .tsp-modal-description strong {
    color: #ffffff;
}
.tsp-modal-reset-info {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
}
.dark .tsp-modal-reset-info {
    color: #64748b;
}

/* ==========================================
   FEATURES CARD
   ========================================== */
.tsp-modal-features-card {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.dark .tsp-modal-features-card {
    background: #162032;
    border: 1px solid rgba(30, 41, 59, 0.6);
}
.tsp-features-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.4), transparent);
}
.tsp-features-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.dark .tsp-features-title {
    color: #475569;
}
.tsp-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.tsp-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tsp-feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tsp-feature-icon .material-symbols-outlined {
    font-size: 1rem;
}
.tsp-feature-icon-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.tsp-feature-icon-emerald .material-symbols-outlined { color: #10b981; }
.tsp-feature-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}
.tsp-feature-icon-blue .material-symbols-outlined { color: #3b82f6; }
.tsp-feature-icon-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}
.tsp-feature-icon-purple .material-symbols-outlined { color: #a855f7; }
.tsp-feature-icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}
.tsp-feature-icon-orange .material-symbols-outlined { color: #f97316; }

.tsp-feature-text {
    flex: 1;
    min-width: 0;
}
.tsp-feature-title-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}
.dark .tsp-feature-title-text {
    color: #e2e8f0;
}
.tsp-feature-desc {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin: 0;
}
.dark .tsp-feature-desc {
    color: #64748b;
}

/* ==========================================
   ACTIONS - Bottom Section (not fixed)
   ========================================== */
.tsp-modal-actions {
    padding: 0.75rem 1.25rem 1.25rem;
    background: #ffffff;
    z-index: 20;
}
.dark .tsp-modal-actions {
    background: #0B1120;
}
.tsp-modal-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-decoration: none;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.4);
}
.tsp-modal-btn-primary:hover {
    background: #059669;
}
.tsp-modal-btn-primary .material-symbols-outlined {
    font-size: 1.125rem;
}
/* Link-styled button */
.tsp-modal-btn-link {
    text-decoration: none;
}
.tsp-modal-btn-link:hover {
    text-decoration: none;
}

/* Danger Button - Red for destructive actions */
.tsp-modal-btn-danger {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    text-decoration: none;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 14px -3px rgba(239, 68, 68, 0.4);
}
.tsp-modal-btn-danger:hover {
    background: #dc2626;
}
.tsp-modal-btn-danger .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Secondary Button - Gray/outline for cancel */
.tsp-modal-btn-secondary {
    width: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    background: #f8fafc;
    color: #475569;
}
.dark .tsp-modal-btn-secondary {
    border: 1px solid rgba(51, 65, 85, 0.5);
    background: #162032;
    color: #94a3b8;
}
.tsp-modal-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.dark .tsp-modal-btn-secondary:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #ffffff;
}

/* Row layout for actions (cancel + confirm side by side) */
.tsp-modal-actions-row {
    display: flex;
    gap: 0.75rem;
}
.tsp-modal-actions-row .tsp-modal-btn-primary,
.tsp-modal-actions-row .tsp-modal-btn-danger {
    width: auto;
    flex: 1;
}

/* ==========================================
   ICON COLOR VARIANTS
   ========================================== */
/* Danger/Red icon */
.tsp-icon-danger .material-symbols-outlined {
    color: #ef4444;
}
/* Warning/Orange icon */
.tsp-icon-warning .material-symbols-outlined {
    color: #f59e0b;
}
/* Info/Blue icon */
.tsp-icon-info .material-symbols-outlined {
    color: #3b82f6;
}

/* Status dot color variants */
.tsp-dot-red { background: #ef4444; }
.tsp-dot-orange { background: #f59e0b; }
.tsp-dot-blue { background: #3b82f6; }

/* Orange glow */
.tsp-glow-orange { background: rgba(245, 158, 11, 0.08); }
.dark .tsp-glow-orange { background: rgba(245, 158, 11, 0.12); }

/* Warning card accent colors */
.tsp-accent-red {
    background: linear-gradient(to right, transparent, rgba(239, 68, 68, 0.4), transparent);
}
.tsp-accent-orange {
    background: linear-gradient(to right, transparent, rgba(245, 158, 11, 0.4), transparent);
}
.tsp-accent-blue {
    background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.4), transparent);
}

/* Feature icon red color */
.tsp-feature-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.tsp-feature-icon-red .material-symbols-outlined { color: #ef4444; }

/* Gradient color variants */
.tsp-gradient-red {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.08), transparent);
}
.dark .tsp-gradient-red {
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.15), transparent);
}
.tsp-gradient-orange {
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.08), transparent);
}
.dark .tsp-gradient-orange {
    background: linear-gradient(to bottom, rgba(245, 158, 11, 0.15), transparent);
}
.tsp-gradient-blue {
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.08), transparent);
}
.dark .tsp-gradient-blue {
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.15), transparent);
}

/* ==========================================
   INPUT FIELDS
   ========================================== */
.tsp-modal-input-section {
    margin-top: 1.25rem;
    text-align: left;
}
.tsp-modal-input-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #475569;
}
.dark .tsp-modal-input-label {
    color: #94a3b8;
}
.tsp-text-danger {
    color: #ef4444;
    font-weight: 700;
}
.tsp-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}
.dark .tsp-modal-input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
.tsp-modal-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.dark .tsp-modal-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.tsp-modal-input::placeholder {
    color: #94a3b8;
}
.dark .tsp-modal-input::placeholder {
    color: #64748b;
}

/* Disabled button state */
.tsp-modal-btn-primary:disabled,
.tsp-modal-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.tsp-modal-btn-primary:disabled:hover,
.tsp-modal-btn-danger:disabled:hover {
    transform: none;
}

/* Form section for custom form content */
.tsp-modal-form-section {
    margin-top: 1.25rem;
    text-align: left;
}
.tsp-modal-form-section .tsp-form-group {
    margin-bottom: 1rem;
}
.tsp-modal-form-section .tsp-form-group:last-child {
    margin-bottom: 0;
}
.tsp-modal-form-section .tsp-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}
.dark .tsp-modal-form-section .tsp-form-label {
    color: #d1d5db;
}
.tsp-modal-form-section .tsp-form-input,
.tsp-modal-form-section .tsp-form-textarea,
.tsp-modal-form-section .tsp-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}
.dark .tsp-modal-form-section .tsp-form-input,
.dark .tsp-modal-form-section .tsp-form-textarea,
.dark .tsp-modal-form-section .tsp-form-select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
.tsp-modal-form-section .tsp-form-input:focus,
.tsp-modal-form-section .tsp-form-textarea:focus,
.tsp-modal-form-section .tsp-form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.dark .tsp-modal-form-section .tsp-form-input:focus,
.dark .tsp-modal-form-section .tsp-form-textarea:focus,
.dark .tsp-modal-form-section .tsp-form-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.tsp-modal-form-section .tsp-form-textarea {
    resize: none;
    min-height: 80px;
}
.tsp-modal-form-section .tsp-form-input::placeholder,
.tsp-modal-form-section .tsp-form-textarea::placeholder {
    color: #94a3b8;
}
.dark .tsp-modal-form-section .tsp-form-input::placeholder,
.dark .tsp-modal-form-section .tsp-form-textarea::placeholder {
    color: #64748b;
}

/* Color picker for folder colors */
.tsp-color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tsp-color-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}
.tsp-color-btn:hover {
    transform: scale(1.1);
}
.tsp-color-btn.selected {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Folder list for move-to-folder modal */
.tsp-folder-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tsp-folder-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
    color: #374151;
}
.dark .tsp-folder-option {
    color: #d1d5db;
}
.tsp-folder-option:hover {
    background: #f1f5f9;
}
.dark .tsp-folder-option:hover {
    background: rgba(51, 65, 85, 0.5);
}
.tsp-folder-option .material-symbols-outlined {
    font-size: 1.25rem;
}
.tsp-folder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ==========================================
   STATUS MODALS (Loading, Success, Error, Warning, Info)
   ========================================== */
.tsp-modal-status .tsp-modal-content {
    padding: 2rem 1.5rem 1.5rem;
}
.tsp-modal-status .tsp-modal-title {
    margin-top: 1rem;
}
.tsp-modal-status .tsp-modal-subtitle {
    margin-top: 0.5rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.tsp-modal-status .tsp-modal-actions {
    padding: 0 1.5rem 1.5rem;
}
.tsp-modal-status .tsp-modal-btn-primary {
    width: 100%;
}

/* Loading icon animation */
.tsp-icon-loading .material-symbols-outlined {
    color: #10b981;
}
@keyframes tsp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.tsp-spin {
    animation: tsp-spin 1s linear infinite;
}

/* Success icon */
.tsp-icon-success {
    background: rgba(16, 185, 129, 0.1);
}
.dark .tsp-icon-success {
    background: rgba(16, 185, 129, 0.15);
}
.tsp-icon-success .material-symbols-outlined {
    color: #10b981;
}

/* Pro/Premium icon - gradient gold/amber */
.tsp-icon-pro {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.4);
}
.tsp-icon-pro .material-symbols-outlined {
    color: #ffffff;
    font-size: 2rem;
}

/* Pro badge */
.tsp-modal-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 0.75rem;
}
.dark .tsp-modal-pro-badge {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}
.tsp-modal-pro-badge .material-symbols-outlined {
    font-size: 1rem;
    color: #f59e0b;
}
.tsp-modal-pro-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dark .tsp-modal-pro-badge span {
    color: #fbbf24;
}

/* Pro button - gradient amber */
.tsp-btn-pro {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.4);
}
.tsp-btn-pro:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ==========================================
   CANCEL SUBSCRIPTION MODAL
   ========================================== */
.tsp-modal-cancel-sub {
    max-width: 460px;
}
.tsp-modal-cancel-sub .tsp-modal-content {
    padding: 2rem 1.5rem 1rem;
}
.tsp-modal-cancel-sub .tsp-modal-title {
    font-size: 1.5rem;
    margin-top: 1.25rem;
}
.tsp-modal-cancel-sub .tsp-modal-subtitle {
    max-width: 320px;
    margin: 0.5rem auto 0;
    line-height: 1.5;
}

/* Icon with sub-badge */
.tsp-icon-cancel-sub {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
}
.tsp-icon-cancel-sub .material-symbols-outlined {
    font-size: 2.5rem;
    color: #64748b;
    opacity: 0.7;
}
.dark .tsp-icon-cancel-sub .material-symbols-outlined {
    color: #94a3b8;
}
.tsp-sub-badge {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 2rem;
    height: 2rem;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark .tsp-sub-badge {
    background: #0B1120;
    border-color: #0B1120;
}
.tsp-sub-badge .material-symbols-outlined {
    font-size: 1.125rem;
    color: #10b981;
    opacity: 1;
}

/* Reversible badge */
.tsp-modal-reversible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
}
.tsp-modal-reversible-badge .material-symbols-outlined {
    font-size: 1rem;
    color: #34d399;
}
.tsp-modal-reversible-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lose access section */
.tsp-lose-access-section {
    padding: 0 1.5rem 1rem;
}
.tsp-lose-access-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-align: left;
    padding-left: 0.25rem;
}
.dark .tsp-lose-access-title {
    color: #94a3b8;
}
.tsp-lose-access-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.tsp-lose-access-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
}
.dark .tsp-lose-access-item {
    background: #162032;
    border-color: #334155;
}
.tsp-lose-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tsp-lose-icon .material-symbols-outlined {
    font-size: 1.25rem;
}
.tsp-lose-green {
    background: rgba(16, 185, 129, 0.1);
}
.tsp-lose-green .material-symbols-outlined { color: #10b981; }
.tsp-lose-blue {
    background: rgba(59, 130, 246, 0.1);
}
.tsp-lose-blue .material-symbols-outlined { color: #60a5fa; }
.tsp-lose-orange {
    background: rgba(249, 115, 22, 0.1);
}
.tsp-lose-orange .material-symbols-outlined { color: #fb923c; }

.tsp-lose-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.tsp-lose-text strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.125rem;
}
.dark .tsp-lose-text strong {
    color: #ffffff;
}
.tsp-lose-text span {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .tsp-lose-text span {
    color: #94a3b8;
}
.tsp-lose-x {
    font-size: 1.25rem;
    color: #cbd5e1;
}
.dark .tsp-lose-x {
    color: #475569;
}

/* Cancel subscription actions */
.tsp-cancel-sub-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}
.dark .tsp-cancel-sub-actions {
    border-top-color: rgba(30, 41, 59, 0.8);
    background: rgba(11, 17, 32, 0.95);
}
.tsp-btn-keep {
    height: 3.5rem;
}
.tsp-modal-btn-text {
    width: 100%;
    height: 2.75rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}
.dark .tsp-modal-btn-text {
    color: #94a3b8;
}
.tsp-modal-btn-text:hover {
    color: #374151;
}
.dark .tsp-modal-btn-text:hover {
    color: #e2e8f0;
}
.tsp-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    opacity: 0.4;
    margin-top: 0.25rem;
}
.tsp-secure-badge .material-symbols-outlined {
    font-size: 0.875rem;
    color: #64748b;
}
.dark .tsp-secure-badge .material-symbols-outlined {
    color: #94a3b8;
}
.tsp-secure-badge span {
    font-size: 0.625rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.dark .tsp-secure-badge span {
    color: #94a3b8;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.tsp-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.875rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}
.dark .tsp-toast {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.tsp-toast.tsp-toast-visible {
    transform: translateX(0);
}
.tsp-toast.tsp-toast-closing {
    transform: translateX(120%);
}
.tsp-toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tsp-toast-icon .material-symbols-outlined {
    font-size: 1.5rem;
}
.tsp-toast-success .tsp-toast-icon .material-symbols-outlined { color: #10b981; }
.tsp-toast-error .tsp-toast-icon .material-symbols-outlined { color: #ef4444; }
.tsp-toast-warning .tsp-toast-icon .material-symbols-outlined { color: #f59e0b; }
.tsp-toast-info .tsp-toast-icon .material-symbols-outlined { color: #3b82f6; }

.tsp-toast-content {
    flex: 1;
    min-width: 0;
}
.tsp-toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.125rem;
}
.dark .tsp-toast-title {
    color: #f1f5f9;
}
.tsp-toast-message {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}
.dark .tsp-toast-message {
    color: #94a3b8;
}
.tsp-toast-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.15s;
}
.tsp-toast-close:hover {
    color: #64748b;
}
.dark .tsp-toast-close:hover {
    color: #e2e8f0;
}
.tsp-toast-close .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Cancel button style - more subtle than primary */
.tsp-modal-btn-cancel {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: transparent;
    color: #64748b;
}
.dark .tsp-modal-btn-cancel {
    color: #94a3b8;
}
.tsp-modal-btn-cancel:hover {
    background: #f1f5f9;
    color: #374151;
}
.dark .tsp-modal-btn-cancel:hover {
    background: rgba(51, 65, 85, 0.5);
    color: #e2e8f0;
}

/* ==========================================
   COMPACT MODAL FEATURES (simpler than full features card)
   ========================================== */
.tsp-modal-compact .tsp-modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}
.tsp-modal-compact .tsp-feature-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}
.dark .tsp-modal-compact .tsp-feature-row {
    background: rgba(30, 41, 59, 0.5);
}
.tsp-modal-compact .tsp-feature-row .material-symbols-outlined {
    font-size: 1.125rem;
    color: #10b981;
}
.tsp-modal-compact .tsp-feature-row span:last-child {
    font-size: 0.8125rem;
    color: #475569;
}
.dark .tsp-modal-compact .tsp-feature-row span:last-child {
    color: #cbd5e1;
}

/* ==========================================
   MOBILE - Smaller screens
   ========================================== */
@media (max-width: 440px) {
    .tsp-modal-overlay {
        padding: 0.75rem;
    }
    .tsp-modal-container {
        max-width: 100%;
        border-radius: 1.25rem;
    }
    .tsp-modal-content {
        padding: 0.5rem 1rem 0.75rem;
    }
    .tsp-modal-status .tsp-modal-content {
        padding: 1.5rem 1rem 1rem;
    }
    .tsp-modal-status .tsp-modal-actions {
        padding: 0 1rem 1rem;
    }
    .tsp-modal-icon-box {
        width: 3.5rem;
        height: 3.5rem;
    }
    .tsp-modal-icon-box .material-symbols-outlined {
        font-size: 1.75rem;
    }
    .tsp-modal-title {
        font-size: 1.25rem;
    }
    .tsp-modal-features-card {
        padding: 0.875rem;
    }
    .tsp-feature-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    .tsp-feature-icon .material-symbols-outlined {
        font-size: 0.875rem;
    }
    .tsp-modal-actions {
        padding: 0.75rem 1rem 1rem;
    }
    .tsp-modal-btn-primary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}
