/* M110A License Manager - Phoenix Nest Theme */
/* Matches the HF Modem page aesthetic */

:root {
    --bg: #0a0c0f;
    --surface: #12151a;
    --surface2: #1a1f26;
    --border: #1e2530;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --amber: #ffb300;
    --amber-dim: rgba(255,179,0,0.15);
    --green: #4caf50;
    --red: #f44336;
    --cyan: #00bcd4;
    --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--amber);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    font-family: var(--mono);
    background: var(--surface2);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.logo-text .accent {
    color: var(--amber);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface2);
    text-decoration: none;
}

/* Sponsor Link in Nav */
.nav-links .sponsor-link {
    color: #ea4aaa !important;
    background: rgba(234, 74, 170, 0.1);
}

.nav-links .sponsor-link:hover {
    background: rgba(234, 74, 170, 0.2);
    color: #ff6bc1 !important;
}

/* ========== ANNOUNCEMENT BANNER ========== */
.announcement-banner {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3f 100%);
    border-bottom: 2px solid #4caf50;
    padding: 0.75rem 0;
    text-align: center;
}

.announcement-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.banner-text {
    color: #e8eaed;
    font-size: 0.95rem;
}

.banner-text strong {
    color: #4caf50;
}

.banner-link {
    background: #4caf50;
    color: #0a0c0f !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.banner-link:hover {
    background: #66bb6a;
    transform: translateY(-1px);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ========== HERO / HEADER ========== */
.hero {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--amber-dim);
    border: 1px solid var(--amber);
    color: var(--amber);
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: var(--mono);
    margin-bottom: 1rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    color: var(--amber);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    max-width: 700px;
}

/* ========== QUICK STATS ========== */
.quickstats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quickstat {
    text-align: center;
}

.quickstat-val {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber);
    display: block;
}

.quickstat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========== FEATURE CARDS / SPECS ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color 0.15s;
}

.feature-card:hover {
    border-color: var(--amber);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--amber);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--sans);
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--amber);
    color: #000;
}

.btn-primary:hover {
    background: #ffc107;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--amber);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover {
    background: #ff5252;
}

.btn-sponsor-hero {
    background: #ea4aaa;
    color: white !important;
}

.btn-sponsor-hero:hover {
    background: #ff6bc1;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

/* ========== FORMS ========== */
.form-container {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--sans);
    transition: border-color 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--amber);
}

.form-control::placeholder {
    color: var(--muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.error {
    display: block;
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.form-actions {
    margin-top: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--amber);
}

/* ========== ALERTS ========== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--red);
    color: var(--red);
}

/* ========== PAGE HEADERS ========== */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.page-header p {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

/* ========== SECTIONS ========== */
.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '▸';
    font-size: 0.75em;
}

/* ========== INFO SECTION ========== */
.info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--amber);
    font-family: var(--mono);
}

.info-section h3 {
    font-size: 0.95rem;
    margin: 1.25rem 0 0.75rem;
    color: var(--text);
}

.info-section p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-section ul {
    margin: 0.75rem 0 0.75rem 1.25rem;
    color: var(--muted);
}

.info-section li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-section li strong {
    color: var(--text);
}

.license-format {
    display: block;
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: var(--mono);
    text-align: center;
    margin: 1rem 0;
    color: var(--amber);
    letter-spacing: 1px;
}

/* ========== INFO BOX ========== */
.info-box {
    background: linear-gradient(90deg, rgba(255,179,0,0.1), transparent);
    border-left: 3px solid var(--amber);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.info-box h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.info-box p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ========== SUCCESS CONTAINER ========== */
.success-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.request-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.request-summary h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--amber);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

.summary-table {
    width: 100%;
}

.summary-table th {
    text-align: left;
    padding: 0.5rem 0;
    color: var(--muted);
    font-weight: 500;
    width: 35%;
    font-size: 0.9rem;
}

