body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #111;
}

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

/* LAYOUT */
.app-container {
    display: flex;
    height: 100vh;
}

.mobile-tabs {
    display: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 1px solid #dbe2ea;
    flex-shrink: 0;
}

.brand-text {
    line-height: 1;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 30px;
}

.sidebar-link-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    color: #111;
}

.sidebar-link-btn:hover {
    background: #f8fafc;
}

.download-menu-wrap {
    position: relative;
}

.download-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 140px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
    padding: 6px;
    display: none;
    z-index: 30;
}

.download-menu.show {
    display: block;
}

.download-menu button {
    width: 100%;
    border: 1px solid transparent;
    background: #ffffff;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #111827;
}

.download-menu button:hover {
    background: #f1f5f9;
}

.credits-badge {
    margin-top: 14px;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fbff;
}

.sidebar input {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
    font-size: 14px;
    background: #fafafa;
}

.sidebar input:focus {
    outline: none;
    border: 1px solid #111;
}

.primary-btn {
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #111;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 3px rgba(59,130,246,0.18);
}

.divider {
    margin: 30px 0;
    height: 1px;
    background: #f1f1f1;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.main-header h1 {
    font-size: 28px;
    font-weight: 600;
}

.secondary-btn {
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.secondary-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12), 0 0 0 3px rgba(59,130,246,0.12);
}

.action-btn-black {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.action-btn-black:hover {
    background: #0b0b0b;
}

.action-btn-danger {
    background: #7f1d1d;
    border-color: #7f1d1d;
}

.action-btn-danger:hover {
    background: #6b1313;
}

.cancel-generate-btn {
    margin-top: 8px;
}

/* SLIDE CARD */
.slide-card {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
    flex: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    overflow-y: auto;
    line-height: 1.7;
}

/* Make slides formatted nicely */
.slide-card strong {
    display: block;
    font-size: 20px;
    margin-top: 20px;
}

.slide-empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #334155;
}

.slide-empty-state blockquote {
    margin: 18px auto 0;
    max-width: 620px;
    font-size: clamp(16px, 2.1vw, 24px);
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.sleepy-penguin {
    width: 190px;
    height: 150px;
    position: relative;
    margin: 0 auto;
}

.penguin-shadow {
    position: absolute;
    width: 94px;
    height: 18px;
    left: 48px;
    bottom: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    filter: blur(1px);
}

.penguin-body {
    position: absolute;
    left: 52px;
    bottom: 18px;
    width: 86px;
    height: 108px;
    border-radius: 45px 45px 38px 38px;
    background: #111827;
    animation: penguinSway 2.8s ease-in-out infinite;
}

.penguin-belly {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 58px;
    height: 72px;
    border-radius: 30px;
    background: #f8fafc;
}

.penguin-eye {
    position: absolute;
    width: 11px;
    height: 3px;
    border-radius: 999px;
    background: #f8fafc;
    top: 34px;
}

.penguin-eye.eye-left { left: 24px; }
.penguin-eye.eye-right { right: 24px; }

.penguin-beak {
    position: absolute;
    left: 37px;
    top: 45px;
    width: 12px;
    height: 8px;
    border-radius: 0 0 6px 6px;
    background: #f59e0b;
}

.snore-bubble {
    position: absolute;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    animation: snoreRise 2s ease-in-out infinite;
}

.snore-bubble.z1 {
    right: 34px;
    top: 38px;
    font-size: 16px;
}

.snore-bubble.z2 {
    right: 14px;
    top: 20px;
    font-size: 20px;
    animation-delay: 0.35s;
}

.slide-failed-state blockquote {
    color: #b91c1c;
}

.failed-hint {
    margin: 10px auto 0;
    max-width: 620px;
    color: #64748b;
    font-size: 14px;
}

.worry-penguin {
    width: 200px;
    height: 156px;
    position: relative;
    margin: 0 auto;
}

.fail-shadow {
    background: rgba(185, 28, 28, 0.16);
    animation: failShadowPulse 1.6s ease-in-out infinite;
}

.fail-body {
    animation: failPenguinWobble 1.2s ease-in-out infinite;
}

.fail-eye {
    height: 4px;
    border-radius: 1px;
    top: 35px;
    transform: rotate(-18deg);
}

.fail-eye.eye-right {
    transform: rotate(18deg);
}

.fail-beak {
    border-radius: 0 0 9px 9px;
    height: 10px;
}

.penguin-wing {
    position: absolute;
    width: 18px;
    height: 44px;
    top: 43px;
    border-radius: 12px;
    background: #0b1220;
}

.wing-left {
    left: -10px;
    transform-origin: top right;
    animation: wingFlapLeft 0.95s ease-in-out infinite;
}

.wing-right {
    right: -10px;
    transform-origin: top left;
    animation: wingFlapRight 0.95s ease-in-out infinite;
}

.danger-bubble {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.35);
    animation: dangerBounce 1.05s ease-in-out infinite;
}

