/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
    --bg: #0a0e1a;
    --bg-alt: #0f1629;
    --surface: #151b2e;
    --surface-hover: #1a2240;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #e2e8f0;
    --text-muted: #7a8ba7;
    --accent-1: #6366f1;
    --accent-2: #38bdf8;
    --accent-3: #a855f7;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===========================
   UTILITIES
   =========================== */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-2);
}

.btn-upgrade {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 50px;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: auto;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   HERO
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-3);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-2);
    top: 50%;
    left: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    padding: 80px 0;
    text-align: center;
}

.section-alt {
    background: var(--bg-alt);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===========================
   PROBLEM SECTION
   =========================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.problem-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.problem-card.highlight-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.problem-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.solution-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius);
    padding: 24px;
    text-align: left;
}

.solution-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.solution-banner h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--success);
}

.solution-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    transition: all var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 14px;
}

.step-card h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.step-connector {
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ===========================
   TOOL SECTION
   =========================== */
.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.upload-area {
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-2);
    background: rgba(56, 189, 248, 0.04);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-area h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.upload-area p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-link {
    color: var(--accent-2);
    cursor: pointer;
}

.file-list {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    max-height: 80px;
    overflow-y: auto;
}

.file-list ul {
    padding-left: 16px;
}

.file-list li {
    margin-bottom: 2px;
}

.input-row {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.input-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.limit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.limit-text {
    font-size: 0.85rem;
    color: #fdba74;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Loader */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#processBtn.loading .btn-text {
    visibility: hidden;
}

#processBtn.loading .loader {
    display: block;
}

/* ===========================
   PRICING
   =========================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pricing-card.featured {
    border-color: var(--accent-1);
    background: rgba(99, 102, 241, 0.06);
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.pricing-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 24px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===========================
   ABOUT
   =========================== */
.about-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.about-avatar {
    font-size: 3.5rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
}

.about-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.about-title {
    color: var(--accent-2);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.about-credentials span {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.about-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 32px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    transition: color var(--transition);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.35;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ===========================
   ADS
   =========================== */
.ad-slot {
    max-width: 728px;
    min-height: 90px;
    margin: 24px auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ===========================
   MODAL
   =========================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 440px;
    margin: 60px auto;
    padding: 36px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    width: auto;
    padding: 0;
}

.modal-close:hover {
    color: var(--text);
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 8px 0 12px;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 16px;
}

.qr-container {
    margin: 16px 0 20px;
}

.qr-container img {
    border-radius: var(--radius-sm);
    border: 3px solid white;
    margin: 0 auto 8px;
    width: 160px;
    height: 160px;
}

.qr-container p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    opacity: 0.6;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ===========================
   RESPONSIVE: TABLET (≤768px)
   =========================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .about-credentials {
        justify-content: center;
    }

    .about-links {
        justify-content: center;
    }

    .solution-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        gap: 4px;
    }
}

/* ===========================
   RESPONSIVE: PHONE (≤480px)
   =========================== */
@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 40px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 14px;
    }

    .stat strong {
        font-size: 0.95rem;
    }

    .section {
        padding: 50px 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .tool-card {
        padding: 20px;
    }

    .upload-area {
        padding: 28px 16px;
    }

    .modal-content {
        padding: 24px;
        margin: 30px auto;
    }

    .limit-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    .limit-text {
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .limit-row {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
    }
}

/* ===========================
   AUTH UI
   =========================== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-area {
    display: flex;
    align-items: center;
}

#loginBtn {
    white-space: nowrap;
}

#loginBtn svg {
    flex-shrink: 0;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-1);
    transition: all var(--transition);
    object-fit: cover;
}

.user-avatar:hover {
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
}

.user-dropdown.active {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.user-info strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.plan-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.plan-badge.pro {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
}

/* Login prompt inside modal */
.login-prompt {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.login-prompt p {
    color: #fdba74;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ===========================
   BUY ME A COFFEE
   =========================== */
.coffee-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    z-index: 90;
    transition: all var(--transition);
    animation: pulse-coffee 2s ease-in-out infinite;
}

.coffee-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
}

@keyframes pulse-coffee {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 6px 28px rgba(245, 158, 11, 0.6);
    }
}

.coffee-popup {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    z-index: 91;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coffee-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    width: auto;
    padding: 0;
}

.coffee-popup h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.coffee-popup>p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.coffee-qr img {
    border-radius: var(--radius-xs);
    border: 3px solid white;
    margin: 0 auto 6px;
    width: 140px;
    height: 140px;
}

.coffee-qr p {
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.coffee-pay-btn {
    font-size: 0.9rem;
}

/* ===========================
   EXAMPLE DEMO
   =========================== */
.example-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.example-card {
    flex: 1;
    min-width: 220px;
    max-width: 340px;
}

.example-label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.example-img-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 4/3;
}

.example-img-wrapper.relative {
    position: relative;
}

.example-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fake-watermark-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.1);
    /* Slight darken to make white text pop */
}


.fake-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    text-align: center;
    opacity: 0.25;
    pointer-events: none;
    white-space: nowrap;
}

.fake-watermark.wm-2 {
    top: 15%;
    left: 25%;
}

.fake-watermark.wm-3 {
    top: 85%;
    left: 75%;
}

.wm-line {
    font-size: 0.75rem;
    color: white;
    line-height: 1.5;
    font-weight: 500;
}

.example-arrow {
    font-size: 2rem;
    color: var(--accent-1);
    font-weight: 700;
}

@media (max-width: 600px) {
    .example-arrow {
        transform: rotate(90deg);
    }
}

