/* EliteWriters Stylesheet */
/* Version: 1.0.0 */

:root {
    /* Core Colors */
    --green:       #04C211;
    --green-dark:  #039a0d;
    --green-light: #e6fce8;
    --green-glow:  rgba(4, 194, 17, 0.4);

    /* Semantic Colors */
    --success:       #04C211;
    --success-light: #e6fce8;
    --error:         #dc2626;
    --error-light:   #fee2e2;
    --warning:       #f59e0b;
    --warning-light: #fef3c7;
    --info:          #3b82f6;
    --info-light:    #dbeafe;

    /* Light Theme (Default) */
    --bg-primary:    #f5f5f5;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --bg-input:      #ffffff;
    --text-primary:  #111111;
    --text-secondary:#444444;
    --text-muted:    #777777;
    --border-color:  #e0e0e0;
    --shadow-color:  rgba(0,0,0,0.08);

    /* Common */
    --font-sans: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;

    --shadow-sm: 0 1px 3px var(--shadow-color);
    --shadow-md: 0 4px 16px var(--shadow-color);
    --shadow-lg: 0 8px 32px var(--shadow-color);

    --transition: 150ms ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #14141f;
    --bg-card:       linear-gradient(135deg, #0a0a12 0%, #14141f 100%);
    --bg-input:      linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --text-primary:  #e8e8e8;
    --text-secondary:#a0a0b0;
    --text-muted:    #64748b;
    --border-color:  #2d2d44;
    --shadow-color:  rgba(0,0,0,0.3);

    /* Semantic Colors - Dark Theme */
    --success:       #22c55e;
    --success-light: rgba(34, 197, 94, 0.15);
    --error:         #ef4444;
    --error-light:   rgba(239, 68, 68, 0.15);
    --warning:       #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --info:          #60a5fa;
    --info-light:    rgba(96, 165, 250, 0.15);
}

/* Legacy compatibility */
:root {
    --black:       var(--text-primary);
    --grey-900:    #1a1a1a;
    --grey-700:    var(--text-secondary);
    --grey-500:    var(--text-muted);
    --grey-300:    #cccccc;
    --grey-100:    var(--bg-primary);
    --white:       var(--bg-secondary);
    --border:      var(--border-color);
}

[data-theme="dark"] {
    --grey-900:    #2d2d44;
    --grey-300:    #475569;
    --grey-100:    var(--bg-primary);
    --white:       var(--bg-secondary);
    --border:      var(--border-color);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ── Container ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navbar ── */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar-brand {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
}

.navbar-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.navbar-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.navbar-nav .btn {
    padding: 7px 16px;
    font-size: 13px;
}

.navbar-nav .nav-logout-form {
    display: flex;
    align-items: center;
    margin: 0;
}

/* ── Theme Toggle ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--green);
    box-shadow: 0 0 15px var(--green-glow);
    transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ── Main ── */
.main-content {
    padding: 36px 0 60px;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #000;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

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

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

.btn-success {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: #b2f2b7;
}

.btn-success:hover {
    background: #c8f7cb;
}

.btn-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
}

.btn-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.btn-warning:hover {
    background: #fef3c7;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(4, 194, 17, 0.12);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ── Sci-Fi Form Enhancements ── */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-label::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--green), transparent);
    margin-top: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: all 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

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

.form-control:hover {
    border-color: var(--green);
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 20px var(--green-glow), inset 0 0 15px rgba(4, 194, 17, 0.05);
}

.form-control:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-hint {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-hint::before {
    content: 'ℹ';
    color: var(--green);
    font-weight: 700;
}

/* ── Select Dropdowns ── */
select.form-control {
    appearance: none;
    background-color: var(--bg-input);
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-control option {
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 8px;
}

[data-theme="dark"] select.form-control {
    background-color: var(--bg-input);
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="dark"] select.form-control option {
    background: #1a1a2e;
    color: #e0e0e0;
}

[data-theme="dark"] select.form-control option:hover,
[data-theme="dark"] select.form-control option:focus {
    background: #2a2a4e;
}

/* ── Expertise Checkboxes ── */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

.expertise-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.expertise-checkbox:hover {
    border-color: var(--green);
    box-shadow: 0 0 15px var(--green-glow);
    transform: translateX(4px);
}

.expertise-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: var(--bg-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.expertise-checkbox input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.expertise-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--black);
    font-weight: 800;
    font-size: 12px;
}

.expertise-checkbox span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.expertise-checkbox:has(input[type="checkbox"]:checked) {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(4, 194, 17, 0.1) 0%, rgba(4, 194, 17, 0.05) 100%);
    box-shadow: 0 0 20px var(--green-glow);
}

/* ── CV Upload ── */
.cv-upload-wrapper {
    position: relative;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cv-upload-wrapper:hover {
    border-color: var(--green);
    box-shadow: 0 0 25px var(--green-glow);
}

.cv-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cv-upload-icon {
    font-size: 32px;
    color: var(--green);
    margin-bottom: 8px;
    text-shadow: 0 0 15px var(--green-glow);
}

.cv-upload-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.cv-upload-hint {
    color: var(--text-muted);
    font-size: 12px;
}

.cv-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(4, 194, 17, 0.15) 0%, rgba(4, 194, 17, 0.1) 100%);
    border: 1px solid var(--green);
    border-radius: 4px;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 0 15px var(--green-glow);
}

.cv-status::before {
    content: '◆';
    color: var(--green);
    animation: status-pulse 2s ease-in-out infinite;
}

/* ── Submit Button ── */
.btn-submit-application {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #04C211 0%, #16a34a 100%);
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-submit-application::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(4, 194, 17, 0.4);
}

.btn-submit-application:hover::before {
    left: 100%;
}

.btn-submit-application:active {
    transform: translateY(0);
}

/* ── Pay Later Button ── */
.form-actions-payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-pay-later {
    width: 100%;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pay-later:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* ── Complete Profile Card ── */
.complete-profile-card {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.complete-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    box-shadow: 0 0 20px var(--green-glow);
}

.complete-profile-header {
    margin-bottom: 28px;
    text-align: center;
}

.complete-profile-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.complete-profile-title span {
    color: var(--green);
    text-shadow: 0 0 15px var(--green-glow);
}

[data-theme="dark"] .complete-profile-title span {
    text-shadow: 0 0 15px var(--green-glow);
}

.complete-profile-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Alerts ── */
.alert {
    padding: 13px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.alert-success {
    background: linear-gradient(135deg, rgba(4, 194, 17, 0.1) 0%, rgba(4, 194, 17, 0.05) 100%);
    color: var(--green-dark);
    border-left-color: var(--green);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #ef4444;
    border-left-color: #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #f59e0b;
    border-left-color: #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
    border-left-color: #3b82f6;
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: left;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-value span {
    color: var(--green);
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Work List ── */
.work-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.work-item {
    background: var(--bg-secondary);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.work-item:hover {
    background: var(--bg-primary);
}

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

.work-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    position: relative;
    overflow: hidden;
    border: 1px solid;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badge-shimmer 3s infinite;
}

@keyframes badge-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.badge-secondary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #a0a0a0;
    border-color: #2d3748;
    box-shadow: 0 0 8px rgba(45, 55, 72, 0.4);
}

.badge-primary {
    background: linear-gradient(135deg, #0c1b3a 0%, #1e3a5f 100%);
    color: #60a5fa;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.badge-info {
    background: linear-gradient(135deg, #0a1f2e 0%, #164e63 100%);
    color: #22d3ee;
    border-color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.1);
}

.badge-warning {
    background: linear-gradient(135deg, #2a1a0a 0%, #713f12 100%);
    color: #fbbf24;
    border-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.1);
}

.badge-success {
    background: linear-gradient(135deg, #052e16 0%, #14532d 100%);
    color: #4ade80;
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4), inset 0 0 10px rgba(34, 197, 94, 0.1);
}

.badge-danger {
    background: linear-gradient(135deg, #2a0a0a 0%, #7f1d1d 100%);
    color: #f87171;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), inset 0 0 10px rgba(239, 68, 68, 0.1);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 80px 24px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--green);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Auth ── */
.auth-container {
    max-width: 420px;
    margin: 48px auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ── Work Detail ── */
.work-detail-header {
    margin-bottom: 28px;
}

.work-detail-header h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.work-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

.work-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.work-detail-meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.work-detail-meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.work-content-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin: 20px 0;
}

.work-content-box h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

/* ── Filters ── */
.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #000;
    box-shadow: 0 0 15px var(--green-glow);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.page-link {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.page-link:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.page-link.active {
    background: var(--green);
    border-color: var(--green);
    color: #000;
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Divider ── */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar .container {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: 8px 16px;
    }

    .navbar-brand {
        font-size: 15px;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 4px;
    }

    .navbar-nav a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .navbar-nav .btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .navbar-nav a:not(.btn) span {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .card {
        padding: 20px;
    }

    .auth-card {
        padding: 28px 24px;
    }
}

/* ── Revision Cards ── */
.revision-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.revision-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.revision-pending {
    background: #fff3cd;
    border-left-color: #f39c12 !important;
}

.revision-completed {
    background: #f8f9fa;
    border-left-color: #28a745 !important;
}

.revision-pending-text {
    color: #856404;
}

.revision-completed-text {
    color: #155724;
}

.revision-pending-badge {
    background: #f39c12;
}

.revision-completed-badge {
    background: #28a745;
}

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

@media (max-width: 600px) {
    .plan-cards {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        padding: 6px 12px;
    }

    .navbar-brand {
        font-size: 14px;
        margin-right: 8px;
    }

    .navbar-nav a {
        font-size: 12px;
        padding: 3px 6px;
    }

    .navbar-nav .btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-left: 4px;
    }
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.plan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--shadow-color) 2px,
        var(--shadow-color) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.plan-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
    transform: translateY(-2px);
}

/* Dark mode specific plan card styling */
[data-theme="dark"] .plan-card {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    border: 1px solid #2d2d44;
}

/* ── Pending Approval Page ── */
.pending-approval-card {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.pending-approval-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.pending-approval-title {
    margin-bottom: 15px;
}

.pending-approval-message {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

[data-theme="dark"] .pending-approval-message {
    color: var(--text-muted);
}

.pending-approval-info-box {
    background: #fff3cd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

[data-theme="dark"] .pending-approval-info-box {
    background: var(--warning-light);
}

.pending-approval-info-text {
    color: #856404;
    margin: 0;
}

[data-theme="dark"] .pending-approval-info-text {
    color: var(--warning);
}

.pending-approval-status-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.pending-approval-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.pending-approval-status-row:last-child {
    margin-bottom: 0;
}

.pending-approval-label {
    color: var(--text-muted);
}

.plan-badge-styled {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.pending-approval-payment-status {
    font-weight: 500;
}

.pending-approval-payment-success {
    color: var(--success);
}

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

.pending-approval-payment-link {
    margin-top: 15px;
    text-align: center;
}

.pending-approval-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pending-approval-logout-form {
    display: inline;
}

.pending-approval-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #999;
}

[data-theme="dark"] .pending-approval-footer {
    color: var(--text-muted);
}

.btn-sm {
    font-size: 14px;
}

[data-theme="dark"] .plan-card::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.02) 2px,
        rgba(255,255,255,0.02) 4px
    );
    opacity: 1;
}

[data-theme="dark"] .plan-card:hover {
    border-color: #4a4a6a;
    box-shadow: 0 0 20px rgba(100, 100, 150, 0.2);
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected states with tier-specific neon glows */
.plan-card[data-plan="standard"]:has(input[type="radio"]:checked) {
    border-color: #a0a0a0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.4), inset 0 0 20px rgba(192, 192, 192, 0.1);
}

.plan-card[data-plan="premium"]:has(input[type="radio"]:checked) {
    border-color: #d4a574;
    background: linear-gradient(135deg, #1a1a2e 0%, #3d2818 100%);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.4), inset 0 0 20px rgba(212, 165, 116, 0.1);
}

.plan-card[data-plan="elite"]:has(input[type="radio"]:checked) {
    border-color: #c084fc;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.5), inset 0 0 25px rgba(147, 51, 234, 0.15);
}

.plan-card[data-plan="ultimate"]:has(input[type="radio"]:checked) {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2a1f0a 0%, #4a3a1a 100%);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.2);
    animation: selected-gold-pulse 2s ease-in-out infinite;
}

@keyframes selected-gold-pulse {
    0%, 100% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.7), inset 0 0 35px rgba(255, 215, 0, 0.3); }
}

/* Selected indicator dot */
.plan-card:has(input[type="radio"]:checked)::after {
    content: '◆ SELECTED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--green);
    animation: selected-flicker 1.5s ease-in-out infinite;
}

[data-theme="dark"] .plan-card:has(input[type="radio"]:checked)::after {
    text-shadow: 0 0 10px var(--green-glow);
}

@keyframes selected-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Light mode selected states - green tinted */
.plan-card[data-plan="standard"]:has(input[type="radio"]:checked),
.plan-card[data-plan="premium"]:has(input[type="radio"]:checked),
.plan-card[data-plan="elite"]:has(input[type="radio"]:checked),
.plan-card[data-plan="ultimate"]:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, rgba(4, 194, 17, 0.05) 0%, rgba(4, 194, 17, 0.1) 100%);
    box-shadow: 0 0 25px var(--green-glow);
}

.plan-card.recommended {
    border-color: var(--green);
    box-shadow: 0 0 15px var(--green-glow);
}

.plan-card.recommended:has(input[type="radio"]:checked) {
    border-color: var(--green-dark);
    box-shadow: 0 0 35px var(--green-glow), inset 0 0 30px rgba(4, 194, 17, 0.1);
}

.recommended-tag {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #04C211 0%, #16a34a 100%);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 5px 12px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 4px 100%);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--green-glow);
    z-index: 10;
}

.plan-card.recommended::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--green) 0%, transparent 30%, transparent 70%, var(--green) 100%);
    z-index: -1;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* Dark mode overrides - keep the sci-fi tier colors */
[data-theme="dark"] .plan-card[data-plan="standard"]:has(input[type="radio"]:checked) {
    border-color: #a0a0a0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.4), inset 0 0 20px rgba(192, 192, 192, 0.1);
}

[data-theme="dark"] .plan-card[data-plan="premium"]:has(input[type="radio"]:checked) {
    border-color: #d4a574;
    background: linear-gradient(135deg, #1a1a2e 0%, #3d2818 100%);
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.4), inset 0 0 20px rgba(212, 165, 116, 0.1);
}

[data-theme="dark"] .plan-card[data-plan="elite"]:has(input[type="radio"]:checked) {
    border-color: #c084fc;
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.5), inset 0 0 25px rgba(147, 51, 234, 0.15);
}

[data-theme="dark"] .plan-card[data-plan="ultimate"]:has(input[type="radio"]:checked) {
    border-color: #ffd700;
    background: linear-gradient(135deg, #2a1f0a 0%, #4a3a1a 100%);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.2);
    animation: selected-gold-pulse 2s ease-in-out infinite;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.plan-badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: -1;
}

.plan-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(255,255,255,0.2) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
}

.plan-badge.silver {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3), inset 0 0 15px rgba(192, 192, 192, 0.1);
}

.plan-badge.silver::before {
    background: linear-gradient(135deg, #2a2a40 0%, #3d3d5c 100%);
}

.plan-badge.bronze {
    background: linear-gradient(135deg, #2a1810 0%, #5c3d2e 50%, #2a1810 100%);
    color: #d4a574;
    text-shadow: 0 0 8px rgba(212, 165, 116, 0.6);
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3), inset 0 0 15px rgba(212, 165, 116, 0.1);
}

.plan-badge.bronze::before {
    background: linear-gradient(135deg, #3d2818 0%, #6b4a35 100%);
}

.plan-badge.purple {
    background: linear-gradient(135deg, #1a0a2e 0%, #4c1d95 50%, #1a0a2e 100%);
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.8);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.5), inset 0 0 15px rgba(147, 51, 234, 0.2);
}

.plan-badge.purple::before {
    background: linear-gradient(135deg, #2d1b4e 0%, #5b21b6 100%);
}

.plan-badge.gold {
    background: linear-gradient(135deg, #2a1f0a 0%, #b8860b 30%, #ffd700 50%, #b8860b 70%, #2a1f0a 100%);
    color: #1a1a1a;
    font-weight: 900;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.2);
    animation: gold-pulse 2s ease-in-out infinite;
}

.plan-badge.gold::before {
    background: linear-gradient(135deg, #4a3a1a 0%, #daa520 50%, #4a3a1a 100%);
}

@keyframes gold-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

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

[data-theme="dark"] .plan-name {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.plan-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.price-kes {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

[data-theme="dark"] .price-kes {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.price-usd {
    font-size: 13px;
    color: var(--text-muted);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.plan-features .feature {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-features .feature::before {
    content: '▸';
    color: var(--green);
    font-weight: 700;
}

[data-theme="dark"] .plan-features .feature::before {
    text-shadow: 0 0 8px var(--green-glow);
}

.plan-features .feature.highlight {
    color: var(--green);
}

[data-theme="dark"] .plan-features .feature.highlight {
    text-shadow: 0 0 8px var(--green-glow);
}

/* ── Tier Badges (Dashboard) ── */
.writer-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 10px);
}

.writer-tier-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: tier-shimmer 4s infinite;
}

@keyframes tier-shimmer {
    0%, 90%, 100% { left: -100%; }
    45% { left: 100%; }
}

.writer-tier-badge.silver {
    background: linear-gradient(135deg, rgba(26,26,46,0.9) 0%, rgba(45,45,68,0.95) 100%);
    color: #e8e8e8;
    border: 1px solid #4a4a6a;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.3), inset 0 0 8px rgba(192, 192, 192, 0.1);
    text-shadow: 0 0 4px rgba(192, 192, 192, 0.5);
}

.writer-tier-badge.bronze {
    background: linear-gradient(135deg, rgba(42,24,16,0.9) 0%, rgba(92,61,46,0.95) 100%);
    color: #e8c4a0;
    border: 1px solid #6b4a35;
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.3), inset 0 0 8px rgba(212, 165, 116, 0.1);
    text-shadow: 0 0 4px rgba(212, 165, 116, 0.5);
}

.writer-tier-badge.purple {
    background: linear-gradient(135deg, rgba(26,10,46,0.9) 0%, rgba(76,29,149,0.95) 100%);
    color: #d8b4fe;
    border: 1px solid #7c3aed;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4), inset 0 0 10px rgba(147, 51, 234, 0.15);
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.6);
}

.writer-tier-badge.gold {
    background: linear-gradient(135deg, rgba(42,31,10,0.9) 0%, rgba(184,134,11,0.9) 25%, rgba(255,215,0,0.95) 50%, rgba(184,134,11,0.9) 75%, rgba(42,31,10,0.9) 100%);
    color: #1a1a1a;
    border: 1px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 12px rgba(255, 215, 0, 0.2);
    font-weight: 800;
    animation: tier-gold-pulse 3s ease-in-out infinite;
}

@keyframes tier-gold-pulse {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255,215,0,0.5)); }
    50% { filter: brightness(1.1) drop-shadow(0 0 10px rgba(255,215,0,0.7)); }
}

/* ── Payment Status Badge ── */
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.payment-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.1) 2px,
        rgba(255,255,255,0.1) 4px
    );
}