/* AI EDITOR */
.editor-panel {
    width: 360px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.editor-panel h3 {
    font-size: 18px;
    margin-bottom: 25px;
}

.editor-messages {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    max-width: 88%;
    border-radius: 12px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
}

.msg-prefix {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

.msg-body {
    font-size: 13px;
}

.msg-user {
    align-self: flex-end;
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.msg-ai {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-color: #d9e2ec;
}

.msg-error {
    align-self: flex-start;
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.typing-bubble {
    animation: bubbleFloat 1.2s ease-in-out infinite;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
    display: inline-block;
    animation: dotBlink 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) { animation-delay: 0.14s; }
.typing-dots i:nth-child(3) { animation-delay: 0.28s; }

.editor-input {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.editor-input input {
    flex: 1;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}

.editor-input button {
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    background: #111;
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.editor-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 0 0 3px rgba(59,130,246,0.18);
}

.send-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.15s ease, opacity 0.15s ease;
}

.send-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-block;
    animation: dotBlink 1s ease-in-out infinite;
}

.send-dots i:nth-child(2) { animation-delay: 0.14s; }
.send-dots i:nth-child(3) { animation-delay: 0.28s; }

#editorSendBtn.is-sending .send-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

#editorSendBtn.is-sending .send-dots {
    width: 24px;
    opacity: 1;
}

#editorSendBtn.is-sending {
    opacity: 0.92;
    cursor: wait;
}

button,
.primary-btn,
.secondary-btn,
.sidebar-link-btn,
.nav-btn,
.login-btn,
.hero-btn,
.google-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

button:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.sidebar-link-btn:focus-visible,
.nav-btn:focus-visible,
.login-btn:focus-visible,
.hero-btn:focus-visible,
.google-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.35);
    border-color: #3b82f6;
}

button:active,
.primary-btn:active,
.secondary-btn:active,
.sidebar-link-btn:active,
.nav-btn:active,
.login-btn:active,
.hero-btn:active,
.google-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0,0,0,0.16);
}
/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    width: 600px;
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal {
    font-size: 22px;
    cursor: pointer;
}

.modal-search {
    margin-top: 30px;
    display: flex;
    border: 2px solid #4f46e5;
    border-radius: 18px;
    overflow: hidden;
}

.modal-search input {
    flex: 1;
    padding: 16px;
    border: none;
    font-size: 15px;
}

.modal-search input:focus {
    outline: none;
}

.modal-search button {
    padding: 0 20px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.modal-search select {
    border: none;
    border-left: 1px solid #d6d9ff;
    background: #f8f9ff;
    padding: 0 12px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}

.modal-search select:focus {
    outline: none;
    background: #eef1ff;
}

.modal-upload {
    margin-top: 40px;
    padding: 40px;
    border: 2px dashed #e5e7eb;
    border-radius: 20px;
    text-align: center;
}

.settings-panel {
    width: min(460px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 24px));
    overflow-y: auto;
    background: #0f1218;
    color: #f3f4f6;
    border-radius: 18px;
    border: 1px solid #1f2937;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    padding: 20px;
}

.settings-panel .modal-header h2 {
    color: #f9fafb;
}

.settings-panel .close-modal {
    color: #d1d5db;
}

