/* ===== KIMS AI Design System ===== */

/* 이미지 호버 확대 팝업 (전역) */
#img-hover-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    max-width: 280px;
    max-height: 280px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
}

/* Pretendard Font */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* CSS Custom Properties — White Theme */
:root {
    --color-primary: #F5A623;
    --color-primary-dark: #E09518;
    --color-primary-light: rgba(245,166,35,0.10);
    --color-surface: #ffffff;
    --color-surface-alt: #f8f9fa;
    --color-background: #f5f5f7;
    --color-text: #111827;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-border: rgba(0,0,0,0.08);
    --color-border-light: rgba(0,0,0,0.04);
    --color-success: #059669;
    --color-success-bg: rgba(5,150,105,0.08);
    --color-danger: #dc2626;
    --color-danger-bg: rgba(220,38,38,0.08);
    --color-warning: #d97706;
    --color-warning-bg: rgba(217,119,6,0.08);
    --color-naver: #03C75A;
    --color-header-start: #ffffff;
    --color-header-end: #f8f9fa;

    /* Brand accent (amber/gold) */
    --color-accent: #E09518;
    --color-accent-hover: #c97f0a;
    --color-accent-bg: rgba(245,166,35,0.08);
    --color-accent-border: rgba(245,166,35,0.20);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 24px;
    --radius-full: 50%;

    /* Soft shadows (white theme) */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.10);
    --shadow-xl: 0 8px 16px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast: 0.1s ease;
    --transition-base: 0.15s ease;
    --transition-slow: 0.3s ease;
    --ease-out-expo: cubic-bezier(0.2, 0, 0, 1);

    /* Z-index scale */
    --z-sidebar: 100;
    --z-topbar: 50;
    --z-dropdown: 200;
    --z-modal: 1000;
    --z-toast: 1100;

    /* Font size tokens */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 24px;

    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Typography ===== */
h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.3; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.4; }
h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.4; }

/* Focus ring (keyboard accessibility) */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Layout: Header ===== */
.header {
    background: #ffffff;
    color: var(--color-text);
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    color: var(--color-text);
}

.header a {
    color: var(--color-text);
    text-decoration: none;
}

/* Header Navigation Links */
.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a,
.header-link {
    padding: 8px 16px;
    background: rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}

.nav-links a:hover,
.header-link:hover {
    background: rgba(0,0,0,0.10);
    text-decoration: none;
}

.nav-links a.active {
    background: rgba(0,0,0,0.12);
}

.header-link--admin {
    background: rgba(251, 146, 60, 0.7);
}

.header-link--admin:hover {
    background: rgba(251, 146, 60, 0.9);
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(0,0,0,0.06);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(0,0,0,0.10);
    text-decoration: none;
}

/* ===== Layout: Container ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px;
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1200px;
}

/* ===== Card ===== */
.card {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.card h2 {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

/* ===== Form Components ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.1px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-family);
    color: var(--color-text);
    font-weight: 500;
    background: var(--color-surface);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

input:read-only {
    background: var(--color-background);
    color: var(--color-text-secondary);
    font-weight: 400;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 32px;
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
    opacity: 0.6;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.required {
    color: var(--color-danger);
    margin-right: 2px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

input[type="file"] {
    display: none;
}

/* ===== Button System ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(245,166,35,0.25);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f1f3;
    color: var(--color-text);
    border: 1.5px solid rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: rgba(0,0,0,0.12);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

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

.btn-outline:hover {
    background: rgba(245,166,35,0.12);
    color: var(--color-accent);
}

.btn-naver {
    background: var(--color-naver);
    color: white;
    font-weight: 600;
}

.btn-naver:hover {
    background: #02b050;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.04);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
}

.btn-disabled,
.btn:disabled {
    background: #e5e7eb;
    color: var(--color-text-muted);
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* ===== Alert System ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(52,211,153,0.2);
}

.alert-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(248,113,113,0.2);
}

.alert-info {
    background: var(--color-primary-light);
    color: var(--color-accent);
    border: 1px solid var(--color-accent-border);
}

/* ===== Data Table ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    background: var(--color-surface-alt, #f8f9fa);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.data-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

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

.data-table tr:hover td {
    background: rgba(0,0,0,0.02);
}

.data-table .amount-minus {
    color: var(--color-danger);
    font-weight: 600;
}

.data-table .amount-plus {
    color: var(--color-success);
    font-weight: 600;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-accent);
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-admin {
    background: #fb923c;
    color: white;
}

.badge-free {
    background: #f0f1f3;
    color: var(--color-text-secondary);
    border: 1px solid rgba(0,0,0,0.08);
}

.badge-pro {
    background: var(--color-accent);
    color: #ffffff;
}

.badge-enterprise {
    background: #1e293b;
    color: white;
}

/* ===== Tab System (Pill / Segment Control) ===== */
.tabs {
    display: inline-flex;
    gap: 2px;
    margin-bottom: 28px;
    background: #f0f1f3;
    border-radius: 10px;
    padding: 3px;
    border-bottom: none;
}

.tab {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 8px;
    border: none;
    transition: all var(--transition-base);
    background: none;
    font-family: var(--font-family);
    white-space: nowrap;
}

.tab:hover:not(.active) {
    color: var(--color-text-secondary);
}

.tab.active {
    color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== Filter Buttons ===== */
.filter-btn {
    padding: 8px 18px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-pill);
    background: #f0f1f3;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
}

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

.filter-btn.active {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.empty-state .icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

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

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--color-text);
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ===== Stat Cards ===== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.stat-card .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-card .label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ===== Info Note ===== */
.info-note {
    background: rgba(245,166,35,0.08);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--color-accent);
    margin-bottom: 20px;
    border: 1px solid var(--color-accent-border);
}

/* ===== Divider ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.divider-text {
    padding: 0 15px;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ===== Section ===== */
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.hidden { display: none; }

/* ===== Auth Page Layout (Login/Signup) ===== */
.auth-page {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.auth-logo h1 {
    font-size: 20px;
    color: var(--color-text);
    font-weight: 700;
}

.auth-logo p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.auth-footer p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Project Grid (Index) ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,0,0,0.10);
}

