/* ===== CSS Variables & Reset ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #1e2844;
    --bg-input: #0f1729;
    --border: #2a3555;
    --border-focus: #6366f1;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --red: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.2);
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.2);
    --yellow: #eab308;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #ffffff;
    --border: #e2e8f0;
    --border-focus: #4f46e5;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-hover: #6366f1;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite alternate;
}

[data-theme="light"] body::before {
    background: radial-gradient(circle at 30% 20%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
}

@keyframes bgShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -3%);
    }
}

/* ===== App Container ===== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.4));
}

@keyframes logoPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(99, 102, 241, 0.15);
    }
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--green);
}

/* ===== Theme Switch ===== */
.theme-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: #0f172a;
    /* Always dark-ish background for the pill */
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all var(--transition);
}

[data-theme="light"] .theme-switch {
    background: #e2e8f0;
    /* Light grayish background for the pill in light mode */
}

.theme-switch:hover {
    border-color: var(--accent);
}

.theme-switch input {
    display: none;
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    z-index: 1;
}

.theme-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #1e293b;
    /* Dark knob */
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

[data-theme="light"] .theme-slider::before {
    background: #ffffff;
    /* White knob */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.theme-switch input:checked~.theme-slider::before {
    transform: translateX(28px);
}

.theme-slider svg {
    width: 14px;
    height: 14px;
    transition: 0.3s;
}

.theme-slider .sun {
    color: #eab308;
    /* Yellow */
}

.theme-slider .moon {
    color: #64748b;
    /* Muted */
}

.theme-switch input:checked~.theme-slider .sun {
    color: #94a3b8;
    /* Muted */
}

.theme-switch input:checked~.theme-slider .moon {
    color: #4f46e5;
    /* Accent */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== Main Content ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex: 1;
    padding-bottom: 24px;
}

/* ===== Panel ===== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.panel-header h2 svg {
    color: var(--accent);
}

.channel-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

/* ===== Input Area ===== */
.input-area {
    padding: 16px 20px;
}

#urlInput {
    width: 100%;
    min-height: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color var(--transition);
    line-height: 1.8;
}

#urlInput:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#urlInput::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ===== URL List Preview ===== */
.url-list {
    padding: 0 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.url-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.url-item .url-index {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.url-item .url-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.url-item .url-type {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 500;
    flex-shrink: 0;
}

.url-type.channel {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-hover);
}

.url-type.playlist {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

.url-type.video {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.url-item .btn-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.url-item .btn-remove:hover {
    color: var(--red);
    background: var(--red-glow);
}

/* ===== Settings Panel ===== */
.settings-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setting-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.radio-card input {
    display: none;
}

.radio-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.radio-card.active {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-icon {
    font-size: 1.2rem;
}

.radio-text strong {
    display: block;
    font-size: 0.85rem;
}

.radio-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Inputs */
.input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    transition: border-color var(--transition);
}

.input-with-icon:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-with-icon svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.input-with-icon input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 0.9rem;
    font-family: inherit;
}

.input-with-icon input:focus {
    outline: none;
}

.btn-browse {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-browse:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.btn-browse:hover svg {
    color: var(--accent);
}

.select-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.select-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* Toggle Options */
.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.toggle-option:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.toggle-option input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--border);
    border-radius: 11px;
    flex-shrink: 0;
    transition: background var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle-option input:checked~.toggle-switch {
    background: var(--accent);
}

.toggle-option input:checked~.toggle-switch::after {
    left: 21px;
    background: white;
}

/* Inline Settings */
.inline-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.inline-setting {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inline-setting label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.inline-setting input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.inline-setting input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--accent-hover);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* ===== Setting Actions (buttons inside settings panel) ===== */
.setting-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.btn-full {
    flex: 1;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== Tools Download ===== */
.tools-download-row {
    display: flex;
    gap: 8px;
}

.btn-tool-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: var(--green);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-tool-download:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-color: var(--green);
    box-shadow: 0 0 12px var(--green-glow);
    transform: translateY(-1px);
}

.btn-tool-download svg {
    flex-shrink: 0;
}

.tools-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.5;
}

/* ===== Command Bar ===== */
.command-bar {
    padding: 16px 0;
    margin-top: 0;
}

.command-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

#previewCode {
    flex: 1;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent-hover);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-copy:hover {
    color: var(--accent);
}

/* ===== Copyright Footer ===== */
.copyright-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.copyright-footer strong {
    color: var(--accent-hover);
    font-weight: 700;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-hover);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}

.contact-link:hover {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.contact-link svg {
    flex-shrink: 0;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setting-actions {
        flex-direction: column;
    }

    .copyright-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== Floating Guide Button ===== */
.floating-guide-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 100;
    transition: all var(--transition);
    animation: floatBounce 2s infinite ease-in-out;
}

.floating-guide-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px var(--accent-glow);
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== Guide Modal ===== */
.guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.guide-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.guide-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.guide-modal-overlay.show .guide-modal-content {
    transform: translateY(0) scale(1);
}

.guide-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.guide-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-modal:hover {
    color: var(--red);
    background: var(--red-glow);
}

.guide-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guide-intro {
    background: rgba(99, 102, 241, 0.08);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    margin-bottom: 24px;
    color: var(--text-primary);
}

.guide-section {
    margin-bottom: 24px;
}

.guide-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-hover);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.guide-section p {
    margin-bottom: 10px;
}

.guide-section ul, .guide-section ol {
    margin-top: 8px;
    padding-left: 20px;
}

.guide-section li {
    margin-bottom: 8px;
}

.guide-note {
    background: var(--bg-input);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 14px;
    font-size: 0.9rem;
}

.guide-note ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 8px;
}

.guide-note li {
    margin-bottom: 6px;
}

.guide-modal-body code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.guide-footer {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}