.settings-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-item {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #e5e7eb;
    padding: 12px 14px;
    text-decoration: none;
    text-align: left;
    font-size: 20px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.settings-inline {
    gap: 12px;
}

.settings-select {
    min-width: 120px;
    border: 1px solid #374151;
    background: #111827;
    color: #f3f4f6;
    border-radius: 10px;
    padding: 6px 10px;
}

.settings-section-label {
    margin: 12px 4px 2px;
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.settings-item-check .settings-check {
    width: 20px;
    text-align: center;
    color: #22c55e;
    font-weight: 700;
}

.settings-manage {
    margin-top: 8px;
    border-top: 1px solid #1f2937;
    padding-top: 16px;
}

.recent-list {
    margin-top: 18px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.recent-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.recent-text {
    font-size: 14px;
    color: #111;
    line-height: 1.5;
    word-break: break-word;
}

.recent-empty {
    color: #6b7280;
    font-size: 14px;
}

.upload-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-buttons button {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-buttons button:hover {
    background: #f3f4f6;
}
/* LOADING ANIMATION */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 14px;
}

.loader-advanced {
    min-height: 360px;
}

.hypno-loader {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.hypno-core {
    width: 180px;
    height: 180px;
    position: relative;
    margin-top: 26px;
}

.hypno-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 6px solid transparent;
    animation: hypnoSpin 2.8s linear infinite;
}

.ring-1 {
    border-top-color: #111;
    border-left-color: #3b82f6;
}

.ring-2 {
    inset: 16px;
    border-width: 5px;
    border-right-color: #111;
    border-bottom-color: #94a3b8;
    animation-direction: reverse;
    animation-duration: 2.1s;
}

.ring-3 {
    inset: 34px;
    border-width: 4px;
    border-left-color: #111;
    border-top-color: #cbd5e1;
    animation-duration: 1.6s;
}

.hypno-orbit {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #111;
    top: 50%;
    left: 50%;
    transform-origin: 0 -70px;
    box-shadow: 0 0 0 8px rgba(17,17,17,0.08);
}

.orbit-1 {
    animation: orbitSpin 1.8s linear infinite;
}

.orbit-2 {
    background: #64748b;
    transform-origin: 0 -48px;
    animation: orbitSpin 1.2s linear infinite reverse;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hypnoSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.03); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-processing-loader {
    position: relative;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background: linear-gradient(165deg, #ffffff, #f7faff);
    padding: 26px 20px 22px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.ai-orbit {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(90, 147, 255, 0.35);
    animation: orbitTurn 4.8s linear infinite;
}

.ai-orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5a93ff;
}

.ai-orbit-dot.d1 { top: -4px; left: 18px; }
.ai-orbit-dot.d2 { right: -4px; top: 18px; background: #7f86ff; }
.ai-orbit-dot.d3 { left: -4px; top: 18px; background: #8fb7ff; }

.ai-processing-particles {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 16% 22%, rgba(80, 123, 255, 0.2) 0 2px, transparent 3px),
        radial-gradient(circle at 72% 36%, rgba(124, 101, 255, 0.15) 0 2px, transparent 3px),
        radial-gradient(circle at 42% 74%, rgba(60, 157, 255, 0.12) 0 2px, transparent 3px);
    animation: particlesDrift 9s linear infinite;
    pointer-events: none;
}

.ai-processing-head,
.ai-processing-track,
.ai-progress-wrap {
    position: relative;
    z-index: 1;
}

.ai-processing-head h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
}

.ai-processing-head p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 14px;
}

.ai-friendly-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    transition: opacity 180ms ease, transform 180ms ease;
}

.ai-friendly-tip.is-changing {
    opacity: 0.35;
    transform: translateY(2px);
}

.ai-processing-track {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-stage {
    border: 1px solid #dde6f4;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}

.ai-stage-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #c8d6ea;
    color: #4b5563;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: #f8fbff;
}

.ai-stage-label {
    font-size: 12px;
    color: #334155;
    line-height: 1.25;
}

.ai-stage.is-active .ai-stage-icon {
    background: #111827;
    color: #fff;
    border-color: #111827;
    animation: activePulse 1.2s ease-in-out infinite;
}

.ai-stage.is-complete .ai-stage-icon {
    background: #166534;
    border-color: #166534;
    color: transparent;
    position: relative;
}

.ai-stage.is-complete .ai-stage-icon::after {
    content: "";
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    position: absolute;
    top: 4px;
    left: 8px;
}

.ai-stage.is-complete .ai-stage-label {
    color: #1e3a2e;
}

.ai-progress-wrap {
    margin-top: 16px;
}

.ai-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #dce7f9;
    overflow: hidden;
}

.ai-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5a93ff, #7f86ff);
    transition: width 320ms ease;
    position: relative;
    overflow: hidden;
}

.ai-progress-bar span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    animation: progressShimmer 1.6s linear infinite;
}

