/* ============================================
   ORI Course Recommender – Styles
   Premium aviation-inspired design
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --bg-start: #0f172a;
    --bg-mid: #1e293b;
    --bg-end: #0f172a;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.10);
    --surface-active: rgba(96, 165, 250, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-active: rgba(96, 165, 250, 0.4);
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Background Orbs ---------- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -80px;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -20px);
    }

    50% {
        transform: translate(-20px, 30px);
    }

    75% {
        transform: translate(20px, 20px);
    }
}

/* ---------- App Container ---------- */
.app-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 1;
}

/* ---------- Screens ---------- */
.screen {
    display: none;
    width: 100%;
    max-width: 560px;
    animation: fadeSlideIn 0.45s ease-out;
}

.screen.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ---------- Card ---------- */
.card {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
}

/* ---------- Welcome Screen ---------- */
.welcome-card {
    text-align: center;
}

.logo-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.welcome-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}

.pill {
    padding: 6px 14px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

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

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-icon {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-icon:hover {
    background: var(--surface-active);
    color: var(--text);
}

/* ---------- Quiz Screen ---------- */
.quiz-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--surface-hover);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 14%;
}

.progress-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}

.question-container {
    animation: fadeSlideIn 0.35s ease-out;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.question-subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 22px;
}

/* ---------- Options ---------- */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text);
}

.option-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-active);
    transform: translateX(4px);
}

.option-btn:active {
    transform: translateX(2px);
}

.option-btn.selected {
    background: var(--surface-active);
    border-color: var(--primary-light);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.15);
}

.option-letter {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: var(--transition);
}

.option-btn:hover .option-letter,
.option-btn.selected .option-letter {
    background: var(--primary);
    color: #fff;
}

.option-label {
    flex: 1;
    line-height: 1.4;
}

.option-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- Result Screen ---------- */
.result-header {
    text-align: center;
    margin-bottom: 24px;
}

.result-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.result-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-subtext {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.result-content {
    margin-bottom: 24px;
}

/* Result Package Cards */
.pkg-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.pkg-card.best-match {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.pkg-card.backup {
    border-color: var(--border);
}

.pkg-card.upsell {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
}

.pkg-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.pkg-badge.best {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #fff;
}

.pkg-badge.alt {
    background: var(--surface-hover);
    color: var(--text-secondary);
}

.pkg-badge.up {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.pkg-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pkg-price {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.pkg-reasons {
    list-style: none;
    margin-bottom: 0;
}

.pkg-reasons li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.pkg-reasons li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Roadmap & Payment */
.result-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 14px;
}

.result-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roadmap-step {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    position: relative;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.roadmap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
}

.roadmap-step:not(:last-child) .roadmap-dot::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 10px);
    background: var(--border);
}

.roadmap-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.roadmap-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-label {
    color: var(--text-secondary);
}

.payment-value {
    font-weight: 700;
    color: var(--text);
}

.payment-value.highlight {
    color: var(--accent-light);
}

/* ---------- Contact Screen ---------- */
.contact-header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.contact-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.required {
    color: #ef4444;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-summary strong {
    color: var(--text);
}

.form-summary .summary-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Success Screen ---------- */
.success-card {
    text-align: center;
}

.success-animation {
    margin-bottom: 20px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark {
    width: 80px;
    height: 80px;
}

.checkmark-bg {
    stroke: var(--success);
    stroke-width: 2;
    animation: checkStroke 0.6s ease-in-out forwards;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

.checkmark-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: checkDraw 0.4s 0.5s ease-in-out forwards;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

@keyframes checkStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.contact-info-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 16px;
    margin-bottom: 24px;
}

.contact-info-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hotline {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

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

/* ---------- Spinner ---------- */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ---------- Button Link ---------- */
.btn-link {
    background: none;
    border: none;
    color: var(--primary-light);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 6px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* ---------- Button Outline ---------- */
.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1.5px solid var(--primary);
    margin-top: 10px;
    font-size: 0.92rem;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary-light);
}

/* ---------- Catalog Screen ---------- */
.catalog-card {
    max-width: 720px;
}

.catalog-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.catalog-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.catalog-subtitle {
    color: var(--accent-light);
    font-size: 0.88rem;
    font-weight: 600;
}

.catalog-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Category Section */
.cat-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.cat-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cat-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.cat-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Package Cards in Catalog */
.cat-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.cat-pkg-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cat-pkg-card:hover {
    border-color: var(--primary-light);
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.cat-pkg-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
}

.cat-pkg-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cat-pkg-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cat-pkg-price {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.cat-pkg-perhour {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 8px;
}

.cat-pkg-highlight {
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 10px;
    font-weight: 600;
}

.cat-pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.cat-pkg-features li {
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 2px 0;
    line-height: 1.4;
}

.cat-pkg-cta {
    font-size: 0.82rem;
    color: var(--primary-light);
    font-weight: 600;
    text-align: right;
}

/* Comparison Table */
.compare-section {
    margin-top: 12px;
    margin-bottom: 8px;
}

.compare-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    min-width: 400px;
}

.compare-table th {
    background: var(--surface-hover);
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    font-size: 0.75rem;
}

.compare-table th:first-child {
    text-align: left;
    min-width: 100px;
}

.compare-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    vertical-align: middle;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table .compare-label {
    text-align: left;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compare-table tr:hover td {
    background: rgba(37, 99, 235, 0.05);
}

/* Trial Banner */
.trial-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(37, 99, 235, 0.1));
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 24px;
}

.trial-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.trial-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 6px;
}

.trial-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.trial-cta {
    font-weight: 700;
    color: var(--accent-light) !important;
}

/* ---------- Detail Modal ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    overflow-y: auto;
}

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

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--surface-active);
    color: var(--text);
}

/* Detail Card Content */
.detail-card {
    text-align: left;
}

.detail-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #fff;
}

.detail-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.detail-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.detail-perhour {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 16px;
}

/* Meta Grid */
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-meta-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--surface-hover);
    border-radius: var(--radius-xs);
}

.detail-meta-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-meta-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-meta-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

/* Highlight */
.detail-highlight {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 18px;
    text-align: center;
}

/* Features */
.detail-features {
    margin-bottom: 18px;
}

.detail-features h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 5px 0;
    line-height: 1.5;
}

/* Installment */
.detail-installment {
    margin-bottom: 18px;
}

.detail-installment h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.installment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.installment-step {
    text-align: center;
    background: var(--surface-hover);
    border-radius: var(--radius-xs);
    padding: 8px 4px;
}

.installment-num {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.installment-amount {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Trial in detail */
.detail-trial {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius-xs);
    padding: 14px;
    margin-bottom: 20px;
}

.detail-trial h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 6px;
}

.detail-trial p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Detail Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-actions .btn {
    width: 100%;
    text-align: center;
}

.detail-actions .btn-secondary {
    text-decoration: none;
}

/* ---------- Footer ---------- */
.app-footer {
    text-align: center;
    padding: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.app-footer a {
    color: var(--primary-light);
    text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .card {
        padding: 28px 20px;
    }

    .welcome-card h1 {
        font-size: 1.45rem;
    }

    .question-title {
        font-size: 1.05rem;
    }

    .option-btn {
        padding: 12px 14px;
        font-size: 0.87rem;
    }

    .pkg-name {
        font-size: 0.95rem;
    }

    .pkg-price {
        font-size: 1.05rem;
    }

    .bg-orb-1 {
        width: 300px;
        height: 300px;
    }

    .bg-orb-2 {
        width: 250px;
        height: 250px;
    }

    .bg-orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 22px 16px;
    }

    .feature-pills {
        gap: 6px;
    }

    .pill {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}