:root {
    --bg-dark: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --primary-glow: #00d4ff;
    --secondary-glow: #0088cc;
    --text-main: #e8e8e8;
    --text-muted: #888888;
}

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

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.6); }
    100% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 136, 204, 0.03) 0%, transparent 50%);
}

/* Background Glowing Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
}
.glass-panel:nth-child(1) { animation-delay: 0.1s; }
.glass-panel:nth-child(2) { animation-delay: 0.2s; }
.glass-panel:nth-child(3) { animation-delay: 0.3s; }
.glass-panel:nth-child(4) { animation-delay: 0.4s; }
.glass-panel:nth-child(5) { animation-delay: 0.5s; }
.glass-panel:nth-child(6) { animation-delay: 0.6s; }
.glass-panel:nth-child(7) { animation-delay: 0.7s; }
.glass-panel:nth-child(8) { animation-delay: 0.8s; }
.glass-panel:nth-child(9) { animation-delay: 0.9s; }
.glass-panel:nth-child(10) { animation-delay: 1.0s; }

.glass-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.22);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38), 0 0 14px rgba(0, 212, 255, 0.08);
}
.glass-panel:hover .badge {
    animation: pulseGlow 1.5s infinite;
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.nav-logo {
    height: 35px;
    width: auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.highlight {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-glow);
}

/* Typography & Layout */
.section-padding {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem 5%;
    gap: 4rem;
}
.hero-content {
    padding: 4rem;
    text-align: left;
    max-width: 700px;
}
.hero-image-container {
    position: relative;
    max-width: 600px;
    perspective: 1000px;
}
.hero-mockup {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}
.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(40px);
}
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-glow);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}
h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}
.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}
.feature-card h3 {
    color: var(--primary-glow);
    margin-bottom: 0.5rem;
}

.llm-icon {
    width: 32px;
    height: 32px;
    vertical-align: text-bottom;
    margin-right: 12px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}