.ai-progress-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #475569;
    font-size: 12px;
}

.loader-complete-fade {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 260ms ease, transform 260ms ease;
}

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(17, 24, 39, 0);
    }
}

@keyframes particlesDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(16px, -10px, 0); }
}

@keyframes penguinSway {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-3px); }
}

@keyframes snoreRise {
    0% { transform: translateY(0) scale(0.9); opacity: 0.1; }
    40% { opacity: 0.75; }
    100% { transform: translateY(-16px) scale(1.1); opacity: 0; }
}

@keyframes failPenguinWobble {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-4deg) translateY(-2px); }
    50% { transform: rotate(3deg) translateY(0); }
    75% { transform: rotate(-2deg) translateY(-1px); }
}

@keyframes failShadowPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.65; }
    50% { transform: scaleX(1.12); opacity: 1; }
}

@keyframes wingFlapLeft {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(-26deg); }
}

@keyframes wingFlapRight {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(26deg); }
}

@keyframes dangerBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-6px) scale(1.08); }
    60% { transform: translateY(0) scale(0.98); }
}

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

@keyframes dotBlink {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes orbitTurn {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progressShimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ===== AUTH PAGES (Login / Register) ===== */

.auth-body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(75% 50% at 50% 100%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.55)),
        linear-gradient(180deg, #c6e7fb 0%, #d8eefc 48%, #eaf3fa 100%);
    position: relative;
    overflow: hidden;
}

.auth-body::before,
.auth-body::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0.45;
    pointer-events: none;
}

.auth-body::before {
    width: 920px;
    height: 420px;
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
}

.auth-body::after {
    width: 740px;
    height: 320px;
    top: 44%;
    left: 50%;
    transform: translateX(-50%);
}

.auth-container {
    width: 100%;
    max-width: 430px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.62));
    backdrop-filter: blur(18px);
    border-radius: 26px;
    padding: 34px 30px 24px;
    border: 1px solid rgba(173, 194, 221, 0.5);
    box-shadow: 0 24px 54px rgba(38, 66, 102, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.auth-card,
.auth-card * {
    box-sizing: border-box;
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 62px rgba(38, 66, 102, 0.18);
}

.auth-top-badge {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid #dbe5f3;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    display: grid;
    place-items: center;
    color: #0f172a;
    font-size: 24px;
    animation: badgeFloat 2.4s ease-in-out infinite;
}

.auth-card h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 37px;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.45;
}

.field-wrap,
.password-field {
    position: relative;
    margin-bottom: 12px;
}

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #728198;
    font-size: 13px;
    pointer-events: none;
}

.auth-card input {
    width: 100%;
    padding: 12px 14px 12px 34px;
    margin-bottom: 0;
    border-radius: 12px;
    border: 1px solid #d7deea;
    background: rgba(236, 241, 248, 0.75);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: #9eb4d3;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.password-field input {
    padding-right: 76px;
}

.eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #d4dce9;
    background: rgba(255, 255, 255, 0.7);
    color: #334155;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 8px;
    cursor: pointer;
}

.eye-btn:hover {
    background: #f2f6fb;
}

.forgot-row {
    text-align: right;
    margin: -2px 0 12px;
}

.forgot-row a {
    text-decoration: none;
    color: #334155;
    font-size: 13px;
}

