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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-btn {
    background: #4a9eff;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.nav-btn:hover {
    background: #3a8eef;
}

.nav-btn-secondary {
    background: #333;
}

.nav-btn-secondary:hover {
    background: #444;
}

main {
    flex: 1;
    padding: 40px 0;
}

.footer {
    background: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #333;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #4a9eff;
    color: #fff;
}

.btn-primary:hover {
    background: #3a8eef;
}

.btn-primary:active {
    background: #2a7edf;
    transform: scale(0.97);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sci-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    text-align: left;
}

.sci-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #4a9eff;
}

.sci-band {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.sci-note {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.outlier-section {
    margin-top: 1rem;
}

.outlier-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #aaa;
}

.outlier-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
}

.outlier-table table {
    width: 100%;
    border-collapse: collapse;
}

.outlier-table th,
.outlier-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.outlier-table th {
    color: #888;
    font-weight: 500;
    font-size: 0.85rem;
}

.outlier-table td {
    color: #ccc;
}

.no-outliers {
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

.btn-secondary {
    background: #333;
    color: #fff;
}

.btn-secondary:hover {
    background: #444;
}

.btn-report {
    display: inline-block;
    margin-top: 15px;
    background: #2a2a2a;
    color: #fff;
    padding: 10px 20px;
    border: 1px solid #555;
    font-size: 0.9rem;
}

.btn-report:hover {
    background: #3a3a3a;
    border-color: #666;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: #333;
    color: #fff;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-error {
    background: #4a1515;
    border: 1px solid #8b2020;
    color: #ff6b6b;
}

.upload-section {
    text-align: center;
}

.upload-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    margin-bottom: 40px;
}

.upload-form {
    max-width: 500px;
    margin: 0 auto 40px;
}

.file-drop-zone {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 50px 30px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.05);
}

.file-drop-zone input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.drop-icon {
    font-size: 3rem;
    color: #555;
    margin-bottom: 15px;
}

.file-drop-zone .small {
    color: #666;
    font-size: 0.875rem;
}

.file-name {
    margin-top: 15px;
    color: #4a9eff;
    font-weight: 500;
}

.formats {
    color: #666;
    font-size: 0.875rem;
    margin: 15px 0 25px;
}

.info-section {
    margin-top: 60px;
}

.info-section h2 {
    margin-bottom: 30px;
}

.analyzers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.analyzer-card {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

.analyzer-card h3 {
    color: #4a9eff;
    margin-bottom: 10px;
}

.analyzer-card p {
    color: #888;
    font-size: 0.9rem;
}

.status-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.status-section h1 {
    margin-bottom: 5px;
}

.word-count {
    color: #888;
    margin-bottom: 30px;
}

.status-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a9eff;
    animation: pulse 1.5s infinite;
}

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

.status-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a9eff, #7ab8ff);
    width: 10%;
    transition: width 0.5s ease;
}

.status-message {
    color: #888;
}

.results-section {
    max-width: 800px;
    margin: 0 auto;
}

.results-section h1 {
    text-align: center;
    margin-bottom: 5px;
}

.results-section .author-name {
    text-align: center;
    color: #888;
    margin: 0 0 0.5rem 0;
}

.results-section .word-count {
    text-align: center;
}

.result-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.result-card.passed {
    border: 2px solid #22c55e;
}

.result-card.failed {
    border: 2px solid #ef4444;
}