.project-thumb {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--color-header-start) 0%, var(--color-header-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
}

.status-draft {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.status-completed {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.project-info {
    padding: 14px;
}

.project-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.project-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-light);
}

/* ===== Credit Dashboard ===== */
.credit-dashboard {
    background: linear-gradient(135deg, var(--color-header-start) 0%, var(--color-header-end) 100%);
    border-radius: var(--radius-xl);
    padding: 30px;
    color: white;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.credit-amount {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.credit-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 600;
}

.plan-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #F5A623, #E09518);
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}

/* ===== Plan Grid ===== */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.plan-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-card.current {
    border-color: var(--color-accent);
}

.plan-card.current::after {
    content: '\D604\C7AC \D50C\B79C';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--color-accent);
    color: #ffffff;
    padding: 3px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 8px 0;
}

.plan-price span {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.plan-credits {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.plan-features {
    list-style: none;
    margin-bottom: 16px;
}

.plan-features li {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 4px 0;
}

.plan-features li::before {
    content: '✓';
    margin-right: 6px;
    color: var(--color-accent);
}

.plan-features li.disabled {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.plan-features li.disabled::before {
    content: '✕';
    color: var(--color-text-muted);
}

/* ===== Package Grid ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.package-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: all 0.2s;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.package-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.package-credits {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}

.package-credits span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.package-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: 8px 0 16px;
}

/* ===== Cost Table ===== */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cost-table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: #f0f1f3;
}

.cost-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}

/* ===== Landing Page: Hero Variables ===== */
:root {
    --color-hero-bg: #f0f4ff;
    --color-hero-surface: #ffffff;
    --color-hero-accent: #E09518;
    --color-hero-accent-light: #c97f0a;
    --gradient-brand: linear-gradient(135deg, #F5A623 0%, #E09518 50%, #d4880a 100%);
    --gradient-hero: linear-gradient(160deg, #f0f4ff 0%, #e8ecf8 50%, #f5f5f7 100%);
    --gradient-cta: linear-gradient(135deg, #E09518 0%, #c97f0a 100%);
    --shadow-glow: 0 0 40px rgba(245, 166, 35, 0.25);
    --shadow-glow-sm: 0 0 20px rgba(245, 166, 35, 0.15);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Utility: Gradient Text ===== */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
}

/* ===== Landing: Sticky Nav ===== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: all 0.3s ease;
    background: transparent;
}
.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 12px 24px;
}
.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.landing-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-logo:hover { text-decoration: none; }
.landing-logo .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-nav-links a {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}
.landing-nav-links a:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}
.landing-nav-links .btn-nav-cta {
    background: var(--gradient-cta);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.landing-nav-links .btn-nav-cta:hover {
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-1px);
}

/* ===== Landing: Hero ===== */
.landing-hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}
.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    pointer-events: none;
}
.landing-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 166, 35, 0.10);
    border: 1px solid rgba(245, 166, 35, 0.25);
    color: var(--color-hero-accent);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.landing-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.landing-hero p.hero-desc {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-cta);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-hero-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--color-text);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.10);
}
.btn-hero-secondary:hover {
    background: #f0f1f3;
    text-decoration: none;
    color: var(--color-text);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.hero-stat {
    text-align: center;
}
.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
}
.hero-stat .label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ===== Landing: Social Proof ===== */
.landing-social-proof {
    background: var(--color-hero-bg);
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.landing-social-proof p {
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
}
.landing-social-proof strong {
    color: var(--color-hero-accent-light);
}

/* ===== Landing: Section Base ===== */
.landing-section {
    padding: 100px 24px;
}
.landing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.landing-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.landing-section-header .overline {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-hero-accent);
    margin-bottom: 12px;
}
.landing-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.landing-section-header p {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Landing: How It Works ===== */
.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.landing-step {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s;
    position: relative;
}
.landing-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 20px;
}
.landing-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}
.landing-step p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