.btn-primary-small {
    padding: 0.5rem 1.5rem;
    background: var(--primary-glow);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
}
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background 0.3s;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Method Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.method-card {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
}
.method-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}
.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 1rem;
    overflow: visible;
}
.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary-glow);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
    padding-top: 5.4rem;
}
.pricing-card.popular:hover {
    transform: scale(1.08);
}
.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-glow);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(0, 212, 255, 0.2);
    z-index: 2;
}
.pricing-card h3 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0;
}
.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0 0;
    line-height: 1;
}
.price span {
    font-size: 1rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.features {
    list-style: none;
    margin-bottom: 1.5rem;
    margin-top: 0.25rem;
    text-align: left;
    flex: 1;
}
.features li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(90deg, var(--primary-glow), #00ffaa, var(--primary-glow));
    background-size: 200% auto;
    animation: gradientText 3s linear infinite;
}
.pricing-card button {
    width: 100%;
    margin-top: auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    z-index: -1;
    background-size: 80px auto;
    background-repeat: no-repeat;
    background-position: right 20px top 20px;
    pointer-events: none;
    transition: opacity 0.3s;
}
.glass-panel:hover::before {
    opacity: 0.15;
}

/* Specific Flags */
.flag-fr::before { background-image: url("https://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg"); }
.flag-cn::before { background-image: url("https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg"); }
.flag-us::before { background-image: url("https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg"); }

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

.profile-card {
    padding: 1.75rem;
}

.profile-card .badge {
    margin-bottom: 1.1rem;
}

.profile-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.profile-summary {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-points {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.profile-points span {
    color: var(--primary-glow);
    font-weight: 700;
}

.profile-card .stats p {
    color: rgba(255, 255, 255, 0.9);
}

/* Fine-Tuning Hook */
.hook-shell {
    padding: 2.75rem;
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.07), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 105, 246, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.02);
}

.hook-copy {
    max-width: 900px;
    margin-bottom: 2rem;
}

.hook-title {
    text-align: left;
    margin-bottom: 1rem;
}

.hook-subtitle {
    margin-bottom: 0;
}

.hook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.hook-card {
    padding: 1.6rem;
    border-radius: 18px;
    background: rgba(5, 12, 22, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hook-card h3 {
    color: var(--primary-glow);
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}

.hook-card p {
    color: var(--text-muted);
}

/* Order Section */
.order-shell {
    padding: 2.5rem;
}

.order-intro {
    max-width: 920px;
    margin-bottom: 2rem;
}

.order-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.order-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.order-tab {
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.25s ease;
}

.order-tab:hover,
.order-tab.is-active {
    border-color: rgba(0, 212, 255, 0.45);
    color: var(--primary-glow);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

.order-panel {
    display: none;
    padding: 2rem;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(4, 10, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-panel.is-active {
    display: block;
    animation: fadeInUp 0.35s ease-out;
}

.panel-copy {
    max-width: 900px;
    margin-bottom: 1.5rem;
}

.panel-copy h3 {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
}

.panel-copy p {
    color: var(--text-muted);
}

.order-form {
    display: grid;
    gap: 1.2rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-form label {
    display: grid;
    gap: 0.45rem;
}

.order-form label span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    padding: 0.95rem 1rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.order-form select option {
    color: #111;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
    background: rgba(255, 255, 255, 0.055);
}

.form-checks {
    display: grid;
    gap: 0.75rem;
}

.checkbox-row {
    display: flex !important;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-muted);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--primary-glow);
}

.checkbox-row span {
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 0.4rem;
}

.form-status {
    display: none;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    border-color: rgba(80, 220, 160, 0.35);
    background: rgba(80, 220, 160, 0.1);
    color: #a9ffd0;
}

.form-status.is-error {
    border-color: rgba(255, 110, 140, 0.35);
    background: rgba(255, 110, 140, 0.12);
    color: #ffd0d8;
}

/* Auth / Dashboard */
.auth-page {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 620px;
    padding: 2rem;
}

.auth-form {
    margin-top: 1.25rem;
}

.auth-hint {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #bdefff;
}

.auth-title {
    font-size: 2.4rem;
    line-height: 1.08;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #bfc8d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-back {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--primary-glow);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
}

.auth-support {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.support-list {
    margin: 0.8rem 0 1rem 1.2rem;
}

.support-list li {
    margin-bottom: 0.45rem;
}

.setup-help {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.dashboard-shell {
    width: min(100%, 1180px);
}

.dashboard-card {
    max-width: none;
}

.dashboard-card:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-panel {
    padding: 1.35rem;
    border-radius: 18px;
    background: rgba(5, 12, 22, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-panel h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-glow);
}

.dashboard-metric {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.metric-label {
    color: rgba(255, 255, 255, 0.65);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 1rem;
}

.dashboard-main,
.dashboard-side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.dashboard-next-step p {
    color: var(--text-main);
    font-size: 1.05rem;
}

.dashboard-edit-form {
    margin-top: 0.4rem;
}

.dashboard-edit-form textarea {
    min-height: 132px;
}

.dashboard-order-list {
    display: grid;
    gap: 0.9rem;
}

.order-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-card,
.order-card:visited,
.order-card:hover,
.order-card:active {
    color: var(--text-main);
}

.order-card:hover,
.order-card.is-selected {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    background: rgba(255, 255, 255, 0.05);
}

.order-card.is-selected {
    border-color: rgba(0, 212, 255, 0.18);
    background: rgba(0, 212, 255, 0.05);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.order-code {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.order-date {
    color: rgba(232, 232, 232, 0.82);
    font-size: 0.92rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-submitted {
    color: #ffe29a;
    background: rgba(255, 196, 61, 0.12);
    border-color: rgba(255, 196, 61, 0.25);
}

.status-access_pending {
    color: #ffb8c8;
    background: rgba(255, 99, 132, 0.12);
    border-color: rgba(255, 99, 132, 0.25);
}

.status-queued {
    color: #9edcff;
    background: rgba(0, 170, 255, 0.12);
    border-color: rgba(0, 170, 255, 0.25);
}

.status-scoping {
    color: #d3b7ff;
    background: rgba(165, 106, 255, 0.12);
    border-color: rgba(165, 106, 255, 0.25);
}

.status-active {
    color: #aaf6c6;
    background: rgba(80, 220, 160, 0.12);
    border-color: rgba(80, 220, 160, 0.25);
}

.detail-block {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.detail-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.order-stages {
    display: grid;
    gap: 0.65rem;
    margin: 1.15rem 0;
}

.stage {
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.68);
}

.stage-done {
    border-color: rgba(80, 220, 160, 0.25);
    background: rgba(80, 220, 160, 0.1);
    color: #bff7d4;
}

.stage-current {
    border-color: rgba(0, 212, 255, 0.28);
    background: rgba(0, 212, 255, 0.12);
    color: #c9f6ff;
}

.detail-list {
    display: grid;
    gap: 0.65rem;
}

.detail-row {
    display: grid;
    gap: 0.28rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-row span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
    text-transform: capitalize;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-table th {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .pricing-card.popular,
    .pricing-card.popular:hover {
        transform: none;
    }

    .hook-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .pricing-card {
        padding: 2rem 1.35rem;
    }

    .pricing-card.popular {
        padding-top: 4.8rem;
    }

    .popular-badge {
        max-width: calc(100% - 2rem);
        white-space: normal;
        line-height: 1.2;
    }

    .price {
        font-size: 2.7rem;
    }

    .order-shell {
        padding: 1.4rem;
    }

    .order-panel {
        padding: 1.2rem;
    }

    .order-intro h3,
    .panel-copy h3 {
        font-size: 1.45rem;
    }

    .order-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .order-tab,
    .form-actions button {
        width: 100%;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions a {
        width: 100%;
        text-align: center;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .order-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* kcf deploy sync */
/* kcf flow sync */
/* kcf cards sync */

/* --- Restored & Updated KCF Styles --- */
.grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)) !important;
    gap: 20px !important;
}

.btn-pdf {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    border: none;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
}
.btn-pdf:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.glass-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    z-index: -1;
    background-size: 80px auto;
    background-repeat: no-repeat;
    background-position: right 20px top 20px;
    pointer-events: none;
    transition: opacity 0.3s;
}
.glass-panel:hover::before {
    opacity: 0.15;
}

/* Specific Flags */
.flag-fr::before { background-image: url("https://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg"); }
.flag-cn::before { background-image: url("https://upload.wikimedia.org/wikipedia/commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg"); }
.flag-us::before { background-image: url("https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg"); }