.tier-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tier-A { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.tier-B { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.tier-C { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.tier-fail { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

.result-card h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.score {
    color: #888;
    font-size: 1.1rem;
}

.failures-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.failures-section h3 {
    color: #ef4444;
    margin-bottom: 15px;
}

.failure-list {
    list-style: none;
}

.failure-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.failure-list li:last-child {
    border-bottom: none;
}

.certification-readiness-indicator {
    background: linear-gradient(135deg, #065f46, #047857);
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.certification-readiness-indicator.high strong {
    color: #34d399;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.certification-readiness-indicator p {
    color: #d1fae5;
    margin: 0;
    font-size: 0.95rem;
}

.failure-explanation-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.failure-explanation-section h3 {
    color: #f59e0b;
    margin-bottom: 15px;
}

.failure-explanation-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.failure-explanation-section p:last-child {
    margin-bottom: 0;
}

.high-impact-targets-section {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #3b82f6;
}

.high-impact-targets-section h3 {
    color: #60a5fa;
    margin-bottom: 15px;
}

.high-impact-targets-section > p {
    color: #ccc;
    margin-bottom: 15px;
}

.revision-targets-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.revision-targets-list li {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #3b82f6;
    color: #ccc;
}

.revision-targets-list li strong {
    color: #93c5fd;
}

.revision-note {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.readability-clarification {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #fcd34d;
}

.non-factors-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.non-factors-section h3 {
    color: #9ca3af;
    margin-bottom: 15px;
}

.non-factors-section > p {
    color: #888;
    margin-bottom: 15px;
}

.non-factors-list {
    list-style: disc;
    padding-left: 25px;
    color: #9ca3af;
}

.non-factors-list li {
    padding: 5px 0;
}

.next-steps-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.next-steps-section h3 {
    color: #e5e7eb;
    margin-bottom: 15px;
}

.next-steps-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.revision-tip {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    color: #6ee7b7;
}

.revision-tip strong {
    color: #34d399;
}

.tier-explanation {
    margin-bottom: 30px;
}

.tier-explanation h3 {
    margin-bottom: 15px;
    text-align: center;
}

.tier-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tier-item {
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    opacity: 0.5;
}

.tier-item.active {
    opacity: 1;
    border-color: #4a9eff;
}

.tier-item.fail {
    border-color: #ef4444;
}

.tier-label {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tier-range {
    color: #888;
    font-size: 0.875rem;
}

.chunk-details {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.chunk-details summary {
    cursor: pointer;
    font-weight: 600;
}

.chunks-table {
    margin-top: 20px;
    overflow-x: auto;
}

.chunks-table table,
.books-table table {
    width: 100%;
    border-collapse: collapse;
}

.chunks-table th,
.chunks-table td,
.books-table th,
.books-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.chunks-table th,
.books-table th {
    color: #888;
    font-weight: 500;
}

.flag-icons {
    display: flex;
    gap: 6px;
}

.flag-icon {
    font-size: 1rem;
    cursor: help;
}

.no-flags {
    color: #888;
    font-style: italic;
    margin-top: 15px;
}

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

.books-section h1 {
    margin-bottom: 30px;
}

.books-table {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.status-completed { background: #22c55e20; color: #22c55e; }
.status-failed { background: #ef444420; color: #ef4444; }
.status-analyzing { background: #3b82f620; color: #3b82f6; }
.status-aggregating { background: #8b5cf620; color: #8b5cf6; }
.status-error { background: #ef444420; color: #ef4444; }
.status-analysis_failed { background: #ef444420; color: #ef4444; }

.error-message {
    background: #ef444420;
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.error-message p {
    margin-bottom: 10px;
    color: #f87171;
}

.error-message .error-detail {
    font-family: monospace;
    font-size: 0.9rem;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    color: #fca5a5;
}

.tier-badge-small {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 700;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

.option-row {
    margin: 20px 0;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #999;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.4;
}

.file-drop-zone.has-file {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.warnings-section {
    background: #2a2510;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #5c4a00;
}

.warnings-section h3 {
    color: #f59e0b;
    margin-bottom: 15px;
}

.warning-list {
    list-style: none;
}

.warning-list li {
    padding: 8px 0;
    color: #d4a200;
}

.warning-indicator {
    color: #f59e0b;
    font-weight: bold;
    margin-left: 5px;
}

.has-warning {
    background: rgba(245, 158, 11, 0.1);
}

.diagnostics-details {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.diagnostics-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #4a9eff;
}

.diagnostic-note {
    color: #888;
    font-size: 0.85rem;
    margin: 15px 0;
    padding: 10px;
    background: #252525;
    border-radius: 6px;
}

.diagnostic-chunk {
    margin: 20px 0;
    padding: 15px;
    background: #222;
    border-radius: 8px;
}

.diagnostic-chunk h4 {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.issue-item {
    padding: 10px;
    background: #2a2a2a;
    border-radius: 6px;
    border-left: 3px solid #4a9eff;
}

.issue-category {
    display: inline-block;
    padding: 2px 8px;
    background: #333;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-right: 8px;
}

.issue-label {
    color: #ccc;
    font-weight: 500;
}

.issue-excerpt {
    margin-top: 8px;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

.stall-factors-list {
    list-style: disc;
    padding-left: 20px;
}

.stall-factors-list li {
    padding: 5px 0;
    color: #aaa;
}

.version-tag {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.cert-reason {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

.borderline-label {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}

.disqualifiers-section {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.disqualifiers-section summary {
    cursor: pointer;
    font-weight: 600;
}

.disqualifiers-grid {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.disqualifier-item {
    padding: 15px;
    border-radius: 8px;
    background: #222;
}

.disqualifier-item.passed {
    border-left: 3px solid #22c55e;
}

.disqualifier-item.triggered {
    border-left: 3px solid #ef4444;
    background: #2a1515;
}

.disqualifier-name {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.disqualifier-status {
    font-size: 0.85rem;
    color: #888;
}

.disqualifier-item.triggered .disqualifier-status {
    color: #ef4444;
}

.disqualifier-item.passed .disqualifier-status {
    color: #22c55e;
}

.disqualifier-justification {
    margin-top: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.metadata-section {
    margin-bottom: 30px;
}

.metadata-section h3 {
    margin-bottom: 20px;
    text-align: center;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.metadata-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
}

.metadata-card h4 {
    color: #4a9eff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.metadata-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.metadata-card ul {
    list-style: none;
    padding: 0;
}

.metadata-card ul li {
    color: #aaa;
    font-size: 0.85rem;
    padding: 3px 0;
}

.confidence-indicator {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
    margin-left: 0.5rem;
}

.certification-info {
    background: #1a1a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
    text-align: center;
}

.certification-info h3 {
    color: #4a9eff;
    margin-bottom: 10px;
}

.certification-info p {
    color: #888;
    font-size: 0.9rem;
}

.diagnostic-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #222;
    border-radius: 8px;
}

.diagnostic-summary h4 {
    color: #ccc;
    margin-bottom: 10px;
}

.diagnostic-summary p {
    color: #aaa;
    line-height: 1.5;
}

.diagnostic-section {
    margin: 20px 0;
    padding: 15px;
    background: #222;
    border-radius: 8px;
}

.diagnostic-section h4 {
    color: #ccc;
    margin-bottom: 10px;
}

.diagnostic-section ul {
    list-style: disc;
    padding-left: 20px;
}

.diagnostic-section ul li {
    color: #aaa;
    padding: 5px 0;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

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

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.delete-form {
    display: inline;
    margin: 0;
}

.status-certified {
    background: #22c55e20;
    color: #22c55e;
}

.landing-page {
    max-width: 900px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-sub {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.info-block {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.info-block h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-block p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.not-list, .process-list, .feature-list, .expect-list {
    list-style: none;
    padding: 0;
}

.not-list li, .feature-list li, .expect-list li {
    padding: 10px 0;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.not-list li:last-child, .feature-list li:last-child, .expect-list li:last-child {
    border-bottom: none;
}

.process-list {
    counter-reset: step;
}

.process-list li {
    padding: 15px 0 15px 50px;
    color: #ccc;
    position: relative;
    border-bottom: 1px solid #333;
}

.process-list li:last-child {
    border-bottom: none;
}

.process-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    background: #4a9eff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.emphasis {
    color: #4a9eff !important;
    font-weight: 500;
}

.badge-section {
    text-align: center;
    padding: 60px 40px;
    margin-top: 40px;
}

.badge-section h3 {
    color: #888;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 30px;
}

.badge-display {
    margin: 0 auto;
    max-width: 120px;
}

.certification-badge {
    width: 100%;
    height: auto;
    filter: grayscale(40%) opacity(0.85);
}

.badge-description {
    color: #777;
    font-size: 0.9rem;
    margin-top: 25px;
    font-style: italic;
}

.trust-section {
    text-align: center;
    padding: 40px;
    background: #1a1a2a;
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 40px;
}

.trust-section h3 {
    color: #4a9eff;
    margin-bottom: 15px;
}

.trust-section p {
    color: #aaa;
}

.author-page {
    max-width: 800px;
    margin: 0 auto;
}

.author-hero {
    text-align: center;
    padding: 40px 0;
}

.author-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.15rem;
    color: #aaa;
    line-height: 1.6;
}

.author-actions {
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 30px;
}

.author-actions h2 {
    margin-bottom: 25px;
}

.author-actions p {
    color: #aaa;
    margin-bottom: 20px;
}

.user-info {
    background: #252525;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.user-info p {
    margin: 0;
    color: #ccc;
}

.payment-required {
    padding: 20px;
    background: #2a2510;
    border-radius: 8px;
    border: 1px solid #5c4a00;
    margin-bottom: 25px;
}

.payment-required p {
    color: #d4a200;
}

.payment-required .note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

.author-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.coming-soon-page {
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
}

.coming-soon-page h1 {
    margin-bottom: 30px;
}

.placeholder-message {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.placeholder-message p {
    color: #aaa;
    margin-bottom: 15px;
}

.placeholder-message p:last-child {
    margin-bottom: 0;
}

.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    margin-bottom: 20px;
}

.error-page p {
    color: #aaa;
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-legal {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.footer-operator {
    font-size: 0.8rem;
    color: #666;
}

.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.static-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

.static-page h2 {
    font-size: 1.5rem;
    color: #4a9eff;
    margin-bottom: 20px;
}

.content-section {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #333;
}

.content-section p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 15px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    padding: 10px 0;
    color: #ccc;
    border-bottom: 1px solid #333;
}

.content-section ul li:last-child {
    border-bottom: none;
}

.deliverables-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.deliverables-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.book-title-display {
    font-size: 1.2rem;
    color: #4a9eff;
    margin-bottom: 0.25rem;
}

.book-author-display {
    font-size: 1rem;
    color: #888;
    margin-bottom: 2rem;
}

.cert-author {
    color: #666;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.deliverable-section {
    background: #1a1a1a;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.deliverable-section h2 {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.section-desc {
    color: #888;
    margin-bottom: 0.5rem;
}

.section-note {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.badge-preview {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.badge-image-large {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.verification-id-display {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #333;
}

.verification-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a9eff;
    letter-spacing: 0.1em;
    background: #1a1a2e;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.verification-note {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.badge-note {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.75rem;
}

.certification-badge-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #4a9eff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d1117;
}

.badge-text-top {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4a9eff;
}

.badge-text-bottom {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
}

.download-options {
    margin-top: 1rem;
}

.download-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.download-list li {
    color: #888;
    padding: 0.25rem 0;
}

.badge-downloads {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.badge-downloads .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.certificate-preview {
    margin: 1.5rem 0;
}

.cert-preview-box {
    background: #fff;
    color: #333;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.cert-header {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #1a1a2e;
    margin: 0;
}

.cert-subheader {
    font-size: 0.9rem;
    color: #4a4a6a;
    font-style: italic;
    margin: 0.25rem 0 1rem 0;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0;
}

.cert-statement {
    font-size: 0.85rem;
    color: #555;
    margin: 1rem 0;
}

.cert-date, .cert-id {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0;
}

.summary-card {
    background: #0d1117;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.summary-card p {
    margin: 0.5rem 0;
    color: #ccc;
}

.summary-card code {
    background: #333;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.verify-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.verify-link a {
    color: #4a9eff;
}

.rules-section {
    margin-bottom: 1rem;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #333;
}

.rules-section summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #fff;
}

.rules-content {
    padding: 0 1rem 1rem 1rem;
}

.rules-content h4 {
    color: #4a9eff;
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem 0;
}

.rules-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.rules-content ul li {
    color: #ccc;
    padding: 0.25rem 0;
}

.legal-text {
    font-size: 0.9rem;
}

.legal-text p {
    color: #aaa;
    margin: 0.5rem 0;
}

.marketing-copy-blocks {
    margin: 1rem 0;
}

.copy-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #0d1117;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 0.75rem;
}

.copy-block p {
    flex: 1;
    margin: 0;
    color: #ccc;
    font-style: italic;
}

.btn-copy {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-copy svg {
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #444;
}

.catalog-section {
    border: 1px solid #4a9eff;
}

.catalog-note {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.catalog-form {
    margin: 1rem 0;
}

.genre-checkboxes-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.genre-checkboxes-form .checkbox-label {
    font-size: 0.85rem;
}

.current-cover {
    margin-bottom: 1rem;
}

.cover-preview {
    max-width: 150px;
    max-height: 225px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cover-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5rem;
}

.field-help {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

.sales-link-policy {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
}

.sales-link-policy strong {
    color: #ccc;
}

.external-link-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    text-align: center;
}

.external-link-disclaimer strong {
    color: #aaa;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #ccc;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.catalog-fields {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #0d1117;
    border-radius: 8px;
    border: 1px solid #333;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
}

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.catalog-disclaimer {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}

.policy-box {
    background: #0d1117;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.policy-box ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.policy-box ul li {
    color: #ccc;
    padding: 0.25rem 0;
}

.collect-supporting-text {
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    text-align: center;
}

.btn-collect {
    display: block;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px 28px;
}

.verify-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.verify-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.verify-result {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.verify-result.verified {
    background: #0d2818;
    border: 1px solid #1a5d2f;
}

.verify-result.not-verified {
    background: #2a1515;
    border: 1px solid #5d2020;
}

.verify-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verified .verify-icon {
    color: #4ade80;
}

.not-verified .verify-icon {
    color: #f87171;
}

.verify-result h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.verified h2 {
    color: #4ade80;
}

.not-verified h2 {
    color: #f87171;
}

.verify-message {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.verify-details {
    text-align: left;
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.verify-details p {
    margin: 0.5rem 0;
    color: #ccc;
}

.verify-details code {
    background: #333;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.verify-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 1rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.modal-instruction {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1rem;
}

.modal-form label {
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal-form label .required {
    color: #f87171;
}

.modal-form .form-input {
    width: 100%;
    padding: 0.75rem;
    background: #0d1117;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-form .form-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.modal-form .optional-fields {
    margin: 1rem 0;
}

.modal-form .optional-fields summary {
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
}

.modal-form .optional-fields summary:hover {
    color: #4a9eff;
}

.modal-form .optional-fields-content {
    padding-top: 1rem;
}

.modal-error {
    color: #f87171;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    min-height: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    min-width: 120px;
}

/* Pricing Gate Styles */
.pricing-gate {
    margin: 2rem 0;
}

.pricing-card {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.price-display {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #4a9eff;
}

.price-label {
    display: block;
    color: #888;
    font-size: 1rem;
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #ccc;
    border-bottom: 1px solid #2a2a3a;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: #4a9eff;
    margin-right: 0.75rem;
}

.comp-section-internal {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 200, 100, 0.05);
    border: 1px dashed #555;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.comp-divider-internal {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.comp-form {
    text-align: left;
}

.comp-label {
    display: block;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.comp-input-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.comp-input {
    padding: 0.5rem 0.75rem;
    background: #0d1117;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    width: 180px;
}

.comp-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.comp-error {
    color: #f87171;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.marketing-preference {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.marketing-preference .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.marketing-preference input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
}

.coming-soon-notice {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 200, 100, 0.1);
    border: 1px dashed #b8860b;
    border-radius: 8px;
    text-align: center;
}

.coming-soon-notice p {
    margin: 0;
    color: #ccc;
}

.coming-soon-notice p:first-child {
    color: #f0c040;
    margin-bottom: 0.5rem;
}