.primary-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(180deg, #1d2431, #0f121a);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.28);
}

/* Login lock morph animation */
.login-submit-btn {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: grid;
    place-items: center;
    transition: width 240ms ease, border-radius 240ms ease, background 220ms ease, transform 180ms ease;
}

.login-btn-text {
    transition: opacity 160ms ease;
}

.login-lock,
.login-checkmark {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.login-lock {
    width: 14px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 3px;
    top: calc(50% + 4px);
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
}

.login-lock::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 8px;
    left: 50%;
    top: -9px;
    border: 2px solid #fff;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    transform: translateX(-50%);
}

.login-checkmark {
    width: 9px;
    height: 16px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -58%) rotate(45deg) scale(0.84);
    top: 50%;
    left: 50%;
}

.login-submit-btn.is-loading {
    width: 50px;
    border-radius: 999px;
    padding-left: 0;
    padding-right: 0;
}

.login-submit-btn.is-loading .login-btn-text {
    opacity: 0;
}

.login-submit-btn.is-loading .login-lock {
    opacity: 1;
    animation: lockPulse 1s ease-in-out infinite;
}

.login-submit-btn.is-success {
    width: 50px;
    border-radius: 999px;
    padding-left: 0;
    padding-right: 0;
    background: #15803d;
}

.login-submit-btn.is-success .login-btn-text,
.login-submit-btn.is-success .login-lock {
    opacity: 0;
}

.login-submit-btn.is-success .login-checkmark {
    opacity: 1;
}

.login-submit-btn.is-error {
    animation: loginShake 360ms ease-in-out;
}

.login-status-text {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 12px;
    color: #64748b;
}

.divider {
    text-align: center;
    margin: 18px 0 14px;
    position: relative;
}

.divider span {
    background: rgba(255, 255, 255, 0.72);
    padding: 0 10px;
    font-size: 12px;
    color: #6b7280;
}

.divider:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #d5deea;
    z-index: -1;
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #d8dfeb;
    background: rgba(255, 255, 255, 0.74);
    color: #0f172a;
    font-size: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-btn:hover {
    background: #f8fbff;
    transform: translateY(-1px);
}

.bottom-text {
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.bottom-text a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .auth-body {
        background: radial-gradient(circle at 20% 20%, #172233, #0c1423 62%);
        color: #e2e8f0;
    }

    .auth-card {
        background: rgba(15, 23, 36, 0.78);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    }

    .auth-card h2,
    .subtitle,
    .bottom-text {
        color: #d7e1f0;
    }

    .auth-card input,
    .social-btn,
    .eye-btn {
        background: #0f172a;
        color: #e2e8f0;
        border-color: #2e3f5b;
    }

    .divider span {
        background: #121d2e;
        color: #aebddb;
    }

    .bottom-text a,
    .social-btn {
        color: #e2e8f0;
    }
}

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

@keyframes lockPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.72;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}
.top-right-profile {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 1000;
}

.login-btn {
    background: black;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
}

.profile-box {
    background: white;
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    align-items: center;
}

.profile-box a {
    color: red;
    text-decoration: none;
}
.profile-wrapper {
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 55px;
    width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    padding: 15px;
    display: none;
    animation: fadeIn 0.25s ease;
}

.profile-dropdown a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: black;
    font-size: 14px;
}

.profile-dropdown a:hover {
    color: #007aff;
}