/* ===========================
   CUSTOMIZE PANEL
   =========================== */
.customize-panel {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    overflow: hidden;
}

.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    transition: background var(--transition);
}

.customize-header:hover {
    background: var(--surface-hover);
}

.customize-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.customize-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
}

.customize-body.open {
    max-height: 500px;
    padding: 0 20px 20px;
}

.customize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.customize-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.customize-item label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.customize-item label span {
    color: var(--accent-2);
    font-weight: 600;
}

.customize-item select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.customize-item select:hover,
.customize-item select:focus {
    border-color: var(--accent-1);
}

.customize-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    outline: none;
    transition: background var(--transition);
}

.customize-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-1);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.customize-item input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.6);
}

.customize-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-1);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===========================
   LIVE PREVIEW
   =========================== */
.preview-section {
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.preview-canvas-wrapper {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0d1117;
    min-height: 200px;
}

.preview-canvas-wrapper canvas {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-xs);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ===========================
   USAGE COUNTER
   =========================== */
.usage-counter {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.usage-counter strong {
    color: var(--accent-2);
}

/* ===========================
   LIMIT MODAL
   =========================== */
.limit-modal-content {
    text-align: center;
}

.limit-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.limit-modal-content .btn-ghost {
    margin-top: 0.5rem;
    color: var(--text-muted);
}

/* ===========================
   PRIVACY PAGE
   =========================== */
.privacy-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.privacy-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-content a {
    color: var(--accent-2);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-1);
}

/* ===========================
   RESPONSIVE FIXES
   =========================== */
@media (max-width: 768px) {
    .nav-right {
        gap: 8px;
    }

    .coffee-popup {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 88px;
    }

    .coffee-fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .user-dropdown {
        right: -20px;
    }

    .usage-counter {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .customize-grid {
        grid-template-columns: 1fr;
    }

    .preview-canvas-wrapper canvas {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    #loginBtn span:not(svg) {
        display: none;
    }
}

/* ===========================
   FEEDBACK BUTTON
   =========================== */
/* ===========================
   FLOATING ACTIONS (FAB)
   =========================== */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 900;
}

.fab-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-1);
    z-index: 910;
}

/* Partner FAB specific */
.partner-fab {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    font-size: 1.8rem;
    animation: bounce-gentle 3s infinite;
}

.feedback-fab {
    font-size: 1.4rem;
}

/* Remove old static positions if any */
.feedback-btn {
    display: none !important;
}

.coffee-fab {
    display: none !important;
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ===========================
   PARTNER MODAL
   =========================== */
.partner-modal-content {
    max-width: 800px;
    padding: 3rem !important;
    background: linear-gradient(to bottom, #111827, #0f172a);
}

.partner-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.partner-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: var(--accent-1);
}

.partner-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #f59e0b;
    color: black;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.partner-img {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partner-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.partner-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.partner-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 1rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }

    .fab-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .partner-modal-content {
        padding: 1.5rem !important;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   AD BANNER (Below Tool)
   =========================== */
.ad-banner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-top: -20px;
    margin-bottom: 20px;
}

.ad-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ad-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ad-banner-text strong {
    font-size: 0.9rem;
    color: var(--text);
}

.ad-banner-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.ad-earn-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .ad-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .ad-banner-left {
        flex-direction: column;
    }
}

/* ===========================
   CREDIT COUNTER
   =========================== */
.credit-counter {
    text-align: center;
    font-size: 0.85rem;
    color: #a78bfa;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: var(--radius-sm);
}

.credit-counter strong {
    color: #c4b5fd;
}

.credit-earn-hint a {
    color: var(--accent-2);
    text-decoration: underline;
    font-weight: 500;
}

/* ===========================
   CREDIT BADGES (Partner Cards)
   =========================== */
.credit-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: white !important;
    font-weight: 700;
}

.credit-badge-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* ===========================
   ACCENT BUTTON (Watch Ad)
   =========================== */
.btn-accent {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

/* ===========================
   NEW FOOTER (VERTICAL)
   =========================== */
.footer-content-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-content-vertical .footer-brand {
    margin-bottom: 4px;
}

.footer-content-vertical .footer-links {
    gap: 24px;
}

.footer-content-vertical .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    opacity: 0.5;
    border-top: none;
    padding-top: 0;
}

/* ===========================
   NEW AD BANNER GRAPHIC
   =========================== */
.ad-placeholder-graphic {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B 0%, #d64646 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    flex-shrink: 0;
}

.ad-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

@media (max-width: 480px) {
    .ad-banner-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===========================
   CENTERED ABOUT CARD
   =========================== */
.text-center {
    text-align: center;
}

.centered-card {
    max-width: 600px;
    margin: 32px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.centered-card .about-info {
    align-items: center;
    /* Center flex items if any column layout */
}

.centered-card .about-links {
    justify-content: center;
}
/* Mobile Fixes (v1.5) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        order: -1 !important;
        margin-right: auto;
    }
    .nav-logo {
        margin-right: auto;
        padding-left: 0;
    }
    .fab-btn, .coffee-fab {
        bottom: 100px !important;
    }
}

/* Form Layout Fixes (v1.6) */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
}
.input-wrapper input, .input-wrapper select {
    padding-left: 42px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 48px;
    width: 100%;
    border-radius: 8px;
}
.input-wrapper input:focus {
    border-color: #38bdf8;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}
label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer (v1.7) */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem;
    margin-top: 4rem;
    text-align: center;
}
.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
}
.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