/* ===== Landing: Feature Deep Dive ===== */
.landing-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.landing-feature-row:last-child {
    margin-bottom: 0;
}
.landing-feature-row.reverse {
    direction: rtl;
}
.landing-feature-row.reverse > * {
    direction: ltr;
}
.landing-feature-text .feature-tag {
    display: inline-block;
    background: rgba(245, 166, 35, 0.08);
    color: var(--color-hero-accent);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.landing-feature-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}
.landing-feature-text p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.landing-feature-visual {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    font-size: 64px;
}

/* ===== Landing: Pricing ===== */
.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.landing-plan-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    border: 2px solid var(--color-border-light);
    transition: all 0.3s;
    position: relative;
    text-align: center;
}
.landing-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.landing-plan-card.popular {
    border-color: var(--color-hero-accent);
    box-shadow: var(--shadow-glow-sm);
}
.landing-plan-card.popular::before {
    content: '\uCD94\uCC9C';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}
.landing-plan-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.landing-plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 4px;
}
.landing-plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
}
.landing-plan-credits {
    font-size: 13px;
    color: var(--color-hero-accent);
    font-weight: 600;
    margin-bottom: 20px;
}
.landing-plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}
.landing-plan-features li {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-plan-features li::before {
    content: '\2713';
    color: var(--color-success);
    font-weight: 700;
    font-size: 12px;
}
.landing-plan-features li.disabled {
    color: var(--color-text-muted);
    text-decoration: line-through;
}
.landing-plan-features li.disabled::before {
    content: '\2717';
    color: var(--color-text-muted);
}

/* ===== Landing: CTA Section ===== */
.landing-cta {
    background: var(--gradient-hero);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.landing-cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.landing-cta h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.3;
}
.landing-cta p {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

/* ===== Landing: Footer ===== */
.landing-footer {
    background: #f8f9fa;
    padding: 48px 24px 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.landing-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.landing-footer-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-footer-links {
    display: flex;
    gap: 24px;
}
.landing-footer-links a {
    color: var(--color-text-muted);
    font-size: 13px;
    text-decoration: none;
}
.landing-footer-links a:hover {
    color: var(--color-text-secondary);
    text-decoration: none;
}
.landing-footer-copy {
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Auth: Split Screen Layout ===== */
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-split-brand {
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.auth-split-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(245, 166, 35, 0.06) 0%, transparent 60%);
    pointer-events: none;
}
.auth-split-brand > * {
    position: relative;
    z-index: 1;
}
.auth-split-brand .brand-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
}
.auth-split-brand .brand-logo .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.auth-split-brand h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 16px;
}
.auth-split-brand p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}
.auth-brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
}
.auth-brand-features li .feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(245, 166, 35, 0.10);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.auth-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--color-background);
}
.auth-split-form-inner {
    width: 100%;
    max-width: 400px;
}
.auth-split-form-inner h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}
.auth-split-form-inner .auth-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* ===== Dashboard: Improved Header ===== */
.header-v2 {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-text);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-v2 .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.header-v2 .header-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-v2 .header-logo:hover { text-decoration: none; }
.header-v2 .header-logo .logo-mark {
    width: 28px;
    height: 28px;
    background: var(--gradient-brand);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.header-v2 .nav-links {
    gap: 4px;
}
.header-v2 .nav-links a {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    background: transparent;
}
.header-v2 .nav-links a:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.04);
}
.header-v2 .nav-links a.active {
    background: rgba(245, 166, 35, 0.10);
    color: var(--color-accent);
}

/* ===== Dashboard: Improved Project Cards ===== */
.btn-new-project {
    background: var(--color-accent);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}
.btn-new-project:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(245,166,35,0.25);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

