/* ============================================
   Multi-Agent Travel Planner - Styles
   ============================================ */

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: #1e2130;
    --bg-card-hover: #252840;
    --border: #2a2d3e;
    --text-primary: #e4e6f0;
    --text-secondary: #8b8fa3;
    --text-muted: #5d6178;
    --accent-blue: #4f8ff7;
    --accent-green: #34d399;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #a78bfa;
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 32px 0 16px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.2s;
}

.dashboard-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(79, 143, 247, 0.06);
}

/* Search */
.search-section {
    padding: 24px 0;
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    transition: border-color 0.2s;
}

.search-container:focus-within {
    border-color: var(--accent-blue);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 8px 12px;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.search-container button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.search-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.example-queries {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.example-queries span {
    color: var(--text-muted);
    font-size: 13px;
}

.example-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 440px;
    margin: 0 auto 24px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.tab-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-btn.active svg {
    color: var(--accent-blue);
}

.tab-btn .notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 1.5s infinite;
}

.tab-content {
    padding-bottom: 48px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 500px;
}

.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-height: 600px;
}

.experience-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.experience-right {
    position: sticky;
    top: 24px;
    height: fit-content;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.card-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-header svg {
    flex-shrink: 0;
}

.analysis-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-blue);
}

/* Agent Cards */
.agent-count {
    margin-left: auto;
    background: var(--accent-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
}

.agents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.agent-card.running {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.agent-card.completed {
    border-color: var(--accent-green);
}

.agent-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-muted);
}

.agent-card.running .agent-status-dot {
    background: var(--accent-orange);
    animation: pulse 1.5s infinite;
}

.agent-card.completed .agent-status-dot {
    background: var(--accent-green);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.agent-info {
    flex: 1;
    min-width: 0;
}

.agent-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.agent-reason {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-time {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.agent-category-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Category Colors */
.cat-flights { background: rgba(79, 143, 247, 0.15); color: var(--accent-blue); }
.cat-hotels { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); }
.cat-restaurants { background: rgba(244, 114, 182, 0.15); color: var(--accent-pink); }
.cat-attractions { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.cat-weather { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.cat-visa { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.cat-transportation { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.cat-budget { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.cat-safety { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }
.cat-culture { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); }
.cat-packing { background: rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.cat-family { background: rgba(244, 114, 182, 0.15); color: var(--accent-pink); }
.cat-accessibility { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.cat-general { background: rgba(139, 143, 163, 0.15); color: var(--text-secondary); }

/* Timing */
.timing-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timing-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timing-bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timing-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.timing-bar-label span:first-child {
    color: var(--text-secondary);
}

.timing-bar-label span:last-child {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.timing-bar-track {
    height: 28px;
    background: var(--bg-primary);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.timing-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.timing-bar-fill.sequential {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.timing-bar-fill.parallel {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

.speedup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 700;
}

/* Agent Gantt Chart */
.gantt-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.gantt-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gantt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}

.gantt-label {
    font-size: 11px;
    color: var(--text-secondary);
    width: 100px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-track {
    flex: 1;
    height: 20px;
    background: var(--bg-primary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.gantt-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: white;
    min-width: 30px;
    transition: width 0.5s ease-out, left 0.5s ease-out;
}

/* Map */
.map-card {
    height: calc(100vh - 200px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.map-container {
    flex: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.map-legend {
    display: flex;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Map Popups */
.mapboxgl-popup-content {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    box-shadow: var(--shadow) !important;
    font-family: inherit !important;
    max-width: 250px !important;
}

.mapboxgl-popup-tip {
    border-top-color: var(--bg-card) !important;
}

.mapboxgl-popup-close-button {
    color: var(--text-secondary) !important;
    font-size: 18px !important;
    padding: 4px 8px !important;
}

.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.popup-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.popup-cost {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 6px;
}

/* Itinerary */
.itinerary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.itinerary-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.itinerary-summary {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.itinerary-cost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(79, 143, 247, 0.1);
    border: 1px solid rgba(79, 143, 247, 0.3);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
}

/* Generating Indicator */
.generating-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    animation: fadeInUp 0.3s ease-out;
}

.generating-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

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

.day-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-primary);
    cursor: pointer;
    user-select: none;
}

.day-number {
    background: var(--accent-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.day-title {
    font-size: 14px;
    font-weight: 600;
}

.day-toggle {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.day-card.open .day-toggle {
    transform: rotate(180deg);
}

.day-activities {
    padding: 12px 16px;
    display: none;
}

.day-card.open .day-activities {
    display: block;
}

.activity {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.activity:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    white-space: nowrap;
    min-width: 50px;
}

.activity-details {
    flex: 1;
}

.activity-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.activity-location, .activity-cost {
    font-size: 11px;
    color: var(--text-muted);
}

.activity-cost {
    color: var(--accent-green);
}

/* Tips Section */
.tips-section {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.tips-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-orange);
}

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

.tips-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.tips-list li::before {
    content: "\2022";
    color: var(--accent-orange);
    position: absolute;
    left: 0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-right {
        position: static;
    }

    .map-card {
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .search-container {
        flex-direction: column;
    }

    .example-queries {
        display: none;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.3s ease-out;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

/* Progress Bar */
.progress-bar-container {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.progress-step span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.progress-step.active span {
    color: var(--accent-blue);
}

.progress-step.completed span {
    color: var(--accent-green);
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.progress-step.active .step-dot {
    background: var(--accent-blue);
    box-shadow: 0 0 8px rgba(79, 143, 247, 0.5);
    animation: pulse 1.5s infinite;
}

.progress-step.completed .step-dot {
    background: var(--accent-green);
    box-shadow: none;
    animation: none;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 20px;
    transition: background 0.3s;
    max-width: 60px;
}

.progress-line.active {
    background: var(--accent-green);
}

.progress-detail {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Trip Content */
.trip-content {
    padding-bottom: 48px;
}

/* Dashboard Content */
.dashboard-content {
    padding-bottom: 48px;
}

/* Result Summary */
.result-summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-title {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.result-stats {
    display: flex;
    gap: 16px;
    padding: 12px 0;
}

.result-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.view-trip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.view-trip-btn:hover {
    opacity: 0.9;
}

/* BYOK Modal */
.byok-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.byok-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.byok-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.byok-close:hover {
    color: var(--text-primary);
}

.byok-header {
    margin-bottom: 24px;
}

.byok-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-red);
    display: block;
    margin-bottom: 8px;
}

.byok-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.byok-header p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.byok-provider {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.byok-provider-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.byok-provider-btn.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(52, 211, 153, 0.08);
}

.byok-instructions {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.byok-instructions-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.byok-instructions ol {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.byok-instructions li {
    counter-increment: step;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 28px;
    position: relative;
}

.byok-instructions li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.byok-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.byok-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: monospace;
    outline: none;
    transition: border-color 0.2s;
}

.byok-input:focus {
    border-color: var(--accent-blue);
}

.byok-input::placeholder {
    color: var(--text-muted);
}

.byok-submit {
    padding: 12px 24px;
    background: var(--accent-green);
    color: #0f1117;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.byok-submit:hover {
    opacity: 0.9;
}

.byok-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-bottom: 8px;
}

.byok-footer {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Key Status Badge */
.key-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.key-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.key-badge-free {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.key-badge-active {
    background: rgba(79, 143, 247, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 143, 247, 0.3);
}

.key-badge-expired {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.key-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.key-remove-btn:hover {
    color: var(--accent-red);
}
