/* ============================================
   AUTHORS PAGE - COMPLETE REDESIGN
   ============================================ */

.authors-shell {
    min-height: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 7rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    z-index: 2;
}

.authors-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.authors-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Card - Modern Card Design */
.authors-hero-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3.5rem 3rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.authors-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00b4ff 0%, #0096d9 50%, #00b4ff 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Typography - Clean & Modern */
.authors-title {
    margin: 0 0 1rem 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.authors-subtitle {
    margin: 0 auto 2rem auto !important;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    max-width: 650px;
    text-align: center !important;
}

.authors-hero-card .authors-subtitle {
    text-align: center !important;
}

/* Action Buttons - Modern & Clean */
.authors-hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.authors-cta {
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00b4ff 0%, #0096d9 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.3);
    flex-shrink: 0;
}

.authors-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 255, 0.4);
    background: linear-gradient(135deg, #0096d9 0%, #0080c0 100%);
}

.authors-cta:active {
    transform: translateY(0);
}

.authors-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    white-space: nowrap;
}

.authors-secondary:hover {
    background: #e2e8f0;
    color: #334155;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.authors-section {
    margin-top: 2rem;
}

.authors-card {
    background: rgba(255,255,255,0.92);
    border-radius: 18px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.08);
}

.authors-card-inner {
    padding: 2.25rem 2rem;
}

.authors-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(2, 6, 23, 0.08);
}

.authors-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.authors-step-index {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    background: rgba(2, 6, 23, 0.12);
    color: #fff;
}