.summary-table td {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.next-steps {
    text-align: left;
    margin: 1.5rem 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
}

.next-steps h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.next-steps ol {
    margin-left: 1.25rem;
}

.next-steps li {
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ========== DATA TABLES ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--surface);
    color: var(--amber);
    font-weight: 600;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-transform: uppercase;
}

.data-table td {
    font-family: var(--mono);
    font-size: 0.85rem;
}

.data-table tr:hover {
    background: var(--surface);
}

/* ========== STATUS BADGES ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--mono);
}

.status-pending {
    background: rgba(255, 179, 0, 0.15);
    color: var(--amber);
    border: 1px solid var(--amber);
}

.status-approved {
    background: rgba(76, 175, 80, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
}

.status-rejected {
    background: rgba(244, 67, 54, 0.15);
    color: var(--red);
    border: 1px solid var(--red);
}

/* ========== LICENSE KEY DISPLAY ========== */
.license-key {
    font-family: var(--mono);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.no-results {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1.5rem;
    font-size: 0.95rem;
}

/* ========== RESULTS SECTION ========== */
.results-section {
    margin-top: 2rem;
}

.results-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--amber);
    font-family: var(--mono);
}

/* ========== VALIDATION RESULT ========== */
.validation-result {
    text-align: center;
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2rem;
    border: 1px solid;
}

.result-valid {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--green);
}

.result-invalid {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--red);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.validation-result h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.result-message {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.result-key code {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--amber);
}

.content-section p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.content-section ul {
    margin-left: 1.25rem;
    color: var(--muted);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.info-table th,
.info-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    text-align: left;
    color: var(--amber);
    font-weight: 600;
    width: 120px;
    background: var(--surface);
    font-family: var(--mono);
}

