@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #102a2a;
    --muted: #64748b;
    --line: #dbe7e5;
    --paper: #f5f8f7;
    --surface: #ffffff;
    --brand: #0f766e;
    --brand-dark: #0a514d;
    --brand-soft: #dff4ef;
    --accent: #f97316;
    --danger: #dc2626;
    --success: #138a64;
    --shadow: 0 20px 50px rgba(15, 67, 64, .10);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", "Hind Siliguri", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.bn, [lang="bn"] { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(219, 231, 229, .85);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 26px; }
.logo { width: 218px; display: inline-flex; align-items: center; }
.logo img { display: block; width: 100%; }
.main-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.main-nav a {
    padding: 10px 12px;
    color: #3b5250;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.mobile-nav-logout { display: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.profile-chip {
    display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px;
    background: #f1f7f5; border: 1px solid var(--line); border-radius: 999px;
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    color: white; background: linear-gradient(145deg, var(--brand), #14b8a6); font-weight: 800;
}
.profile-chip small { display: block; color: var(--muted); font-size: 10px; line-height: 1; }
.profile-chip strong { display: block; font-size: 12px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu { display: none; border: 0; background: #eff6f4; border-radius: 10px; width: 42px; height: 42px; }

.btn {
    border: 0;
    border-radius: 11px;
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--brand), #0f9288); box-shadow: 0 10px 24px rgba(15,118,110,.18); }
.btn-accent { color: white; background: linear-gradient(135deg, var(--accent), #ea580c); box-shadow: 0 10px 24px rgba(249,115,22,.20); }
.btn-ghost { color: var(--brand-dark); background: #edf6f4; }
.btn-dark { color: white; background: #102a2a; }
.btn-danger { color: white; background: var(--danger); }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }

.hero {
    min-height: 640px;
    padding: 92px 0 72px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 10% 10%, rgba(249,115,22,.13), transparent 30%),
        radial-gradient(circle at 87% 18%, rgba(20,184,166,.15), transparent 29%),
        linear-gradient(180deg, #fff 0, #f0f8f6 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none;
    background-image: radial-gradient(#0f766e 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    padding: 8px 12px; border: 1px solid #cce6df; background: rgba(255,255,255,.75);
    color: var(--brand-dark); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(249,115,22,.12); }
.hero h1 { margin: 0; max-width: 650px; font-size: clamp(42px, 5.5vw, 76px); line-height: 1.03; letter-spacing: -.052em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-copy > p { color: #536b68; font-size: 18px; line-height: 1.75; max-width: 590px; margin: 24px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 34px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #d7eee8; color: var(--brand); font-style: normal; font-weight: 900; }

.hero-visual { position: relative; min-height: 480px; }
.mock-window {
    position: absolute; width: 92%; right: 0; top: 18px; padding: 15px; border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px; background: rgba(255,255,255,.78); backdrop-filter: blur(18px); box-shadow: 0 32px 90px rgba(19,74,70,.22);
    transform: rotate(1.5deg);
}
.mock-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 13px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d7e3e1; }
.mock-toolbar small { color: var(--muted); font-weight: 700; }
.mock-body { display: grid; grid-template-columns: 1.08fr .92fr; gap: 11px; }
.mock-card {
    aspect-ratio: 1; border-radius: 15px; overflow: hidden; position: relative;
    background: linear-gradient(150deg, #18383a 0 58%, var(--brand) 58%);
}
.mock-photo { position: absolute; inset: 0 0 31%; background: linear-gradient(135deg, #cbd5e1, #eff5f4 50%, #b6ccc7); }
.mock-photo::before { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: #9fb9b4; left: 50%; top: 50%; transform: translate(-50%,-38%); box-shadow: 0 90px 0 45px #8aa7a1; }
.mock-card-copy { position: absolute; inset: auto 20px 17px; color: white; }
.mock-card-copy b { font-size: 19px; line-height: 1.25; display: block; }
.mock-card-copy span { display: block; margin-bottom: 7px; font-size: 8px; text-transform: uppercase; letter-spacing: .15em; opacity: .75; }
.mock-form { padding: 16px; border-radius: 15px; background: #f4f8f7; }
.mock-label { height: 7px; width: 35%; background: #9db3af; border-radius: 5px; margin: 7px 0; }
.mock-input { height: 29px; border: 1px solid #d5e1df; background: white; border-radius: 7px; margin-bottom: 11px; }
.mock-input.big { height: 68px; }
.mock-button { height: 34px; background: var(--accent); border-radius: 8px; margin-top: 13px; }
.float-card {
    position: absolute; z-index: 2; padding: 12px 15px; background: white; border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700;
}
.float-card i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-style: normal; }
.float-one { left: -12px; top: 54px; }
.float-two { right: -18px; bottom: 48px; }

.section { padding: 88px 0; }
.section-white { background: white; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.section-head p { max-width: 520px; margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.kicker { color: var(--brand); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
    padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-5px); border-color: #b6d9d2; box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 21px; }
.feature-card:nth-child(2n) .feature-icon { color: #c94f0a; background: #fff0e6; }
.feature-card h3 { margin: 20px 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.library-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden;
    margin: 10px 0 20px; padding: 34px 38px; color: white; border-radius: 22px;
    background: linear-gradient(125deg, #061b42, #0b3d91);
}
.library-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -105px; border: 36px solid rgba(255,255,255,.06); border-radius: 50%; }
.library-hero span { color: #bcd0f4; font-size: 11px; }
.library-hero h1 { margin: 9px 0 5px; font-size: 30px; }
.library-hero p { margin: 0; color: #bcd0f4; font-size: 12px; }
.library-hero i { z-index: 1; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 32px; font-style: normal; }
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.template-tile { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: white; transition: .2s; box-shadow: 0 5px 14px rgba(17,24,39,.04); }
.template-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.template-preview-wrap { position: relative; padding: 8px 8px 0; background: linear-gradient(145deg,#f8fafc,#eef2f7); }
.template-preview {
    --preview-primary: #0f766e; --preview-secondary: #071f28; --preview-accent: #f97316; --preview-title: #fff;
    position: relative; isolation: isolate; aspect-ratio: 1; overflow: hidden; color: var(--preview-title);
    background: linear-gradient(145deg, var(--preview-primary), var(--preview-secondary));
    font-family: "Hind Siliguri", sans-serif;
}
.template-preview.landscape { aspect-ratio: 16/9; }
.template-preview.story { aspect-ratio: 9/16; }
.template-preview::before, .template-preview::after { content: ""; position: absolute; z-index: 8; pointer-events: none; }
.template-uploaded-preview { width: 100%; height: 100%; object-fit: contain; background: #edf1f3; }
.preview-photo { position: absolute; z-index: 0; inset: 0 0 37%; background: var(--sample-image) center/cover no-repeat; }
.preview-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--preview-secondary) 78%); opacity: .7; }
.preview-brand { position: absolute; z-index: 3; left: 5%; top: 5%; display: flex; align-items: center; gap: 4px; padding: 3px 5px; color: #0f172a; background: rgba(255,255,255,.92); border-radius: 4px; font-size: 5px; font-weight: 900; letter-spacing: .03em; }
.preview-brand b { display: grid; place-items: center; width: 13px; height: 13px; color: white; background: var(--preview-accent); border-radius: 50%; font-size: 7px; }
.preview-brand em { font-style: normal; }
.preview-date { position: absolute; z-index: 3; top: 6%; right: 5%; color: rgba(255,255,255,.86); font-size: 6px; }
.preview-kicker { position: absolute; z-index: 4; left: 6%; bottom: 30%; padding: 3px 7px; color: #fff; background: var(--preview-accent); border-radius: 3px; font-size: 6px; font-weight: 800; }
.preview-headline { position: absolute; z-index: 3; left: 6%; right: 6%; bottom: 12%; font-size: clamp(10px, 1.15vw, 15px); line-height: 1.25; }
.preview-byline { position: absolute; z-index: 3; left: 6%; bottom: 6%; color: rgba(255,255,255,.72); font-size: 5px; }
.preview-footer { position: absolute; z-index: 4; right: 5%; bottom: 4%; max-width: 48%; overflow: hidden; color: rgba(255,255,255,.55); font: 600 4px/1.1 Inter,sans-serif; white-space: nowrap; }
.preview-quote { display: none; position: absolute; z-index: 3; color: var(--preview-accent); font: 900 42px/1 Georgia,serif; }
.template-preview.overlay .preview-photo { inset: 0; }
.template-preview.overlay .preview-shade { background: linear-gradient(180deg, rgba(1,8,16,.05) 20%, var(--preview-secondary) 92%); opacity: .92; }
.template-preview.overlay .preview-kicker { bottom: 34%; }
.template-preview.overlay .preview-headline { bottom: 14%; font-size: clamp(11px, 1.25vw, 16px); }
.template-preview.split .preview-photo { inset: 0 44% 0 0; }
.template-preview.split .preview-shade { left: 43%; background: linear-gradient(90deg, transparent, var(--preview-secondary) 16%); opacity: 1; }
.template-preview.split .preview-brand { left: 59%; }
.template-preview.split .preview-date { top: auto; right: 5%; bottom: 5%; }
.template-preview.split .preview-kicker { left: 59%; bottom: 67%; }
.template-preview.split .preview-headline { left: 59%; right: 5%; bottom: 26%; font-size: clamp(8px, .95vw, 13px); }
.template-preview.split .preview-byline { left: 59%; bottom: 16%; }
.template-preview.is-opinion .preview-photo { inset: 14% 0 0 42%; background-position: center top; }
.template-preview.is-opinion .preview-shade { background: linear-gradient(90deg, var(--preview-secondary) 0 38%, transparent 78%), linear-gradient(0deg, var(--preview-secondary), transparent 55%); opacity: .96; }
.template-preview.is-opinion .preview-quote { display: block; left: 7%; top: 22%; }
.template-preview.is-opinion .preview-kicker { bottom: auto; top: 12%; }
.template-preview.is-opinion .preview-headline { left: 7%; right: 33%; bottom: 29%; font-size: clamp(9px, 1.05vw, 14px); }
.template-preview.is-opinion .preview-byline { left: 7%; bottom: 19%; }
.template-preview.is-opinion.split .preview-photo { inset: 0 51% 0 0; }
.template-preview.is-opinion.split .preview-shade { left: 0; background: linear-gradient(90deg, transparent 30%, var(--preview-secondary) 51%); }
.template-preview.is-opinion.split .preview-brand { left: 58%; }
.template-preview.is-opinion.split .preview-quote { left: 57%; top: 23%; }
.template-preview.is-opinion.split .preview-kicker { left: 58%; }
.template-preview.is-opinion.split .preview-headline { left: 58%; right: 6%; bottom: 28%; }
.template-preview.is-opinion.split .preview-byline { left: 58%; }
.template-preview.frame-broadcast { box-shadow: inset 0 0 0 4px var(--preview-accent), inset 0 0 0 7px rgba(255,255,255,.85); }
.template-preview.frame-breaking::before { inset: 0 0 auto; height: 8%; background: repeating-linear-gradient(135deg,var(--preview-accent) 0 16px,#fff 16px 20px); }
.template-preview.frame-corner::after { right: -16%; bottom: -13%; width: 50%; height: 42%; background: var(--preview-accent); transform: rotate(-18deg); opacity: .85; }
.template-preview.frame-double { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--preview-accent), inset 0 0 0 11px #fff; }
.template-preview.frame-ribbon::before { right: -14%; top: 12%; width: 58%; height: 10%; background: var(--preview-accent); transform: rotate(34deg); opacity: .9; }
.template-preview.frame-diagonal::after { left: -12%; bottom: 23%; width: 126%; height: 8%; background: var(--preview-accent); transform: rotate(-7deg); opacity: .88; }
.template-preview.frame-signal::after { inset: 0; background-image: radial-gradient(rgba(255,255,255,.25) 1px,transparent 1px); background-size: 9px 9px; opacity: .35; }
.template-preview.frame-heritage::before { inset: 3%; border: 2px solid var(--preview-accent); border-radius: 50% 3px 50% 3px / 8% 50% 8% 50%; }
.template-preview.frame-glass .preview-headline { padding: 7%; margin: -7%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; backdrop-filter: blur(4px); }
.template-preview.frame-minimal .preview-kicker { padding-left: 0; color: var(--preview-accent); background: transparent; }
.reference-chip { border-color: #f8b44b; color: #9a4c08; background: #fff7e8; }
.reference-chip.active { border-color: #ea6c3f; color: white; background: #ea6c3f; }
.template-new { position: absolute; z-index: 12; left: 14px; top: 14px; padding: 5px 8px; border-radius: 999px; color: #ffffff; background: linear-gradient(135deg,#ef6c3d,#e11d48); box-shadow: 0 4px 12px rgba(190,45,45,.28); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.template-lock { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(15,23,42,.75); color: white; font-size: 10px; backdrop-filter: blur(5px); }
.template-info { padding: 14px; }
.template-info-row { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.template-info h3 { margin: 0; font-size: 15px; }
.template-info p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.tier { padding: 4px 7px; border-radius: 999px; background: #edf6f4; color: var(--brand); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.template-actions { display: flex; gap: 7px; margin-top: 12px; }
.template-actions .btn { flex: 1; }
.favorite-btn { width: 38px; border: 1px solid var(--line); background: white; border-radius: 9px; color: #8ba19d; }
.favorite-btn.active { color: #e11d48; background: #fff1f2; border-color: #fecdd3; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 18px; }
.plan-card {
    position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white;
}
.plan-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); transform: translateY(-8px); }
.popular-ribbon { position: absolute; right: 18px; top: -13px; padding: 6px 10px; border-radius: 999px; color: white; background: var(--accent); font-size: 10px; font-weight: 800; }
.plan-card h3 { margin: 0; font-size: 24px; }
.plan-card .price { margin: 18px 0; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.plan-card .price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.plan-card ul { padding: 0; margin: 24px 0; list-style: none; display: grid; gap: 12px; }
.plan-card li { display: flex; gap: 9px; color: #49615e; font-size: 14px; }
.plan-card li::before { content: "✓"; color: var(--brand); font-weight: 900; }

.site-footer { padding: 48px 0 24px; color: #bdd4d0; background: #0b2526; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 410px; line-height: 1.7; font-size: 13px; }
.site-footer h4 { color: white; margin: 0 0 15px; }
.footer-links { display: grid; gap: 9px; font-size: 13px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 11px; }

.app-shell { min-height: calc(100vh - 72px); }
.page-wrap { padding: 28px 0 64px; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.breadcrumb { display: flex; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 12px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(15,67,64,.04); }
.panel-pad { padding: 22px; }
.welcome-panel {
    position: relative; overflow: hidden; padding: 30px; color: white;
    background: linear-gradient(135deg, #0c5752, #119589);
}
.welcome-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border: 50px solid rgba(255,255,255,.07); border-radius: 50%; }
.welcome-panel h2 { margin: 0 0 8px; font-size: 27px; }
.welcome-panel p { margin: 0; opacity: .82; max-width: 560px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.welcome-actions .btn { background: white; color: var(--brand-dark); }
.welcome-actions .btn:last-child { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.2); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 18px 0; }
.stat-card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 25px; letter-spacing: -.03em; }
.stat-card i { float: right; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-style: normal; }
.panel-title { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 15px; }
.panel-title h2, .panel-title h3 { margin: 0; font-size: 17px; }
.panel-title a { color: var(--brand); font-size: 12px; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfc; }
.quick-card b { display: block; font-size: 13px; margin: 9px 0 3px; }
.quick-card small { color: var(--muted); }
.quick-card i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); font-style: normal; }
.plan-summary { padding: 23px; background: #102f31; color: white; }
.plan-summary .plan-name { display: flex; justify-content: space-between; align-items: center; }
.plan-summary .plan-name b { font-size: 19px; }
.status-pill { padding: 5px 8px; border-radius: 999px; color: #a7f3d0; background: rgba(16,185,129,.16); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.usage { margin-top: 18px; }
.usage-row { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 7px; }
.progress { height: 7px; background: rgba(255,255,255,.13); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #fbbf24); border-radius: inherit; }
.plan-summary .btn { margin-top: 18px; width: 100%; background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.15); }
.activity-list { display: grid; gap: 3px; }
.activity-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf2f1; }
.activity-row:last-child { border-bottom: 0; }
.activity-thumb { width: 42px; height: 42px; border-radius: 9px; background: linear-gradient(140deg, #d8e8e4, var(--brand)); }
.activity-row b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row small { color: var(--muted); font-size: 10px; }

.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 50px 16px; background: radial-gradient(circle at 20% 20%, #dff4ef, transparent 35%), #f8faf9; }
.auth-card { width: min(440px, 100%); padding: 30px; background: white; border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; font-size: 27px; }
.auth-card > p { margin: 8px 0 24px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; gap: 15px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { color: #304946; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: white;
    border: 1px solid #cfddda; border-radius: 10px; outline: none; transition: .16s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.10); }
.field input[type="color"] { padding: 5px; min-height: 42px; }
.field input[type="range"] { padding: 0; border: 0; box-shadow: none; accent-color: var(--brand); }
.field small { color: var(--muted); font-size: 10px; }
.check-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; }
.check-row label { display: flex; align-items: center; gap: 7px; }
.auth-switch { margin-top: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.auth-switch a { color: var(--brand); font-weight: 800; }
.error-text { color: var(--danger); font-size: 11px; }

.alert { margin-bottom: 18px; padding: 12px 15px; border: 1px solid; border-radius: 11px; font-size: 12px; }
.alert-success { color: #096447; background: #ecfdf5; border-color: #a7f3d0; }
.alert-error { color: #9f1c1c; background: #fff1f2; border-color: #fecdd3; }

.settings-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 20px; }
.settings-nav { padding: 12px; align-self: start; position: sticky; top: 92px; }
.settings-nav a { display: flex; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 650; }
.settings-nav a.active, .settings-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.brand-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.brand-mark { width: 64px; height: 64px; border-radius: 17px; display: grid; place-items: center; color: white; background: var(--brand); font-size: 24px; font-weight: 800; overflow: hidden; }
.brand-head h2 { margin: 0 0 3px; font-size: 21px; }
.brand-head p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-section { padding: 23px; margin-bottom: 16px; }
.settings-section h3 { margin: 0 0 5px; font-size: 17px; }
.settings-section > p { margin: 0 0 19px; color: var(--muted); font-size: 12px; }
.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.upload-box { position: relative; min-height: 170px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1.5px dashed #b9ccc8; border-radius: 13px; background: #fafdfc; padding: 14px; overflow: hidden; transition: .18s; }
.upload-box:hover, .upload-box:focus-within { border-color: var(--brand); background: #f2fbf8; transform: translateY(-1px); }
.upload-box-dark { background: #18333b; border-color: #456068; }
.upload-box-dark:hover, .upload-box-dark:focus-within { background: #102b33; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box b { display: block; font-size: 12px; }
.upload-box span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.upload-box-dark b { color: #ffffff; }
.upload-box-dark span { color: #a8bdc2; }
.upload-preview { display: block; width: min(100%, 180px); height: 76px; object-fit: contain; border-radius: 8px; }
.upload-preview-icon { width: 68px; height: 68px; }
.upload-preview[hidden] { display: none; }
.upload-empty { width: min(100%,180px); height: 76px; display: grid !important; place-items: center; align-content: center; gap: 4px; color: #688078 !important; background: #edf5f2; border: 1px solid #d7e6e1; border-radius: 10px; }
.upload-empty i { color: #2c766b; font-size: 24px; font-style: normal; line-height: 1; }
.upload-empty small { color: inherit; font-size: 9px; font-weight: 700; }
.upload-empty-icon { width: 68px; height: 68px; border-radius: 16px; }
.upload-box-dark .upload-empty { color: #a9c1c6 !important; background: #102a31; border-color: #34535b; }
.upload-box-dark .upload-empty i { color: #e7f2f0; }
.upload-preview:not([hidden]) + .upload-empty { display: none !important; }
.upload-note { margin: 10px 0 0 !important; color: var(--muted); font-size: 10px; }
.custom-font-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; align-items: center; margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfa; }
.custom-font-card b, .custom-font-card span, .custom-font-card small { display: block; }
.custom-font-card b { margin-bottom: 3px; font-size: 12px; }
.custom-font-card span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.custom-font-card small { margin-top: 7px; color: var(--brand); font-size: 9px; font-weight: 750; }
.custom-font-picker { position: relative; overflow: hidden; }
.custom-font-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.remove-font-check { grid-column: 1/-1; display: inline-flex; align-items: center; gap: 7px; color: #a33a32; font-size: 10px; }
.color-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.filter-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 20px; }
.filter-chips { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; min-width: 0; }
.filter-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: white; font-size: 12px; font-weight: 700; }
.filter-chip.active { color: white; background: var(--brand); border-color: var(--brand); }
.search-box { position: relative; }
.search-box input { width: 230px; padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: 10px; }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 7px; color: var(--muted); }

.studio-body { background: #0d252d; min-height: 100vh; color: #dce8e7; }
.studio-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); background: #102e37; }
.studio-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.studio-brand a { color: #a8c0c1; }
.studio-badge { padding: 4px 7px; color: #8ed7cb; background: rgba(45,212,191,.1); border-radius: 6px; font-size: 9px; }
.studio-actions { display: flex; gap: 8px; }
.studio-actions .btn { min-height: 36px; }
.studio-layout { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0 44px; display: grid; grid-template-columns: minmax(340px, .88fr) minmax(500px, 1.12fr); gap: 22px; align-items: start; }
.canvas-pane { position: sticky; top: 20px; }
.canvas-mobile-close, .mobile-studio-dock { display: none; }
.canvas-wrap { padding: 14px; background: #14343d; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.canvas-touch-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #83a2a5; font-size: 9px; }
.canvas-layer-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: #0c2831; border-radius: 9px; }
.canvas-layer-switch button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 7px; color: #93afb1; background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.canvas-layer-switch button.active { color: #ffffff; background: #f2622f; }
.canvas-layer-switch button:disabled { opacity: .38; cursor: not-allowed; }
#cardCanvas { display: block; width: 100%; height: auto; background: #dfe8e6; border-radius: 9px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
#cardCanvas.dragging { cursor: grabbing; }
.canvas-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 11px; color: #8aa4a5; font-size: 10px; }
.download-btn { width: 100%; margin-top: 10px; min-height: 52px; font-size: 15px; }
.editor-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: #14343d; }
.editor-tabs { display: grid; grid-template-columns: repeat(var(--editor-tab-count,4), minmax(0,1fr)); border-bottom: 1px solid rgba(255,255,255,.08); }
.editor-tab { padding: 15px 9px; border: 0; color: #8ca6a6; background: transparent; font-weight: 700; font-size: 12px; }
.editor-tab.active { color: white; background: #f2622f; }
.editor-section { display: none; padding: 20px; }
.editor-section.active { display: block; }
.editor-panel .field label { color: #c4d6d5; }
.editor-panel .field input, .editor-panel .field textarea, .editor-panel .field select { color: #edf7f5; background: #102e37; border-color: #31505a; }
.editor-panel .field input::placeholder, .editor-panel .field textarea::placeholder { color: #66838a; }
.import-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.import-status { min-height: 18px; margin: 7px 0 14px; color: #8ab8b2; font-size: 10px; }
.photo-drop { position: relative; min-height: 140px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1.5px dashed #41616a; border-radius: 12px; background: #102e37; overflow: hidden; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop b { display: block; margin-bottom: 4px; font-size: 12px; }
.photo-drop span { color: #78969b; font-size: 10px; }
.studio-file-preview { display: block; width: min(100%, 190px); height: 92px; border-radius: 9px; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.studio-file-preview[hidden] { display: none; }
.studio-ad-preview { width: min(100%, 340px); height: 82px; }
.drag-help { margin: 7px 1px 0; color: #7f9da1; font-size: 9px; line-height: 1.5; }
.crop-panel, .layer-control-card, .font-control-card { display: grid; gap: 14px; padding: 14px; border: 1px solid #31505a; border-radius: 12px; background: #102e37; }
.panel-title.compact { margin: 0; }
.panel-title.compact h3 { font-size: 12px; }
.action-field .btn { min-height: 43px; }
.cutout-panel { display: grid; gap: 14px; margin-top: 16px; padding: 14px; border: 1px solid #31505a; border-radius: 12px; background: #102e37; }
.cutout-toggle { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #d7e7e5; font-size: 11px; }
.cutout-toggle span, .cutout-toggle small { display: block; }
.cutout-toggle small { margin-top: 4px; max-width: 410px; color: #77959a; font-size: 9px; font-weight: 400; line-height: 1.45; }
.cutout-toggle input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #f2622f; }
.cutout-status { min-height: 16px; color: #8ed7cb; font-size: 9px; }
.cutout-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.font-control-card { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.font-control-card .field { margin: 0; }
.font-upload-button { position: relative; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; overflow: hidden; color: #dcebea; background: #183f49; border: 1px solid #41616a; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }
.font-upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.font-control-card > small { grid-column: 1/-1; color: #7f9da1; font-size: 9px; line-height: 1.45; }
.layer-control-card { margin-top: 2px; }
.watermark-control-card.is-disabled { opacity: .65; }
.watermark-control-card.is-disabled .range-line, .watermark-control-card.is-disabled > button { pointer-events: none; opacity: .45; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 14px; }
.template-scroller { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-height: 520px; overflow: auto; padding-right: 4px; }
.mini-template { padding: 7px; border: 1px solid #31505a; border-radius: 10px; color: #9eb3b5; background: #102e37; }
.mini-template.active { border-color: #f2622f; box-shadow: 0 0 0 2px rgba(242,98,47,.15); }
.mini-template .template-preview { border-radius: 7px; }
.mini-template b { display: block; margin-top: 7px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-stack { display: grid; gap: 16px; }
.range-line { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; color: #c4d6d5; font-size: 11px; }
.range-line output { color: #8ed7cb; text-align: right; }
.ad-drop { min-height: 220px; }
.admin-upload-preview { display: block; width: 110px; height: 82px; margin-top: 8px; object-fit: contain; border: 1px solid var(--line); border-radius: 9px; background: #f7faf9; }
.studio-toast { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 10px; background: #fff; color: #173336; opacity: 0; pointer-events: none; transition: .2s; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
.studio-toast.show { opacity: 1; transform: translate(-50%, 0); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px; color: var(--muted); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: #f7faf9; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px 11px; border-bottom: 1px solid #edf2f1; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .muted { color: var(--muted); }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #edf3f2; color: #4c6562; font-size: 9px; font-weight: 800; }
.badge.paid, .badge.active { background: #dcfce7; color: #087443; }
.badge.failed, .badge.suspended { background: #fee2e2; color: #a71919; }
.badge.held, .badge.pending { background: #fef3c7; color: #955b08; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.admin-tab { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.admin-tab.active { background: var(--brand); border-color: var(--brand); color: white; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form { padding: 22px; }
.admin-form h3 { margin: 0 0 17px; }
.code-area { min-height: 180px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.item-list { display: grid; gap: 9px; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.list-item b { display: block; font-size: 13px; }
.list-item small { color: var(--muted); }
.modal { display: none; position: fixed; inset: 0; z-index: 100; padding: 30px 16px; overflow: auto; background: rgba(4,18,20,.65); backdrop-filter: blur(4px); }
.modal.open { display: grid; place-items: start center; }
.modal-card { width: min(680px, 100%); margin: 5vh auto; padding: 24px; border-radius: 18px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { margin: 0; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 9px; background: #eef4f2; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); }
.empty-state i { display: grid; place-items: center; width: 54px; height: 54px; margin: auto auto 12px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-style: normal; font-size: 22px; }

.payment-result { min-height: 80vh; display: grid; place-items: center; padding: 40px 16px; }
.result-card { width: min(480px, 100%); padding: 36px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.result-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--success); font-size: 30px; }
.result-icon.fail { background: var(--danger); }
.result-card h1 { margin: 0 0 9px; }
.result-card p { color: var(--muted); line-height: 1.7; }

.billing-notice { margin-bottom: 22px; padding: 12px 15px; color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; border-radius: 12px; font-size: 12px; }
.checkout-actions { display: grid; gap: 8px; }
.manual-instructions { margin-bottom: 18px; padding: 14px; color: #334155; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.manual-instructions b { color: var(--brand-dark); }
.manual-instructions p { margin: 6px 0 0; line-height: 1.6; font-size: 12px; }

.admin-body { min-height: 100vh; color: #172033; background: #f4f7fb; }
.admin-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 258px; display: flex; flex-direction: column; padding: 24px 17px 18px; color: #b8c8db; background: linear-gradient(180deg,#071b32,#0b2847 62%,#081a2f); }
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 0 9px 25px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-logo img { width: 154px; filter: brightness(0) invert(1); }
.admin-logo span { padding: 3px 6px; color: #69e2cf; background: rgba(45,212,191,.12); border-radius: 5px; font: 800 8px Inter,sans-serif; }
.admin-nav { display: grid; gap: 5px; padding-top: 22px; }
.admin-nav > small { padding: 0 12px 8px; color: #67809b; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-nav a { position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; min-height: 46px; padding: 6px 10px; color: #aac0d5; border-radius: 11px; font-size: 13px; font-weight: 650; }
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.09); }
.admin-nav a.active::before { content: ""; position: absolute; left: -17px; width: 4px; height: 24px; background: #2dd4bf; border-radius: 0 5px 5px 0; }
.admin-nav i { width: 27px; height: 27px; display: grid; place-items: center; color: #6be1d0; background: rgba(45,212,191,.08); border-radius: 8px; font-style: normal; }
.admin-nav b { min-width: 20px; padding: 3px 6px; text-align: center; color: white; background: #ef4444; border-radius: 999px; font-size: 9px; }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding: 15px 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-foot a, .admin-sidebar-foot button { width: 100%; padding: 8px 0; color: #9fb4c9; background: none; border: 0; text-align: left; font-size: 11px; }
.admin-shell { min-height: 100vh; margin-left: 258px; }
.admin-topbar { height: 86px; display: flex; align-items: center; gap: 17px; padding: 0 30px; background: white; border-bottom: 1px solid #e2e8f0; }
.admin-topbar > button { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #eef2f7; }
.admin-topbar > div:first-of-type { flex: 1; }
.admin-topbar h1 { margin: 3px 0 0; font-size: 23px; line-height: 1; }
.admin-topbar > div > span { color: #64748b; font-size: 10px; }
.admin-profile { display: flex; align-items: center; gap: 9px; }
.admin-profile > span { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: linear-gradient(145deg,#0f766e,#14b8a6); border-radius: 11px; font-weight: 800; }
.admin-profile b, .admin-profile small { display: block; }
.admin-profile b { font-size: 11px; }.admin-profile small { color: #94a3b8; font-size: 9px; }
.admin-content { width: min(1480px, calc(100% - 50px)); margin: 0 auto; padding: 28px 0 55px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 19px; }
.admin-stat-grid article { position: relative; padding: 19px; background: white; border: 1px solid #e2e8f0; border-radius: 15px; box-shadow: 0 7px 20px rgba(15,23,42,.035); }
.admin-stat-grid i { float: right; width: 38px; height: 38px; display: grid; place-items: center; color: #0f766e; background: #e6f7f3; border-radius: 11px; font-style: normal; }
.admin-stat-grid span, .admin-stat-grid small { display: block; color: #64748b; font-size: 10px; }.admin-stat-grid strong { display: block; margin: 10px 0 4px; font-size: 27px; }.admin-stat-grid small { color: #94a3b8; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 18px; margin-bottom: 18px; }
.admin-card { overflow: hidden; background: white; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 7px 20px rgba(15,23,42,.035); }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 20px; border-bottom: 1px solid #edf1f5; }
.admin-card-head h2 { margin: 0; font-size: 16px; }.admin-card-head p { margin: 4px 0 0; color: #64748b; font-size: 10px; }.admin-card-head > a { color: #0f766e; font-size: 11px; font-weight: 750; }
.admin-feed { padding: 4px 20px 10px; }
.admin-feed > div { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1f5; }.admin-feed > div:last-child { border-bottom: 0; }
.admin-feed p { margin: 0; }.admin-feed p b,.admin-feed p small { display: block; }.admin-feed p b { font-size: 11px; }.admin-feed p small { margin-top: 2px; color: #64748b; font-size: 9px; }
.admin-feed > div > strong { display: grid; justify-items: end; gap: 4px; font-size: 11px; }.admin-feed em { font-style: normal; }
.payment-mark,.user-mark { width: 37px; height: 37px; display: grid; place-items: center; color: white; background: #0f766e; border-radius: 10px; font-style: normal; font-weight: 800; }.payment-mark.manual { background: #f97316; }.user-mark { border-radius: 50%; }
.template-health { padding-bottom: 18px; }.template-health-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 18px 20px 0; }
.template-health-grid div { position: relative; overflow: hidden; padding: 14px; background: #f8fafc; border-radius: 11px; }.template-health-grid span { color: #64748b; font-size: 10px; }.template-health-grid strong { display: block; margin-top: 5px; font-size: 23px; }.template-health-grid i { position: absolute; left: 0; bottom: 0; height: 3px; background: #14b8a6; }
.admin-page-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }.admin-page-actions h2 { margin: 0; font-size: 19px; }.admin-page-actions p { margin: 5px 0 0; color: #64748b; font-size: 11px; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 11px; background: white; border: 1px solid #e2e8f0; border-radius: 13px; }
.admin-toolbar .search-box { margin: 0 auto 0 0; }.admin-toolbar select { min-height: 36px; padding: 7px 10px; border: 1px solid #dbe3ec; border-radius: 9px; background: white; font-size: 11px; }
.admin-table th { background: #f8fafc; }.admin-table td { padding-top: 14px; padding-bottom: 14px; }.inline-admin-form { display: flex; gap: 5px; }.inline-admin-form select,.inline-admin-form input { width: 110px; min-height: 34px; border: 1px solid #dbe3ec; border-radius: 8px; font-size: 10px; }.inline-admin-form input { width: 60px; padding: 5px; }
.admin-plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.admin-plan-card { padding: 22px; background: white; border: 1px solid #e2e8f0; border-radius: 16px; }.admin-plan-card.featured { border-color: #14b8a6; box-shadow: 0 15px 35px rgba(15,118,110,.1); }.admin-plan-card h3 { margin: 16px 0 0; font-size: 21px; }.admin-plan-card > small { color: #64748b; }.admin-plan-card > strong { display: block; margin: 17px 0; font-size: 34px; }.admin-plan-card > strong em { color: #64748b; font-size: 11px; font-style: normal; font-weight: 500; }.admin-plan-card > p { min-height: 42px; color: #64748b; font-size: 11px; line-height: 1.6; }.admin-plan-card > div { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid #edf1f5; font-size: 10px; }
.admin-template-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.admin-template-card { padding: 8px; background: white; border: 1px solid #e2e8f0; border-radius: 14px; transition: .18s; }.admin-template-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(15,23,42,.08); }.admin-template-preview { position: relative; overflow: hidden; border-radius: 10px; }.admin-template-preview > .badge { position: absolute; z-index: 10; top: 8px; right: 8px; }.admin-template-meta { display: flex; justify-content: space-between; gap: 8px; align-items: start; padding: 11px 5px 8px; }.admin-template-meta h3 { margin: 0; font-size: 12px; }.admin-template-meta p { margin: 3px 0 0; color: #64748b; font-size: 8px; }.admin-template-actions { display: flex; gap: 6px; padding: 0 5px 5px; }.admin-template-actions > * { flex: 1; }.admin-template-actions .btn { width: 100%; }
.review-actions { display: flex; gap: 5px; }
.admin-settings-group { margin-bottom: 16px; }.admin-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }.admin-settings-grid .span-2 { grid-column: 1/-1; }.admin-settings-grid .field label small { margin-left: 5px; color: #94a3b8; font-weight: 500; }
.switch-field { display: flex !important; align-items: center; min-height: 44px; gap: 9px; }.switch-field input { position: absolute; opacity: 0; }.switch-field span { position: relative; width: 42px; height: 23px; background: #cbd5e1; border-radius: 99px; transition: .2s; }.switch-field span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: .2s; }.switch-field input:checked + span { background: #0f766e; }.switch-field input:checked + span::after { transform: translateX(19px); }.switch-field b { font-size: 11px; }
.pagination-wrap { display: flex; justify-content: center; padding: 18px; }.pagination { display: flex; gap: 5px; }.pagination a,.pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 9px; border: 1px solid #dbe3ec; border-radius: 8px; background: white; font-size: 10px; }.pagination .active { color: white; background: #0f766e; border-color: #0f766e; }.pagination .disabled { color: #a8b4c3; background: #f8fafc; }

@media (max-width: 1050px) {
    .hero-grid { gap: 24px; }
    .template-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .studio-layout { grid-template-columns: .9fr 1.1fr; }
    .admin-template-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
    .header-inner { height: 64px; }
    .logo { width: 180px; }
    .mobile-menu { display: block; margin-left: auto; }
    .main-nav, .header-actions { display: none; }
    .site-header.open .main-nav {
        display: grid; position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto;
        background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-header.open .main-nav a { display: flex; align-items: center; min-height: 48px; padding: 11px 14px; font-size: 15px; }
    .site-header.open .mobile-nav-logout { display: block; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
    .site-header.open .mobile-nav-logout button { width: 100%; min-height: 48px; padding: 10px 14px; text-align: left; color: #b42318; background: #fff1f0; border: 0; border-radius: 10px; font-weight: 750; }
    .hero { padding-top: 62px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero h1, .hero-copy > p { margin-left: auto; margin-right: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { min-height: 430px; max-width: 600px; width: 100%; margin: auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; display: flex; overflow: auto; }
    .settings-nav a { white-space: nowrap; }
    .studio-layout { grid-template-columns: 1fr; }
    .canvas-pane { position: static; max-width: 600px; width: 100%; margin: auto; }
    .canvas-touch-tools { align-items: flex-start; flex-direction: column; }
    .canvas-layer-switch { width: 100%; }
    .canvas-layer-switch button { flex: 1 1 calc(50% - 4px); min-height: 44px; }
    .editor-panel input, .editor-panel textarea, .editor-panel select { font-size: 16px; }
    .editor-tab { min-height: 48px; }
    .photo-drop { min-height: 132px; }
    .range-line input[type="range"] { min-height: 42px; }
    .studio-header { position: sticky; z-index: 60; top: 0; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); transition: .2s; }.admin-body.admin-menu-open .admin-sidebar { transform: translateX(0); }
    .admin-shell { margin-left: 0; }.admin-topbar > button { display: block; }.admin-content { width: min(100% - 28px, 1480px); }
    .admin-stat-grid { grid-template-columns: repeat(2,1fr); }.admin-dashboard-grid { grid-template-columns: 1fr; }.admin-plan-grid { grid-template-columns: 1fr; }.template-health-grid { grid-template-columns: repeat(2,1fr); }
    .admin-template-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
    .container { width: min(100% - 22px, 1180px); }
    .hero { min-height: auto; padding-bottom: 35px; }
    .hero h1 { font-size: 43px; }
    .hero-copy > p { font-size: 15px; }
    .hero-visual { min-height: 330px; }
    .mock-window { width: 100%; }
    .float-one { left: -4px; top: 2px; }
    .float-two { right: -3px; bottom: 12px; }
    .section { padding: 60px 0; }
    .section-head { align-items: start; flex-direction: column; }
    .feature-grid { grid-template-columns: 1fr; }
    .template-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .template-preview-wrap { padding: 5px 5px 0; }
    .template-info { padding: 10px 8px 9px; }
    .template-info-row { display: block; }
    .template-info h3 { min-height: 34px; font-size: 12px; line-height: 1.35; }
    .template-info p { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .template-info .tier { display: inline-flex; margin-top: 6px; }
    .template-actions { gap: 5px; margin-top: 8px; }
    .template-actions .btn { min-height: 39px; padding: 8px 6px; font-size: 11px; }
    .favorite-btn { width: 39px; min-width: 39px; min-height: 39px; }
    .template-new { left: 8px; top: 8px; padding: 4px 6px; font-size: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 7px; }
    .dash-side { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .quick-grid { grid-template-columns: 1fr; }
    .page-heading { align-items: start; flex-direction: column; }
    .form-row, .color-pair, .upload-grid { grid-template-columns: 1fr; }
    .search-box { width: 100%; margin-left: 0; }
    .search-box input { width: 100%; }
    .filter-bar {
        position: sticky; z-index: 35; top: 64px; display: block; margin: 0 -11px 14px; padding: 9px 11px 10px;
        background: rgba(245,248,247,.96); border-bottom: 1px solid rgba(219,231,229,.85); backdrop-filter: blur(14px);
    }
    .filter-chips { flex-wrap: nowrap; gap: 7px; margin: 0 -11px 9px; padding: 0 11px 3px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .filter-chips::-webkit-scrollbar { display: none; }
    .filter-chip { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; padding: 8px 11px; white-space: nowrap; scroll-snap-align: start; }
    .library-hero { margin-top: 5px; margin-bottom: 12px; padding: 21px 18px; border-radius: 16px; }
    .library-hero h1 { font-size: 23px; }
    .library-hero p { max-width: 280px; font-size: 10px; line-height: 1.45; }
    .studio-layout { width: min(100% - 16px, 1280px); }
    .studio-header { height: auto; min-height: 58px; padding: 9px 10px; gap: 8px; }
    .studio-brand { gap: 7px; font-size: 11px; }
    .studio-actions .btn:first-child { display: none; }
    .studio-actions .btn { padding: 8px 10px; }
    .studio-body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .studio-layout { padding-top: 10px; padding-bottom: 18px; gap: 12px; }
    .canvas-pane { max-width: 460px; }
    .canvas-wrap { padding: 9px; border-radius: 13px; }
    #cardCanvas { width: auto; max-width: 100%; max-height: 48vh; max-height: 48dvh; margin-inline: auto; }
    .canvas-meta { font-size: 8px; }
    .download-btn { min-height: 47px; font-size: 13px; }
    .canvas-touch-tools > span { width: 100%; text-align: center; line-height: 1.4; }
    .mobile-studio-dock {
        position: fixed; z-index: 75; left: 8px; right: 8px; bottom: max(8px,env(safe-area-inset-bottom));
        display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px;
        background: rgba(9,31,38,.94); border: 1px solid rgba(255,255,255,.12); border-radius: 15px;
        box-shadow: 0 14px 40px rgba(0,0,0,.42); backdrop-filter: blur(16px);
    }
    .mobile-studio-dock button {
        min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px;
        color: #e9f4f2; background: #183b44; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800;
    }
    .mobile-studio-dock button:last-child { color: #ffffff; background: linear-gradient(135deg,#f97316,#e65320); }
    .mobile-studio-dock span { font-size: 17px; }
    .mobile-preview-open { overflow: hidden; }
    .mobile-preview-open .canvas-pane {
        position: fixed; z-index: 90; inset: 58px 0 0; max-width: none; padding: 12px 10px calc(82px + env(safe-area-inset-bottom));
        overflow-y: auto; background: #0d252d;
    }
    .mobile-preview-open .canvas-wrap { width: min(100%,520px); margin-inline: auto; }
    .mobile-preview-open #cardCanvas { max-height: calc(100vh - 245px); max-height: calc(100dvh - 245px); }
    .mobile-preview-open .download-btn { width: min(100%,520px); margin-inline: auto; display: flex; }
    .mobile-preview-open .canvas-mobile-close {
        position: fixed; z-index: 95; right: 14px; top: 66px; width: 42px; height: 42px; display: grid; place-items: center;
        color: white; background: rgba(3,17,22,.84); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 27px;
    }
    .editor-panel { overflow: visible; border-radius: 13px; }
    .editor-tabs {
        position: sticky; z-index: 42; top: 58px; display: flex; overflow-x: auto;
        background: #14343d; border: 1px solid rgba(255,255,255,.08); border-radius: 13px 13px 0 0; scrollbar-width: none;
    }
    .editor-tabs::-webkit-scrollbar { display: none; }
    .editor-tab { flex: 1 0 104px; min-height: 50px; padding: 12px 10px; white-space: nowrap; }
    .editor-section { padding: 14px; }
    .editor-grid { grid-template-columns: 1fr; }
    .range-line { grid-template-columns: 94px minmax(0,1fr) 38px; gap: 7px; }
    .range-line label { line-height: 1.25; }
    .range-line input[type="range"] { width: 100%; touch-action: pan-y; }
    .range-line input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; }
    .range-line input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; }
    .editor-panel textarea { min-height: 108px; }
    .cutout-panel .range-line { grid-template-columns: 1fr; }
    .cutout-panel .range-line output { display: none; }
    .font-control-card { grid-template-columns: 1fr; }
    .font-control-card > small { grid-column: auto; }
    .custom-font-card { grid-template-columns: 1fr; }
    .remove-font-check { grid-column: auto; }
    .template-scroller { grid-template-columns: repeat(2, 1fr); }
    .library-hero { padding: 26px 22px; }.library-hero i { display: none; }
    .admin-profile div { display: none; }.admin-topbar { padding: 0 15px; }.admin-topbar h1 { font-size: 18px; }
    .admin-stat-grid { grid-template-columns: 1fr; }.admin-page-actions { align-items: start; flex-direction: column; }.admin-toolbar { align-items: stretch; flex-direction: column; }.admin-toolbar .search-box,.admin-toolbar .search-box input { width: 100%; }
    .admin-template-grid { grid-template-columns: 1fr; }.admin-settings-grid { grid-template-columns: 1fr; }.admin-settings-grid .span-2 { grid-column: auto; }.template-health-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 370px) {
    .template-grid { grid-template-columns: 1fr; }
    .template-info-row { display: flex; }
    .template-info h3 { min-height: 0; font-size: 14px; }
    .studio-brand span:not(.studio-badge) { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .range-line { grid-template-columns: 84px minmax(0,1fr) 34px; font-size: 10px; }
}

@media (hover: none) and (pointer: coarse) {
    .btn, .filter-chip, .editor-tab, .favorite-btn, .canvas-layer-switch button { -webkit-tap-highlight-color: transparent; }
    .template-tile:hover, .btn:hover { transform: none; }
}
