/* ===== CLEOM V2 - NEW DESIGN SYSTEM ===== */
/* Shared stylesheet for all pages */

/* === LAYER 1: Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Backgrounds */
    --bg-primary: #0A0A0B;
    --bg-secondary: #111113;
    --bg-tertiary: #18181B;
    --bg-elevated: #1E1E22;

    /* Borders */
    --border-subtle: #27272A;
    --border-default: #3F3F46;

    /* Text */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;

    /* Accents */
    --accent-purple: #7B3FF2;
    --accent-pink: #FF0080;
    --accent-green: #00FF88;
    --accent-yellow: #FFD700;
    --accent-red: #FF4444;
    --accent-blue: #0066FF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7B3FF2 0%, #FF0080 100%);
    --gradient-main: linear-gradient(135deg, #7B3FF2 0%, #FF0080 50%, #00FF88 100%);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --nav-height: 70px;
    --announcement-height: 36px;

    /* Transitions */
    --easing: cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: 150ms ease;
    --transition-default: 200ms ease;
    --transition-smooth: 300ms var(--easing);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-purple);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    color: inherit;
}

img, video {
    max-width: 100%;
    display: block;
}

/* === LAYER 2: Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === LAYER 3: Shared Components === */

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* --- Noise Overlay --- */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc1IiBudW1PY3RhdmVzPSIxMCIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjYSkiLz48L3N2Zz4=');
}

/* --- Navbar --- */
.cleom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-logo img {
    height: 28px;
    width: auto;
    transition: opacity var(--transition-default);
}

.nav-logo:hover img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-default);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-default);
}

.nav-credits:hover {
    border-color: var(--accent-purple);
    background: rgba(123, 63, 242, 0.08);
}

.nav-credits svg {
    color: var(--accent-purple);
}

.nav-credits-hidden { display: none !important; }
.nav-divider-hidden { display: none !important; }

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
}

.nav-login-btn {
    padding: 0.5rem 1.25rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-default);
}

.nav-login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-user {
    position: relative;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: background var(--transition-default);
    cursor: pointer;
}

.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.nav-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-user-btn svg {
    color: var(--text-tertiary);
}

/* Nav Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-default);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-dropdown-item svg {
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.35rem 0;
}

.nav-logout-btn:hover {
    color: var(--accent-red) !important;
}

/* Mobile Nav */
.nav-mobile-toggle {
    display: none;
    padding: 0.5rem;
    color: var(--text-secondary);
}

.nav-mobile-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
}

.nav-mobile-menu.show {
    display: flex;
    flex-direction: column;
}

.nav-mobile-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-default);
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-mobile-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: block; }
}

/* --- Footer --- */
.cleom-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 24px;
    width: auto;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-columns {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: color var(--transition-default);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-tertiary);
    transition: all var(--transition-default);
}

.footer-social a:hover {
    background: var(--accent-purple);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-columns { flex-direction: column; gap: 2rem; }
}

/* === LAYER 4: Shared Button Styles === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-default);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 63, 242, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-default);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-default);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-default);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

/* === Card Styles === */
.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.glass-card-elevated {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* === Form Styles === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-default);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* === Toggle Switch === */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--border-default);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition-default);
}

.toggle-switch.active {
    background: var(--accent-purple);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform var(--transition-default);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* === Status Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.badge-processing {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-yellow);
}

.badge-completed {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.badge-failed {
    background: rgba(255, 68, 68, 0.15);
    color: var(--accent-red);
}

.badge-draft {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* === Modal === */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-default);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform var(--transition-default);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* === Notification === */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* === Section Styles === */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: rgba(123, 63, 242, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* === Spinner === */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Page Content Offset === */
.page-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

/* === Utility === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* === Mobile Warning (shared) === */
.mobile-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mobile-content {
    padding: 2rem;
    max-width: 400px;
}

.mobile-logo {
    width: 120px;
    margin: 0 auto 2rem;
}

.mobile-logo img {
    width: 100%;
    height: auto;
}

.mobile-warning h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-warning p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 1023px) {
    .mobile-warning { display: flex; }
}

/* === Table Styles === */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-tertiary);
    padding: 0.25rem;
    border-radius: 10px;
    width: fit-content;
}

.tab {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-default);
    border: none;
    background: none;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* === Aspect Ratio Options (shared for studio/playground) === */
.aspect-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.aspect-option {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-default);
}

.aspect-option:hover {
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.aspect-option.selected {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(123, 63, 242, 0.1);
}

/* === Credit Display === */
.credit-display-large {
    text-align: center;
    padding: 2rem;
}

.credit-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
}

.credit-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* === Credit Pack Cards === */
.credit-packs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.credit-pack {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.credit-pack:hover {
    border-color: var(--accent-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(123, 63, 242, 0.15);
}

.credit-pack.featured {
    border-color: var(--accent-purple);
    background: linear-gradient(180deg, rgba(123, 63, 242, 0.1), var(--bg-tertiary));
}

.credit-pack-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.credit-pack-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.credit-pack-discount {
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
}

@media (max-width: 768px) {
    .credit-packs { grid-template-columns: repeat(2, 1fr); }
}

/* === Generation Card (shared for studio/playground) === */
.generation-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.generation-card:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.generation-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generation-thumbnail video,
.generation-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generation-status {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}

.generation-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    backdrop-filter: blur(4px);
}

.generation-info {
    padding: 0.75rem;
}

.generation-prompt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.generation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.generation-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.generation-actions {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(123, 63, 242, 0.15);
    color: var(--accent-purple);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-button:hover {
    background: rgba(123, 63, 242, 0.3);
}

/* === Tooltip System === */
.tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.tooltip-icon {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    transition: all var(--transition-default);
    flex-shrink: 0;
}

.tooltip-trigger:hover .tooltip-icon {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(123, 63, 242, 0.1);
}

.tooltip-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 260px;
    min-width: 180px;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.tooltip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border-default);
}

.tooltip-trigger:hover .tooltip-popup {
    opacity: 1;
    visibility: visible;
}

/* === Duration Elegant Slider === */
.duration-elegant {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}

.duration-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 6px rgba(123, 63, 242, 0.4);
    transition: transform 0.15s ease;
}

.duration-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.duration-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 6px rgba(123, 63, 242, 0.4);
}

.duration-value-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.duration-number {
    width: 50px;
    padding: 0.35rem 0.4rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.duration-number::-webkit-outer-spin-button,
.duration-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-number:focus {
    border-color: var(--accent-purple);
}

.duration-unit {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* === Duration Input - Clean (no slider) === */
.duration-input-clean {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.duration-number-clean {
    width: 80px;
    padding: 0.5rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    text-align: center;
    transition: border-color var(--transition-default);
    -moz-appearance: textfield;
}

.duration-number-clean::-webkit-outer-spin-button,
.duration-number-clean::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.duration-number-clean:focus {
    border-color: var(--accent-purple);
    outline: none;
}

/* === Announcement Bar === */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    z-index: 1001;
    font-family: var(--font-body);
}

.announcement-bar strong {
    font-weight: 700;
}

body.has-announcement .cleom-navbar {
    top: var(--announcement-height);
}

body.has-announcement .page-content {
    padding-top: calc(var(--nav-height) + var(--announcement-height));
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    max-width: 380px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.cookie-consent p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-default);
    border: none;
    font-family: var(--font-body);
}

.cookie-btn.accept {
    background: var(--accent-purple);
    color: white;
}

.cookie-btn.accept:hover {
    background: #6b35d9;
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