.info-table td {
    color: var(--muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .quickstats {
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .content-grid,
    .content-columns {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

/* ========== SCAN LINES EFFECT ========== */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ========== ACCENT CLASS ========== */
.accent {
    color: var(--amber);
}

/* ========== MONO CLASS ========== */
.mono {
    font-family: var(--mono);
}

/* ========== PAGE BADGE ========== */
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--amber-dim);
    border: 1px solid var(--amber);
    color: var(--amber);
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: var(--mono);
    margin-bottom: 1rem;
}

.page-header h1 .accent {
    color: var(--amber);
}

/* ========== HERO ACTIONS ========== */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-icon {
    font-size: 0.9em;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========== OPEN SOURCE / CELEBRATION STYLES ========== */
.open-source-hero {
    text-align: center;
    padding: 3rem 0;
}

.open-source-hero .hero-description {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1.1rem;
    color: var(--muted);
}

.open-source-hero .hero-actions {
    justify-content: center;
}

.hero-badge.celebration {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: #4caf50;
    color: #4caf50;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
}

.page-badge.celebration {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: #4caf50;
    color: #4caf50;
}

.celebration-card {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}

.highlight-card {
    border-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, transparent 100%);
}

.open-source-notice {
    border-left: 4px solid #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-github {
    color: var(--amber);
}

.footer-github:hover {
    text-decoration: underline;
}

/* ========== CARDS ========== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
}

.card h2,
.card h3 {
    color: var(--text);
    margin-bottom: 1rem;
}

.card h2 .accent,
.card h3 .accent {
    color: var(--amber);
}

.card p {
    color: var(--muted);
    line-height: 1.7;
}

.form-card {
    max-width: 600px;
}

.form-card.compact {
    max-width: 800px;
    margin-bottom: 2rem;
}

.table-card {
    overflow-x: auto;
}

.info-card {
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.content-card {
    margin-bottom: 1.5rem;
}

.content-card h2 {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
}

/* ========== CONTENT GRID LAYOUTS ========== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.content-columns {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.main-content-area {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 80px;
}

/* ========== FORM ENHANCEMENTS ========== */
.label-icon {
    color: var(--amber);
    margin-right: 0.25rem;
}

.required {
    color: var(--red);
    margin-left: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.flex-grow {
    flex: 1;
}

.form-actions.inline {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ========== STEPS ========== */
.steps {
    margin: 1rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.step-num {
    width: 24px;
    height: 24px;
    background: var(--amber);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.example-id {
    background: var(--surface2);
    padding: 0.75rem 1rem;
    border-radius: 3px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.example-id .label {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ========== LICENSE FORMAT BOX ========== */
.license-format-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1.25rem 0;
    text-align: center;
}

.license-format-label {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    font-family: var(--mono);
}

/* ========== FORMAT BREAKDOWN ========== */
.format-breakdown {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface2);
    border-radius: 3px;
}

.format-code {
    font-family: var(--mono);
    color: var(--amber);
    font-weight: 600;
    min-width: 100px;
}

.format-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ========== SPEC TABLE ========== */
.spec-table {
    margin-top: 1.5rem;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--surface2);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.spec-code {
    font-family: var(--mono);
    color: var(--amber);
    font-weight: 600;
    min-width: 100px;
}

.spec-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ========== STYLED LIST ========== */
.styled-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.styled-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--muted);
}

.list-icon {
    color: var(--amber);
}

.note {
    background: var(--amber-dim);
    border-left: 3px solid var(--amber);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* ========== LICENSE TYPES ========== */
.license-type {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.license-type:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.license-type strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.license-type p {
    font-size: 0.85rem;
    margin: 0;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--muted);
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
}

/* ========== BADGE PERPETUAL ========== */
.badge-perpetual {
    color: var(--green);
    font-family: var(--mono);
    font-size: 0.85rem;
}

/* ========== SUCCESS CARD ========== */
.success-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-header {
    margin-bottom: 2rem;
}

.success-header .success-icon {
    width: 60px;
    height: 60px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.success-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.success-card .lead {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.summary-grid {
    display: grid;
    gap: 0.75rem;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-item .value {
    font-size: 0.9rem;
}

.success-card .request-summary,
.success-card .next-steps {
    text-align: left;
    margin-bottom: 1.5rem;
}

.success-card .request-summary h3,
.success-card .next-steps h3 {
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ========== VALIDATION RESULT ENHANCEMENTS ========== */
.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-header .result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0;
}

.result-valid .result-icon {
    background: var(--green);
    color: #fff;
}

.result-invalid .result-icon {
    background: var(--red);
    color: #fff;
}

.result-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.result-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--surface2);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.result-key .label {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ========== FOOTER ENHANCEMENTS ========== */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-weight: 600;
}

.footer-divider {
    color: var(--border);
}

/* ========== ALERT ENHANCEMENTS ========== */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-icon {
    font-size: 1rem;
}

/* ========== DOCUMENTATION PAGE ========== */
.docs-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.docs-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-sidebar h3 {
    color: var(--amber);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.sidebar-divider {
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 0.25rem;
}

.docs-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--text);
    transition: background 0.2s;
}

.docs-nav a:hover {
    background: var(--surface2);
    text-decoration: none;
}

.docs-nav li.active a {
    background: var(--amber-dim);
    color: var(--amber);
}

.docs-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.docs-content h2 {
    color: var(--amber);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.markdown-body {
    line-height: 1.8;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: var(--text);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.markdown-body h1 { font-size: 1.75rem; color: var(--amber); }
.markdown-body h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.markdown-body h3 { font-size: 1.25rem; }

.markdown-body p {
    margin-bottom: 1em;
}

.markdown-body ul, .markdown-body ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.markdown-body li {
    margin-bottom: 0.25em;
}

.markdown-body pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.9rem;
    margin: 1em 0;
}

.markdown-body code {
    font-family: var(--mono);
    background: var(--surface2);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.markdown-body th, .markdown-body td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.markdown-body th {
    background: var(--surface2);
    color: var(--amber);
    font-weight: 600;
}

.markdown-body tr:hover {
    background: var(--surface2);
}

.markdown-body blockquote {
    border-left: 3px solid var(--amber);
    padding-left: 1rem;
    margin: 1em 0;
    color: var(--muted);
}

.markdown-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

.plaintext {
    font-family: var(--mono);
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ========== DOCS HUB (GitHub Links) ========== */
.docs-hub {
    margin-top: 2rem;
}

.docs-hub .info-banner {
    background: var(--amber-dim);
    border: 1px solid var(--amber);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.docs-hub .info-banner p {
    margin: 0;
    color: var(--text);
}

.repo-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.repo-docs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.repo-docs-card:hover {
    border-color: var(--amber);
}

.repo-docs-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.repo-docs-card > p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.docs-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.docs-list li {
    margin-bottom: 0.5rem;
}

.docs-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--text);
    transition: background 0.2s;
}

.docs-list a:hover {
    background: var(--surface2);
    text-decoration: none;
    color: var(--amber);
}

.repo-docs-card .btn {
    width: 100%;
    text-align: center;
}

.docs-footer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.docs-footer h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.docs-footer p {
    color: var(--muted);
    margin: 0;
}

/* ========== DOWNLOADS PAGE ========== */
.download-container {
    margin-top: 2rem;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

.download-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.download-icon {
    color: var(--amber);
    flex-shrink: 0;
}

.download-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.download-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.download-checksum {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checksum-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.checksum-value {
    font-size: 0.75rem;
    word-break: break-all;
    max-width: 100%;
}

.download-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== RESPONSIVE DOCS ========== */
@media (max-width: 900px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== ISSUE TRACKER ========== */

.issues-container {
    margin-top: 2rem;
}

.issues-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
}

.stat-item:hover {
    background: var(--surface2);
    text-decoration: none;
}

.stat-item.active {
    background: var(--amber-dim);
    color: var(--amber);
}

.stat-icon {
    font-size: 1rem;
}

.stat-count {
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.issues-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--amber);
}

.issues-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.filter-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-tag:hover {
    background: var(--surface2);
    text-decoration: none;
}

.filter-tag.active {
    background: var(--amber-dim);
    border-color: var(--amber);
    color: var(--amber);
}

.search-results-info {
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.issues-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.issue-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.issue-row:last-child {
    border-bottom: none;
}

.issue-row:hover {
    background: var(--surface2);
}

.issue-status-icon {
    font-size: 1.25rem;
    padding-top: 0.1rem;
}

.issue-status-icon.status-open,
.issue-status-icon.status-in-progress {
    color: var(--green);
}

.issue-status-icon.status-closed,
.issue-status-icon.status-resolved,
.issue-status-icon.status-wontfix {
    color: var(--red);
}

.issue-main {
    flex: 1;
    min-width: 0;
}

.issue-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.issue-title {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.issue-title:hover {
    color: var(--amber);
}

.issue-type-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    background: var(--surface2);
}

.issue-type-badge.type-bug { background: rgba(244, 67, 54, 0.2); color: #f44336; }
.issue-type-badge.type-feature { background: rgba(103, 58, 183, 0.2); color: #9575cd; }
.issue-type-badge.type-report { background: rgba(33, 150, 243, 0.2); color: #42a5f5; }
.issue-type-badge.type-question { background: rgba(255, 179, 0, 0.2); color: var(--amber); }

.priority-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.priority-low { background: var(--surface2); color: var(--muted); }
.priority-badge.priority-medium { background: rgba(255, 179, 0, 0.15); color: var(--amber); }
.priority-badge.priority-high { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.priority-badge.priority-critical { background: rgba(244, 67, 54, 0.2); color: #f44336; }

.issue-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.issue-number {
    color: var(--muted);
}

.issue-version {
    background: var(--surface2);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.issue-comments {
    display: flex;
    align-items: center;
}

.comment-count {
    font-size: 0.85rem;
    color: var(--muted);
}

.no-issues {
    padding: 3rem;
    text-align: center;
    color: var(--muted);
}

/* ========== ISSUE DETAIL ========== */

.issue-detail-container {
    margin-top: 2rem;
}

.issue-header {
    margin-bottom: 1.5rem;
}

.issue-title-block h1 {
    font-size: 1.75rem;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.issue-title-block .issue-number {
    color: var(--muted);
    font-weight: 400;
}

.issue-status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.status-open { background: rgba(76, 175, 80, 0.2); color: var(--green); }
.status-badge.status-in-progress { background: rgba(255, 179, 0, 0.2); color: var(--amber); }
.status-badge.status-resolved { background: rgba(103, 58, 183, 0.2); color: #9575cd; }
.status-badge.status-closed { background: rgba(244, 67, 54, 0.2); color: var(--red); }
.status-badge.status-wontfix { background: var(--surface2); color: var(--muted); }

.issue-meta-inline {
    color: var(--muted);
    font-size: 0.9rem;
}

.issue-content-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

.issue-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.issue-body {
    padding: 1.5rem;
}

.issue-author-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--amber);
}

.admin-avatar {
    background: var(--amber);
    color: var(--bg);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.no-description {
    color: var(--muted);
    font-style: italic;
}

.attached-report {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.attached-report h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.report-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.resolution-box {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--green);
}

.resolution-box h3 {
    color: var(--green);
    margin-bottom: 0.75rem;
}

.comments-section h3 {
    margin-bottom: 1rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.comment-admin {
    border-left: 3px solid var(--amber);
}

.comment-author-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-tag {
    background: var(--amber);
    color: var(--bg);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.comment-content {
    line-height: 1.6;
}

.no-comments {
    color: var(--muted);
    font-style: italic;
}

.add-comment {
    margin-top: 1.5rem;
}

.add-comment h4 {
    margin-bottom: 1rem;
}

.issue-closed-notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    color: var(--muted);
    margin-top: 1rem;
}

.issue-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-sidebar h4 {
    font-size: 0.85rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.issue-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.issue-details dt {
    color: var(--muted);
    font-size: 0.85rem;
}

.issue-details dd {
    font-size: 0.9rem;
}

.priority-text.priority-low { color: var(--muted); }
.priority-text.priority-medium { color: var(--amber); }
.priority-text.priority-high { color: #ff9800; }
.priority-text.priority-critical { color: var(--red); }

/* ========== NEW ISSUE FORM ========== */

.issue-new-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.optional-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--amber);
    background: var(--amber-dim);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    pointer-events: none;
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-types {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ========== ADMIN ISSUE STYLES ========== */

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--muted);
    font-size: 0.85rem;
}

.filter-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--border);
    text-decoration: none;
}

.filter-btn.active {
    background: var(--amber);
    color: var(--bg);
}

.row-critical {
    background: rgba(244, 67, 54, 0.05);
}

.row-high {
    background: rgba(255, 152, 0, 0.05);
}

.title-cell {
    max-width: 300px;
}

.title-cell a {
    color: var(--text);
}

.title-cell a:hover {
    color: var(--amber);
}

.type-badge {
    display: inline-block;
    font-size: 1rem;
}

.issue-admin-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.issue-admin-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.issue-admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-header-admin h2 {
    margin: 0 0 0.75rem 0;
}

.issue-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.reporter-info {
    padding: 1rem;
    background: var(--surface2);
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.reporter-email {
    color: var(--amber);
}

.created-date {
    color: var(--muted);
    margin-left: 1rem;
}

.issue-description {
    margin-top: 1rem;
}

.issue-description h4,
.attached-report h4 {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-date {
    color: var(--muted);
    font-size: 0.8rem;
}

.comment-body {
    line-height: 1.6;
}

.add-comment-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.add-comment-form h4 {
    margin-bottom: 1rem;
}

.btn-block {
    width: 100%;
}

.meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.meta-list dt {
    color: var(--muted);
}

.card-warning {
    background: rgba(255, 179, 0, 0.1);
    border-color: var(--amber);
}

/* ========== ISSUE TEMPLATE CHOOSER ========== */

.issue-chooser-container {
    max-width: 800px;
    margin: 0 auto;
}

.issue-chooser-header {
    text-align: center;
    margin-bottom: 2rem;
}

.issue-chooser-header h1 {
    margin-bottom: 0.5rem;
}

.issue-chooser-header p {
    color: var(--muted);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.template-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.template-card:hover {
    border-color: var(--amber);
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15);
    transform: translateY(-2px);
}

.template-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.template-card h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.template-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.template-arrow {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--amber);
    font-size: 0.85rem;
}

/* ========== ISSUE FORM STYLES ========== */

.issue-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--amber);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.issue-form-header {
    margin-bottom: 1.5rem;
}

.issue-form-header h1 {
    margin: 0.5rem 0 0.25rem;
}

.issue-form-header p {
    color: var(--muted);
    margin: 0;
}

.issue-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.issue-type-indicator.type-bug {
    background: rgba(231, 76, 60, 0.15);
    color: var(--red);
}

.issue-type-indicator.type-feature {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.issue-type-indicator.type-report {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
}

.issue-type-indicator.type-question {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.type-icon {
    font-size: 1rem;
}

.issue-form-card {
    padding: 2rem;
}

.issue-form .form-section {
    margin-bottom: 1.5rem;
}

.issue-form .form-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--amber);
}

.issue-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.issue-form .form-label.required::after {
    content: ' *';
    color: var(--red);
}

.issue-form .label-hint {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.form-control-lg {
    padding: 0.75rem;
    font-size: 1.1rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.form-error {
    display: block;
    font-size: 0.85rem;
    color: var(--red);
    margin-top: 0.35rem;
}

/* Info boxes */
.info-box-info,
.info-box-tip,
.info-box-warning {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-box-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.info-box-tip {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.info-box-warning {
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid var(--amber);
}

.info-box-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box-content a {
    color: var(--amber);
}

.info-box-content code {
    background: rgba(255, 179, 0, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* File upload zone */
.file-upload-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--amber);
    background: var(--amber-dim);
}

.file-upload-zone.has-file {
    border-style: solid;
    border-color: var(--green);
    background: rgba(46, 204, 113, 0.05);
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.file-upload-text {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.file-upload-zone .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-browse-link {
    color: var(--amber);
    cursor: pointer;
    text-decoration: underline;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.file-name-display {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 4px;
    display: none;
}

.file-upload-zone.has-file .file-name-display {
    display: block;
}

.file-name-display .file-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

.file-name-display .file-size {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Button enhancements */
.btn-icon {
    margin-right: 0.5rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
}

.btn-ghost:hover {
    border-color: var(--text);
    color: var(--text);
}

/* ========== RESPONSIVE ISSUES ========== */
@media (max-width: 900px) {
    .issue-content-grid,
    .issue-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    
    .issues-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: none;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .issue-form-card {
        padding: 1.25rem;
    }
}

/* ========== SDR SECTION ========== */
.sdr-card {
    border-left: 4px solid #00bcd4;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, transparent 100%);
}

.sdr-pipeline {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.sdr-pipeline code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--surface-alt);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== BETA TESTER SECTION ========== */
.beta-card {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, transparent 100%);
}

.beta-requirements,
.beta-scenarios {
    margin: 1rem 0;
}

.beta-requirements h4,
.beta-scenarios h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.beta-requirements ul,
.beta-scenarios ul {
    margin: 0;
    padding-left: 1.5rem;
}

.beta-requirements li,
.beta-scenarios li {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

/* ========== DONATION SECTION ========== */
.donation-card {
    border-left: 4px solid #e91e63;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, transparent 100%);
}

.cost-breakdown {
    margin: 1.5rem 0;
}

.cost-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.cost-table th,
.cost-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cost-table th {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.cost-table td {
    color: var(--text);
}

.cost-table .total-row {
    background: rgba(233, 30, 99, 0.1);
}

.cost-table .total-row td {
    color: var(--accent);
    font-weight: 600;
}

.donation-appeal {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--surface-alt);
    border-radius: 4px;
    text-align: center;
}

.appeal-text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ========== STANDBY PAGE ========== */
.standby-card {
    border: 2px dashed var(--border);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.05) 0%, transparent 100%);
}