.authors-step-index.active {
    background: var(--primary-color, #00b4ff);
}

.authors-step-index.done {
    background: #28a745;
}

.authors-step-label {
    font-weight: 800;
    color: #334155;
    font-size: 0.95rem;
}

.authors-h2 {
    margin: 0.25rem 0 0.35rem 0;
    font-weight: 900;
    letter-spacing: -0.25px;
    color: #0f172a;
    font-size: 1.35rem;
}

.authors-muted {
    margin: 0 0 1rem 0;
    color: #64748b;
}

.authors-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.authors-choice {
    text-align: left;
    border-radius: 16px;
    border: 2px solid rgba(2, 6, 23, 0.10);
    background: rgba(255,255,255,0.95);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.authors-choice:hover {
    border-color: rgba(0, 180, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.authors-choice.selected {
    border-color: #00b4ff;
    border-width: 2px;
    background: rgba(0, 180, 255, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.authors-choice-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.authors-choice-desc {
    color: #64748b;
    line-height: 1.6;
}

.authors-form {
    margin-top: 0.75rem;
}

.authors-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.authors-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.authors-label {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.authors-input,
.authors-textarea {
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: rgba(255,255,255,0.98);
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    color: #0f172a;
}

.authors-input:focus,
.authors-textarea:focus {
    outline: 0;
    border-color: rgba(0, 180, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.18);
}

.authors-select {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: #fff;
    padding: 0.65rem 0.9rem;
    font-weight: 600;
    color: rgba(2, 6, 23, 0.85);
}

.authors-select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.18);
    border-color: rgba(0, 180, 255, 0.55);
}

.authors-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.authors-btn {
    appearance: none;
    border: 1px solid rgba(2, 6, 23, 0.14);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    background: rgba(255,255,255,0.98);
    color: #0f172a;
    font-weight: 800;
}

.authors-btn.primary {
    background: linear-gradient(180deg, rgba(0, 180, 255, 1) 0%, rgba(1, 116, 177, 1) 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 150, 230, 0.25);
}

.authors-btn.primary:hover {
    filter: brightness(1.03);
}

.authors-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.authors-review {
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    background: rgba(248, 250, 252, 0.9);
    padding: 1rem;
}

.authors-review-item {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.authors-review-item:last-child {
    border-bottom: none;
}

.authors-review-item strong {
    color: #0f172a;
}

.authors-review-item span {
    color: #334155;
}

.authors-alert {
    margin-top: 1rem;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.18);
    padding: 0.85rem 1rem;
    color: #b91c1c;
    font-weight: 700;
}

.authors-success {
    border-radius: 14px;
    background: rgba(40, 167, 69, 0.10);
    border: 1px solid rgba(40, 167, 69, 0.22);
    padding: 1.1rem 1rem;
    text-align: center;
}

.authors-success-title {
    font-weight: 900;
    color: #15803d;
    margin-bottom: 0.35rem;
    font-size: 1.25rem;
}

.authors-success-text {
    color: #166534;
    font-weight: 700;
}

.authors-help {
    margin-top: 1.25rem;
    text-align: center;
    color: #64748b;
}

.authors-link {
    color: var(--primary-color, #00b4ff);
    font-weight: 800;
    text-decoration: none;
}

.authors-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.authors-link-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-color, #00b4ff);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.authors-link-btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.authors-details {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    background: rgba(248, 250, 252, 0.9);
    padding: 1rem;
}

.authors-details-title {
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.authors-details-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    line-height: 1.65;
}

.authors-details-list li {
    margin: 0.15rem 0;
}

/* Earnings Rates Section */
.authors-rates-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, 0.08);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authors-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.authors-rates-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.authors-rates-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
}

.authors-rates-card {
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(2, 6, 23, 0.06);
}

.authors-rates-subtitle {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.authors-rates-subtitle i {
    font-size: 1.1rem;
}

.authors-rates-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    color: #555;
}

.authors-rates-item strong {
    color: #0f172a;
    font-weight: 800;
}

.authors-rates-note {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin: 0;
    text-align: center;
}

@media (max-width: 900px) {
    .authors-shell {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 6.5rem;
    }

    .authors-hero-card {
        padding: 2.5rem 2rem;
    }

    .authors-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .authors-subtitle {
        font-size: 1.1rem;
    }

    .authors-card-inner {
        padding: 1.75rem 1.25rem;
    }

    .authors-choice-grid {
        grid-template-columns: 1fr;
    }

    .authors-row {
        grid-template-columns: 1fr;
    }

    .authors-review-item {
        grid-template-columns: 1fr;
    }

    .authors-steps {
        grid-template-columns: 1fr;
    }

    .authors-step {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .authors-shell {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        padding-top: 6.25rem;
    }

    .authors-hero-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        overflow: hidden;
    }

    .authors-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .authors-subtitle {
        font-size: 1rem;
    }

    .authors-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        padding: 0;
    }

    .authors-cta,
    .authors-secondary {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .authors-card-inner {
        padding: 1.5rem 1rem;
    }

    .authors-choice {
        padding: 1.5rem 1.25rem;
        min-height: 100px;
    }

    .authors-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .authors-input,
    .authors-textarea,
    .authors-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.85rem 1rem;
        min-height: 48px;
    }

    .authors-rates-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small mobile (< 400px) */
@media (max-width: 400px) {
    .authors-shell {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .authors-hero-card {
        padding: 1.75rem 1.25rem;
    }

    .authors-cta,
    .authors-secondary {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .authors-card-inner {
        padding: 1.25rem 0.85rem;
    }
}

/* ============================================
   DARK MODE - ELEGANT & MODERN
   ============================================ */

body.dark-mode .authors-shell {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .authors-hero-card {
    background: #1e293b;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .authors-hero-card::before {
    background: linear-gradient(90deg, #00b4ff 0%, #60a5fa 50%, #00b4ff 100%);
}

body.dark-mode .authors-title {
    color: #f1f5f9;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .authors-subtitle {
    color: #94a3b8;
}

body.dark-mode .authors-cta {
    background: linear-gradient(135deg, #00b4ff 0%, #0096d9 100%);
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.4);
}

body.dark-mode .authors-cta:hover {
    box-shadow: 0 8px 20px rgba(0, 180, 255, 0.5);
}

body.dark-mode .authors-secondary {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

body.dark-mode .authors-secondary:hover {
    background: #475569;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .authors-card {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

body.dark-mode .authors-steps {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .authors-step-label,
body.dark-mode .authors-h2,
body.dark-mode .authors-label,
body.dark-mode .authors-review-item strong {
    color: #e2e8f0;
}

body.dark-mode .authors-muted,
body.dark-mode .authors-help,
body.dark-mode .authors-review-item span {
    color: #b0bec5;
}

body.dark-mode .authors-choice {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .authors-choice:hover {
    border-color: rgba(0, 180, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .authors-choice.selected {
    background: rgba(0, 180, 255, 0.08);
    border-color: #00b4ff;
}

body.dark-mode .authors-choice-title {
    color: #e2e8f0;
}

body.dark-mode .authors-choice-desc {
    color: #94a3b8;
}

body.dark-mode .authors-input,
body.dark-mode .authors-textarea,
body.dark-mode .authors-select {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .authors-input:focus,
body.dark-mode .authors-textarea:focus,
body.dark-mode .authors-select:focus {
    border-color: rgba(0, 180, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.18);
}

body.dark-mode .authors-btn {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .authors-btn:hover {
    background: rgba(51, 65, 85, 0.72);
}

body.dark-mode .authors-btn.primary {
    background: linear-gradient(180deg, rgba(0, 180, 255, 1) 0%, rgba(1, 116, 177, 1) 100%);
    color: #fff;
}

body.dark-mode .authors-review {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .authors-review-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .authors-details {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .authors-details-title {
    color: #e2e8f0;
}

body.dark-mode .authors-details-list {
    color: #94a3b8;
}

body.dark-mode .authors-alert {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f87171;
}

body.dark-mode .authors-success {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode .authors-success-title {
    color: #4ade80;
}

body.dark-mode .authors-success-text {
    color: #86efac;
}

body.dark-mode .authors-rates-section {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .authors-rates-card {
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .authors-rates-item {
    color: #b0bec5;
}

body.dark-mode .authors-rates-item strong {
    color: #e2e8f0;
}

body.dark-mode .authors-rates-note {
    color: #94a3b8;
}

body.dark-mode .authors-link {
    color: #60a5fa;
}

body.dark-mode .authors-link-btn {
    color: #60a5fa;
}

body.dark-mode .authors-choice.selected {
    border-color: #00b4ff;
    background: rgba(0, 180, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 180, 255, 0.2);
}

body.dark-mode .authors-choice-title {
    color: #e2e8f0;
}

body.dark-mode .authors-choice-desc {
    color: #b0bec5;
}

body.dark-mode .authors-input,
body.dark-mode .authors-textarea {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .authors-select {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .authors-review {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .authors-details {
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .authors-details-title {
    color: #e2e8f0;
}

body.dark-mode .authors-details-list {
    color: #b0bec5;
}

/* Earnings rates dialog dark mode */
body.dark-mode .earnings-dialog .rz-dialog-content {
    background: rgba(30, 41, 59, 0.98) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .earnings-dialog .rz-dialog-titlebar {
    background: rgba(15, 23, 42, 0.98) !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

/* Dialog title text */
body.dark-mode .earnings-dialog .rz-dialog-title {
    color: #f1f5f9 !important;
}

body.dark-mode .earnings-dialog .rz-dialog-titlebar .rz-dialog-title {
    color: #f1f5f9 !important;
}

/* Fix text colors in dark mode for earnings dialog */
body.dark-mode .earnings-dialog [style*="color:#555"],
body.dark-mode .earnings-dialog [style*="color: #555"] {
    color: #cbd5e1 !important;
}

body.dark-mode .earnings-dialog [style*="color:#999"],
body.dark-mode .earnings-dialog [style*="color: #999"] {
    color: #94a3b8 !important;
}

/* Gradient backgrounds in dark mode */
body.dark-mode .earnings-dialog [style*="rgba(33,150,243"] {
    background: linear-gradient(135deg, rgba(33,150,243,0.2) 0%, rgba(33,150,243,0.1) 100%) !important;
}

body.dark-mode .earnings-dialog [style*="rgba(76,175,80"] {
    background: linear-gradient(135deg, rgba(76,175,80,0.2) 0%, rgba(76,175,80,0.1) 100%) !important;
}

body.dark-mode .earnings-dialog [style*="rgba(138,43,226"] {
    background: linear-gradient(135deg, rgba(138,43,226,0.2) 0%, rgba(138,43,226,0.1) 100%) !important;
}

/* Strong/bold text in dialog */
body.dark-mode .earnings-dialog strong {
    color: #f1f5f9 !important;
}

/* Title colors - make them lighter in dark mode */
body.dark-mode .earnings-dialog [style*="color:#2196f3"] {
    color: #60a5fa !important;
}

body.dark-mode .earnings-dialog [style*="color:#1976d2"] {
    color: #60a5fa !important;
}

body.dark-mode .earnings-dialog [style*="color:#388e3c"] {
    color: #86efac !important;
}

body.dark-mode .earnings-dialog [style*="color:#8a2be2"] {
    color: #c084fc !important;
}