body[data-theme="dark"] {
    background: #0b1220;
    color: #e5e7eb;
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .main-content,
body[data-theme="dark"] .editor-panel,
body[data-theme="dark"] .slide-card,
body[data-theme="dark"] .profile-dropdown,
body[data-theme="dark"] .modal-box,
body[data-theme="dark"] .recent-item {
    background: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}

body[data-theme="dark"] .sidebar-link-btn,
body[data-theme="dark"] .secondary-btn,
body[data-theme="dark"] .generation-title-input {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}

body[data-theme="dark"] .download-menu {
    background: #111827;
    border-color: #334155;
}

body[data-theme="dark"] .download-menu button {
    background: #111827;
    color: #e5e7eb;
}

body[data-theme="dark"] .download-menu button:hover {
    background: #1f2937;
}

body[data-theme="dark"] .credits-badge {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

body[data-theme="dark"] .login-status-text {
    color: #b0bdd2;
}

body[data-theme="dark"] .ai-processing-loader {
    background: linear-gradient(165deg, #101827, #0f1a2b);
    border-color: #243447;
}

body[data-theme="dark"] .ai-stage {
    background: rgba(255, 255, 255, 0.02);
    border-color: #2d3f56;
}

body[data-theme="dark"] .ai-processing-head h3 {
    color: #f1f5f9;
}

body[data-theme="dark"] .ai-processing-head p,
body[data-theme="dark"] .ai-stage-label,
body[data-theme="dark"] .ai-progress-meta {
    color: #a9b9cf;
}

body[data-theme="dark"] .ai-friendly-tip {
    color: #9fb0c8;
}

body[data-theme="dark"] .slide-failed-state blockquote {
    color: #fda4af;
}

body[data-theme="dark"] .failed-hint {
    color: #94a3b8;
}

body[data-theme="dark"] .danger-bubble {
    background: #fb7185;
    box-shadow: 0 6px 14px rgba(251, 113, 133, 0.35);
}

body[data-theme="dark"] .ai-stage-icon {
    background: #0f172a;
    border-color: #41536b;
    color: #d6e2f3;
}

body[data-theme="dark"] .ai-progress-bar {
    background: #223146;
}

body[data-theme="dark"] .ai-orbit {
    border-color: rgba(143, 183, 255, 0.42);
}

.user-name {
    font-weight: 600;
    margin: 0;
}

.user-email {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =========================
   MOBILE RESPONSIVE FIX
========================= */
@media (max-width: 768px) {
    /* Make Sources panel buttons white */
.sidebar .primary-btn {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}

.sidebar-link-btn {
    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
}

.sidebar-link-btn:hover {
    background: #f3f4f6 !important;
}
    /* Hide sidebar logo/title in mobile */
.sidebar .brand-lockup {
    display: none;
}
    /* Title row mobile layout */
.generation-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.generation-left {
    flex: 1;
    display: flex;
    gap: 6px;
    align-items: center;
}

.save-btn {
    padding: 6px 10px;
    font-size: 12px;
}

/* Right column buttons */
.mobile-side-actions {
    display: none;
}

.small-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}
    /* Hide top action buttons on mobile */
.header-actions {
    display: none;
}
    .mobile-pro-badge {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}
    .mobile-action-row {
    margin-top: 24px;   /* increased gap from logo */
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Main button */
.mobile-create-btn {
    flex: 1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
}

/* PRO badge button */
.mobile-pro-btn {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.mobile-pro-btn:hover {
    background: rgba(255,255,255,0.2);
}
    .top-right-profile {
        display: none;
    }

    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        background: #ffffff;
    }

    .sidebar,
    .main-content,
    .editor-panel {
        display: none;
        width: 100%;
        border: none;
        padding: 16px;
    }

    .sidebar {
        display: block;
    }

    .mobile-tabs {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 12px 12px 10px;
    background: #111827;
    border-bottom: none;
}

    .mobile-topbar {
    color: #ffffff;
}

.mobile-icon-btn {
    color: #ffffff;
}

    .mobile-brand-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .mobile-brand-left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-logo-dot {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #fff;
        color: #111827;
        display: grid;
        place-items: center;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-title {
        font-size: 17px;
        font-weight: 600;
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .mobile-brand-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-icon-btn {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 20px;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
    .mobile-icon-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: none;
        box-shadow: none;
    }

    .mobile-avatar {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 2px solid #22c55e;
        cursor: pointer;
        object-fit: cover;
    }

    .mobile-login {
        color: #fff;
        text-decoration: none;
        font-size: 13px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 999px;
        padding: 6px 10px;
    }

    

    .mobile-quick-actions {
        margin-top: 8px;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .mobile-bottom-tabs {
        display: flex;
        margin-top: 8px;
    }

    .mobile-bottom-tabs {
    display: flex;
    margin-top: 20px;   /* increased gap from button */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 8px 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

    .tab-btn.active {
        color: #fff;
        border-bottom-color: #fff;
    }

    .slide-card {
        margin-top: 0;
        border-radius: 16px;
        padding: 18px;
    }
    .mobile-slide-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-bottom-upgrade {
    background: #111827;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

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

}
.generation-title-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.generation-title-input {
    flex: 1;
    font-size: 14px;
    padding: 8px 10px;
}

.generation-title-wrap .secondary-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.generation-title-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.generation-title-input {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    padding: 11px 14px;
    min-width: 280px;
    font-size: 16px;
    font-weight: 600;
}

.generation-title-input:focus {
    outline: none;
    border-color: #111;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    /* Make Slides panel white in mobile */
@media (max-width: 768px) {

    .main-content {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .slide-card {
        background: #ffffff !important;
        color: #111827 !important;
        box-shadow: none;
    }

    .generation-title-input {
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #e5e7eb !important;
    }

}
    /* Make only Sources content white in mobile */
@media (max-width: 768px) {
    /* Make AI Editor panel white in mobile */
@media (max-width: 768px) {

    .editor-panel {
        background: #ffffff !important;
        color: #111827 !important;
    }

    .editor-panel h3 {
        color: #111827 !important;
    }

    .prompt-chip {
        background: #f3f4f6 !important;
        color: #111827 !important;
        border: 1px solid #e5e7eb !important;
    }

    .editor-input input {
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #e5e7eb !important;
    }

}

    .sidebar {
        background: #ffffff !important;
        color: #111827 !important;
        padding-top: 24px;
    }

    .sidebar .brand-text,
    .sidebar h4 {
        color: #111827 !important;
    }

    .sidebar .primary-btn {
        background: #111827;
        color: #ffffff;
    }

    .sidebar-link-btn {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        color: #111827;
    }

    .divider {
        background: #e5e7eb;
    }

}
    .header-actions {
        display: none !important;
    }

    .mobile-side-actions {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .app-container,
    .main-content,
    .sidebar,
    .editor-panel {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-header,
    .generation-title-wrap,
    .generation-left {
        width: 100%;
        min-width: 0;
    }

    .generation-title-wrap,
    .generation-left {
        flex-wrap: wrap;
    }

    .generation-title-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.prompt-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 1;
    max-height: 240px;
    transition: opacity 0.6s ease, max-height 0.6s ease, transform 0.6s ease;
}

@media (min-width: 769px) {
    .mobile-side-actions {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
    }
}

.panel-enter {
    animation: panelSlideIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel-exit {
    animation: panelSlideOut 180ms ease forwards;
}

@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translate3d(16px, 0, 0) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes panelSlideOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(-12px, 0, 0) scale(0.985);
    }
}

@media (max-width: 520px) {
    .ai-processing-track {
        grid-template-columns: 1fr;
    }

    .ai-progress-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.prompt-chip-grid.hidden {
    opacity: 0;
    max-height: 0;
    transform: translateY(-6px);
    pointer-events: none;
    overflow: hidden;
}

.prompt-chip {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    font-size: 12px;
    padding: 10px;
    text-align: left;
    background: linear-gradient(130deg, #f8fafc, #eef4ff);
    cursor: pointer;
    animation: chipFloat 5s ease-in-out infinite;
}

.prompt-chip:nth-child(2) { animation-delay: 0.3s; }
.prompt-chip:nth-child(3) { animation-delay: 0.7s; }
.prompt-chip:nth-child(4) { animation-delay: 1s; }

.prompt-chip.used {
    opacity: 0.35;
    transform: scale(0.96);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@keyframes chipFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.edited-slides-block {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    padding: 18px;
    margin-bottom: 26px;
}

.edited-slides-block h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.tos-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    margin: 8px 0 14px;
}

.tos-check-row input {
    margin-top: 3px;
}

.tos-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.tos-link:hover {
    text-decoration: underline;
}

.tos-ack-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: #334155;
    font-size: 13px;
}

.tos-ack-row input {
    margin-top: 3px;
}