.payment-badge.paid {
    background: linear-gradient(135deg, #052e16 0%, #14532d 100%);
    color: #4ade80;
    border: 1px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.payment-badge.paid::after {
    content: '◆';
    font-size: 6px;
    color: #4ade80;
    animation: status-pulse 2s ease-in-out infinite;
}

.payment-badge.pending {
    background: linear-gradient(135deg, #2a1a0a 0%, #713f12 100%);
    color: #fbbf24;
    border: 1px solid #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.payment-badge.pending::after {
    content: '◈';
    font-size: 6px;
    color: #fbbf24;
    animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ── Earnings Highlight (Work Detail) ── */
.earnings-highlight {
    background: var(--green-light);
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid var(--green-glow);
}

.earnings-label {
    color: var(--green-dark);
}

.earnings-value {
    color: var(--green);
    font-weight: 700;
    font-size: 18px;
}

[data-theme="dark"] .earnings-highlight {
    background: linear-gradient(135deg, rgba(4, 194, 17, 0.15) 0%, rgba(4, 194, 17, 0.05) 100%);
    border: 1px solid rgba(4, 194, 17, 0.3);
}

[data-theme="dark"] .earnings-label {
    color: #4ade80;
}

[data-theme="dark"] .earnings-value {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(4, 194, 17, 0.3);
}

/* ── Utility Classes ── */

/* Text Colors */
.text-green { color: var(--green) !important; }
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #f59e0b !important; }  /* Orange for warnings */
.text-warning-dark { color: #856404 !important; }  /* Dark yellow for alert text */
.text-info { color: #0c5460 !important; }
.text-muted { color: #666 !important; }
.text-dark { color: #333 !important; }
.text-white { color: white !important; }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-theme="dark"] .text-dark { color: var(--text-secondary) !important; }
[data-theme="dark"] .text-warning { color: #fbbf24 !important; }  /* Brighter orange for dark mode */

/* Font Weights */
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }

/* Font Sizes */
.text-xs { font-size: 12px !important; }
.text-sm { font-size: 13px !important; }
.text-lg { font-size: 18px !important; }
.text-xl { font-size: 24px !important; }
.text-2xl { font-size: 28px !important; }
.text-16 { font-size: 16px !important; }

/* Text Transform */
.uppercase { text-transform: uppercase !important; }

/* Line Height */
.leading-relaxed { line-height: 1.6 !important; }
.leading-loose { line-height: 1.7 !important; }

/* Flex utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-15 { gap: 15px !important; }
.gap-20 { gap: 20px !important; }

/* Spacing */
.m-0 { margin: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-25 { margin-top: 25px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.ml-5 { margin-left: 5px !important; }
.ml-10 { margin-left: 10px !important; }
.mr-8 { margin-right: 8px !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* Padding */
.p-12 { padding: 12px !important; }
.p-15 { padding: 15px !important; }
.p-20 { padding: 20px !important; }
.p-30 { padding: 30px !important; }
.pt-15 { padding-top: 15px !important; }

/* Max Width */
.max-w-500 { max-width: 500px !important; }

/* Background - Theme Aware */
.bg-white { background: var(--bg-card) !important; }
.bg-light { background: var(--bg-secondary) !important; }

/* Border Radius */
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* White Space */
.whitespace-pre { white-space: pre-wrap !important; }

/* Receipt Styling */
.receipt-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .receipt-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.receipt-paper {
    padding: 24px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--border-color);
}

.receipt-brand {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}

.receipt-title {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-number-section {
    text-align: right;
}

.receipt-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.receipt-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.receipt-amount-section {
    text-align: center;
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.receipt-amount-label {
    font-size: 11px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.receipt-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--green);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px var(--green-glow);
}

.receipt-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.receipt-detail-item {
    display: flex;
    flex-direction: column;
}

.receipt-detail-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.receipt-detail-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.receipt-detail-value.mono {
    font-family: 'Courier New', monospace;
}

.receipt-box {
    background: var(--bg-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.receipt-box-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.receipt-box-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.receipt-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

.receipt-footer p {
    margin: 0 0 4px 0;
}

.receipt-stamp {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transform: rotate(-5deg);
    margin-top: 10px;
    text-shadow: 0 0 10px var(--green-glow);
}

/* Status Alert Boxes */
.alert {
    border-radius: 12px;
    padding: 20px;
}
.alert-warning {
    background: #fff3cd;
}
.alert-warning h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 18px;
}
.alert-warning p {
    color: #856404;
    margin: 0;
}
.alert-info {
    background: #d1ecf1;
}
.alert-info h4 {
    color: #0c5460;
    margin-bottom: 10px;
}
.alert-info p {
    color: #0c5460;
    margin: 0;
}
.alert-success {
    background: #d4edda;
}
.alert-success h4 {
    color: #155724;
    margin-bottom: 10px;
}
.alert-success p {
    color: #155724;
    margin: 0;
}
.alert-danger {
    background: #f8d7da;
}
.alert-danger h4 {
    color: #721c24;
    margin-bottom: 10px;
}
.alert-danger p {
    color: #721c24;
    margin: 0;
}
[data-theme="dark"] .alert-warning { background: rgba(255, 193, 7, 0.15); }
[data-theme="dark"] .alert-info { background: rgba(13, 202, 240, 0.15); }
[data-theme="dark"] .alert-success { background: rgba(25, 135, 84, 0.15); }
[data-theme="dark"] .alert-danger { background: rgba(220, 53, 69, 0.15); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.stat-label-sm {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.stat-value-lg {
    font-size: 24px;
    font-weight: 600;
}
[data-theme="dark"] .stat-label-sm { color: var(--text-muted); }

/* Instruction File Box */
.instruction-box {
    flex: 1;
    background: var(--grey-100);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
[data-theme="dark"] .instruction-box {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Revision Meta */
.revision-meta {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}
[data-theme="dark"] .revision-meta { color: var(--text-muted); }

/* Stat Card Gradient */
.stat-card-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

/* Divider */
.border-t {
    border-top: 2px solid #f0f0f0;
}
[data-theme="dark"] .border-t {
    border-color: var(--border-color);
}

/* Site Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.footer-social a:hover {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.footer-links h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--green);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* CSP-compliant styles (replacing inline styles) */
.cv-status-uploaded {
    background: var(--success-light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--success);
}

.cv-status-hint {
    margin: 8px 0 0 0;
    color: var(--text-muted);
}

.form-actions {
    margin-top: 32px;
}

.btn-loading {
    display: none;
}

.payment-status-hint {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
}

.payment-error {
    color: var(--error);
}

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

.plan-hint {
    margin-bottom: 16px;
}