/* ===== Credits: Improved Plan Cards ===== */
.plan-card-v2 {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    border: 2px solid var(--color-border);
    transition: all 0.3s;
    position: relative;
    text-align: center;
}
.plan-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.plan-card-v2.popular {
    border-color: var(--color-accent);
    box-shadow: 0 0 30px rgba(245,166,35,0.15);
}
.plan-card-v2.popular::before {
    content: '\uCD94\uCC9C';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}
.plan-card-v2.premium {
    border-color: #1e293b;
    box-shadow: 0 0 30px rgba(30,41,59,0.2);
}
.plan-card-v2.premium::before {
    content: '\D504\B9AC\BBF8\C5C4';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b, #475569);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
}
.plan-card-v2.current {
    border-color: var(--color-accent);
}
.plan-card-v2.current::after {
    content: '\D604\C7AC \D50C\B79C';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--color-accent);
    color: #ffffff;
    padding: 3px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
}

/* ===== Credits: Improved Dashboard Banner ===== */
.credit-dashboard-v2 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    color: white;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
.credit-dashboard-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 60%);
    pointer-events: none;
}
.credit-dashboard-v2 > * {
    position: relative;
    z-index: 1;
}

/* ===== Landing: Mobile Responsive ===== */
@media (max-width: 768px) {
    .landing-nav-links { display: none; }
    .landing-nav .landing-nav-inner { justify-content: center; }
    .landing-hero h1 { font-size: 32px; }
    .landing-hero p.hero-desc { font-size: 15px; }
    .hero-cta-group { flex-direction: column; align-items: center; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 24px; }
    .landing-steps { grid-template-columns: 1fr; gap: 20px; }
    .landing-feature-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .landing-feature-row.reverse { direction: ltr; }
    .landing-pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .landing-cta h2 { font-size: 28px; }
    .landing-footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .landing-footer-links { flex-wrap: wrap; justify-content: center; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-split-brand { display: none; }
    .landing-section { padding: 60px 20px; }
    .landing-section-header h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .landing-pricing-grid { grid-template-columns: 1fr; }
    .landing-hero { padding: 100px 20px 60px; }
    .landing-hero h1 { font-size: 28px; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .credit-dashboard {
        flex-direction: column;
        text-align: center;
    }

    .credit-amount {
        font-size: 24px;
    }

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

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

    .tabs {
        overflow-x: auto;
    }

    .tab {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 13px;
    }

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

/* ===== Thin Scrollbar ===== */
.app-content::-webkit-scrollbar { width: 6px; }
.app-content::-webkit-scrollbar-track { background: transparent; }
.app-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 3px;
}
.app-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

/* ===== Skeleton Loading ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f5 25%, #e8e8ed 50%, #f0f0f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Card Stagger Animation ===== */
.project-card {
    animation: cardFadeIn 0.4s ease backwards;
}
.project-card:nth-child(1) { animation-delay: 0.02s; }
.project-card:nth-child(2) { animation-delay: 0.04s; }
.project-card:nth-child(3) { animation-delay: 0.06s; }
.project-card:nth-child(4) { animation-delay: 0.08s; }
.project-card:nth-child(5) { animation-delay: 0.10s; }
.project-card:nth-child(6) { animation-delay: 0.12s; }
.project-card:nth-child(n+7) { animation-delay: 0.14s; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== App Shell Responsive ===== */
@media (max-width: 768px) {
    .app-sidebar { display: none; }
    .app-topbar { padding: 0 16px; }
    .app-container { padding: 20px 16px; }
    .project-grid { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .plan-grid { grid-template-columns: 1fr; }
    .topbar-user { display: none; }
}

/* ===== Global Header (shared across all pages) ===== */
.app-header {
    height: 60px; min-height: 60px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 24px;
    position: sticky; top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

/* Logo */
.header-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
    transition: opacity 0.15s ease;
}
.header-logo:hover { text-decoration: none; opacity: 0.88; }
.header-logo-img { height: 32px; width: auto; }
.header-logo-divider { width: 1px; height: 20px; background: rgba(0,0,0,0.10); }
.header-logo-sub {
    font-size: 12px; font-weight: 600;
    color: var(--color-text-secondary, #6b7280); letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Main Nav — pill group (bbanana-style segment control) */
.header-nav {
    display: flex; align-items: center; justify-content: center;
    height: 100%;
}
.header-nav-pill {
    display: flex; align-items: center; gap: 1px;
    background: rgba(0,0,0,0.04);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}
.header-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.18s ease;
    white-space: nowrap;
    position: relative;
}
.header-tab svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.5; transition: opacity 0.18s ease; }
.header-tab:hover {
    color: var(--color-text, #111827);
    background: rgba(255,255,255,0.7);
    text-decoration: none;
}
.header-tab:hover svg { opacity: 0.8; }
.header-tab.active {
    color: var(--color-accent, #E09518);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
}
.header-tab.active svg { opacity: 1; color: var(--color-accent, #E09518); }
.header-tab.active:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05); }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-admin {
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    color: #fb923c; background: rgba(251,146,60,0.08);
    border: 1px solid rgba(251,146,60,0.12); border-radius: 14px;
    text-decoration: none; transition: all 0.2s ease;
}
.topbar-admin:hover { background: rgba(251,146,60,0.15); text-decoration: none; }

/* 연동 상태 뱃지 */
.conn-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px 3px 7px; border-radius: 14px;
    font-size: 11px; font-weight: 600;
    text-decoration: none; transition: all 0.2s ease;
}
.conn-badge:hover { text-decoration: none; opacity: 0.85; }
.conn-badge svg { flex-shrink: 0; }
.conn-text {
    display: flex; flex-direction: column; line-height: 1.1;
}
.conn-name { font-size: 11px; font-weight: 600; }
.conn-status { font-size: 9px; font-weight: 500; opacity: 0.75; }
.conn-on {
    background: rgba(16,185,129,0.1); color: #059669;
    border: 1px solid rgba(16,185,129,0.2);
}
.conn-off {
    background: rgba(239,68,68,0.06); color: #ef4444;
    border: 1px solid rgba(239,68,68,0.15);
}
@media (max-width: 768px) {
    .conn-text { display: none; }
}

.topbar-credit {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px 4px 8px;
    background: var(--color-accent-bg, rgba(245,166,35,0.08));
    border: 1px solid var(--color-accent-border, rgba(245,166,35,0.15));
    border-radius: 16px; font-size: 13px; font-weight: 700;
    color: var(--color-accent, #E09518); text-decoration: none;
    transition: all 0.2s ease; letter-spacing: -0.3px;
}
.topbar-credit:hover { background: rgba(245,166,35,0.15); text-decoration: none; }
.topbar-credit svg { width: 16px; height: 16px; flex-shrink: 0; }

/* User Dropdown */
.header-user-menu { position: relative; }
.header-user-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 8px 3px 3px; border: 1px solid transparent; background: none;
    cursor: pointer; border-radius: 20px; transition: all 0.2s ease;
}
.header-user-btn:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
.header-user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,166,35,0.2), rgba(245,166,35,0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--color-accent, #E09518);
}
.header-user-name { font-size: 12px; font-weight: 600; color: var(--color-text-secondary, #6b7280); }
.header-user-btn > svg { width: 14px; height: 14px; color: var(--color-text-muted, #9ca3af); transition: transform 0.2s ease; }
.header-user-menu.open .header-user-btn > svg { transform: rotate(180deg); }
.header-user-menu.open .header-user-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

.header-user-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    min-width: 170px; background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px; padding: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 300;
    animation: hdrDropIn 0.15s ease;
}
@keyframes hdrDropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.header-user-menu.open .header-user-dropdown { display: block; }

.dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--color-text-secondary, #6b7280);
    text-decoration: none; transition: all 0.15s ease;
}
.dropdown-item:hover { background: rgba(0,0,0,0.04); color: var(--color-text, #111827); text-decoration: none; }
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item-danger { color: var(--color-danger, #dc2626); }
.dropdown-item-danger:hover { background: rgba(220,38,38,0.08); color: var(--color-danger, #dc2626); }
.dropdown-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 4px 8px; }

/* Header responsive */
@media (max-width: 1024px) {
    .app-header { padding: 0 14px; }
    .header-tab { padding: 6px 11px; font-size: 12px; }
}
@media (max-width: 768px) {
    .app-header { padding: 0 10px; }
    .header-logo-sub, .header-logo-divider { display: none; }
    .header-logo-img { height: 26px; }
    .header-nav-pill { padding: 3px; gap: 0; border-radius: 8px; }
    .header-tab .tab-label { display: none; }
    .header-tab { padding: 6px 9px; border-radius: 6px; }
    .header-tab svg { width: 17px; height: 17px; opacity: 0.6; }
    .header-tab.active svg { opacity: 1; }
    .header-user-name { display: none; }
}
@media (max-width: 480px) {
    .app-header { padding: 0 8px; }
    .header-tab { padding: 5px 7px; }
    .header-tab svg { width: 16px; height: 16px; }
    .topbar-credit span { display: none; }
    .topbar-credit { padding: 4px 6px; }
}
