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

/* ═══════════════════════════════════════════════
   ROOT — DESIGN TOKENS
   ═══════════════════════════════════════════════ */
:root {
    --bg:           #f0f2f5;
    --bg-card:      #ffffff;
    --bg-input:     #f8f9fb;
    --bg-hover:     #f4f6f9;
    --bg-header:    #ffffff;

    --border:       #e4e8ee;
    --border-hi:    #d0d6e0;

    --accent:       #2563eb;
    --accent-light: #eff4ff;
    --accent-glow:  rgba(37, 99, 235, 0.12);

    --text:         #111827;
    --text-muted:   #6b7280;
    --text-dim:     #9ca3af;

    --success:      #059669;
    --success-bg:   #ecfdf5;
    --danger:       #dc2626;

    --font-main:    'Inter', sans-serif;
    --font-mono:    'Space Mono', monospace;

    --radius:       12px;
    --radius-lg:    16px;
    --radius-xl:    20px;

    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:       0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg:    0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-hover: 0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    font-family: var(--font-main);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.header-pasek {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-sm);
}
.header-zawartosc {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
}
.header-left  { display: flex; align-items: center; justify-content: flex-start; }
.header-right { display: flex; align-items: center; justify-content: flex-end; }

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 2;
    text-decoration: none;
    transition: opacity 0.2s;
}
.header-brand:hover { opacity: 0.8; }
.header-logo-svg { width: 28px; height: 28px; color: var(--accent); }

.header-tytul {
    font-family: var(--font-main);
    font-size: 1.2em;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}
.header-tytul .accent { color: var(--accent); }

.header-status {
    font-family: var(--font-mono);
    font-size: 0.65em;
    color: var(--success);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-status::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.header-back {
    font-family: var(--font-main);
    font-size: 0.82em;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 8px;
    transition: 0.2s;
    text-decoration: none;
    background: var(--bg-card);
}
.header-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

/* ═══════════════════════════════════════════════
   LAYOUT STRONY GŁÓWNEJ
   ═══════════════════════════════════════════════ */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 700px 1fr;
    align-items: start;
    padding: 56px 32px 80px;
    gap: 48px;
    flex: 1;
    width: 100%;
}
.side-col-left  { display: flex; justify-content: flex-end; padding-top: 40px; }
.side-col-right { display: flex; justify-content: flex-start; padding-top: 40px; }

.side-illustration { animation: floating 6s ease-in-out infinite; }
.side-illustration img { width: 160px; height: auto; opacity: 0.6; filter: drop-shadow(0 8px 24px rgba(37,99,235,0.15)); }
.side-illustration svg { width: 160px; height: auto; opacity: 0.3; }
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* ═══════════════════════════════════════════════
   TERMINAL — FIXED SIZE (ciemny na jasnym tle — kontrast)
   ═══════════════════════════════════════════════ */
.terminal-container {
    width: 340px;
    height: 200px;
    background: #1e1e2e;
    border: 1px solid #2a2a3e;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    flex-shrink: 0;
}
.terminal-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a3e;
}
.terminal-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.63em;
    color: #555577;
    margin-left: 6px;
    letter-spacing: 1px;
}
.terminal-body {
    font-family: var(--font-mono);
    font-size: 0.74em;
    line-height: 1.8;
    height: calc(200px - 18px - 18px - 36px);
    overflow: hidden;
}
.terminal-row {
    display: flex;
    align-items: flex-start;
    min-height: 1.8em;
    opacity: 0;
    transition: opacity 0.3s;
}
.terminal-row.visible { opacity: 1; }
.terminal-prompt { color: #7c7cff; font-weight: 700; margin-right: 8px; white-space: nowrap; flex-shrink: 0; user-select: none; }
.terminal-text { color: #a0a0c0; word-break: break-word; }
.terminal-cursor {
    display: inline-block;
    width: 7px; height: 13px;
    background: #7c7cff;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}
.terminal-cursor.hidden { display: none; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.opacity-0 { opacity: 0 !important; transition: opacity 0.4s; }
.blur-sm   { filter: blur(3px); transition: filter 0.4s; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
    text-align: center;
    margin-bottom: 36px;
}
.hero-label {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.hero-title {
    font-size: 2.6em;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text);
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-top: 12px;
    font-weight: 400;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CARD / BLOK
   ═══════════════════════════════════════════════ */
.blok {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}
.blok-header {
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   GRID PRZYCISKÓW OPERACJI — 2 kolumny z opisem
   ═══════════════════════════════════════════════ */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.grid-container > .info-tile { display: none; }
.grid-container .action-btn-main:last-of-type { grid-column: 1 / -1; }

/* 1-kolumnowy wariant dla strony głównej */
.grid-1col {
    grid-template-columns: 1fr !important;
}
.grid-1col .action-btn-main:last-of-type {
    grid-column: auto !important;
}

.action-btn-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.88em;
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}
.action-btn-main:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    background: #fafbff;
}
.btn-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1em;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.btn-merge   .btn-icon-wrap { background: rgba(249,115, 22,0.12); }
.btn-split   .btn-icon-wrap { background: rgba(139, 92,246,0.12); }
.btn-explode .btn-icon-wrap { background: rgba(  6,182,212,0.12); }
.btn-delete  .btn-icon-wrap { background: rgba(239, 68, 68,0.12); }
.btn-wm      .btn-icon-wrap { background: rgba( 16,185,129,0.12); }
.action-btn-main:hover .btn-icon-wrap { transform: scale(1.08); }

.btn-text  { display: flex; flex-direction: column; gap: 2px; }
.btn-title { font-weight: 700; font-size: 0.9em; color: var(--text); }
.btn-desc  { font-size: 0.75em; color: var(--text-muted); font-weight: 400; line-height: 1.4; white-space: normal; }

/* info-tile nieużywane w nowym gridzie */
.info-tile { display: none; }

/* ═══════════════════════════════════════════════
   STRONY PODRZĘDNE
   ═══════════════════════════════════════════════ */
.glowna-sekcja {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 64px;
}
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════════
   FORMULARZE
   ═══════════════════════════════════════════════ */
.field-label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    margin-top: 4px;
}
input[type="file"],
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 0.9em;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
input[type="file"]:hover,
input[type="number"]:focus,
input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: #fff;
}

.drop-area {
    border: 2px dashed var(--border-hi);
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    background: var(--bg-input);
    cursor: pointer;
    transition: 0.2s;
    animation: pulse-border 4s ease-in-out infinite;
}
.drop-area:hover, .drop-area.highlight {
    border-color: var(--accent);
    border-style: solid;
    background: var(--accent-light);
    color: var(--accent);
    animation: none;
}
.drop-area p { font-size: 0.85em; margin: 0; font-weight: 500; }
@keyframes pulse-border {
    0%, 100% { border-color: var(--border-hi); }
    50%       { border-color: #b0bccc; }
}

.file-label-btn {
    display: block;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 0.86em;
    font-weight: 600;
    transition: 0.2s;
}
.file-label-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   PRZYCISKI
   ═══════════════════════════════════════════════ */
.btn-primary {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9em;
    transition: 0.2s;
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }
.btn-primary:disabled { background: var(--border-hi); color: var(--text-dim); cursor: not-allowed; transform: none; box-shadow: none; }

/* ═══════════════════════════════════════════════
   DOWNLOAD / SUCCESS
   ═══════════════════════════════════════════════ */
.download-box {
    display: none;
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius);
    background: var(--success-bg);
}
.download-box.visible { display: block; }
.download-box .success-label {
    font-size: 0.78em;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    text-transform: uppercase;
}
.download-link {
    display: inline-block;
    color: #fff;
    background: var(--success);
    font-weight: 700;
    font-size: 0.85em;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--radius);
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}
.download-link:hover { background: #047857; transform: translateY(-1px); }

.file-list-box {
    display: none;
    margin-bottom: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.file-list-box h4 { font-size: 0.72em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.file-list-box ul { list-style: none; }
.file-list-box ul li { font-size: 0.82em; color: var(--text); padding: 5px 0; border-bottom: 1px solid var(--border); }
.file-list-box ul li:last-child { border: none; }

.status-msg { display: none; font-size: 0.82em; font-weight: 600; color: var(--accent); margin-top: 12px; }
.field-hint { font-size: 0.78em; color: var(--text-muted); margin-top: -14px; margin-bottom: 18px; line-height: 1.5; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2col input[type="number"] { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   WATERMARK
   ═══════════════════════════════════════════════ */
.wm-drop-area {
    border: 2px dashed var(--border-hi);
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    background: var(--bg-input);
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}
.wm-drop-area strong { display: block; font-size: 0.8em; font-weight: 700; margin-bottom: 3px; pointer-events: none; color: var(--text); }
.wm-drop-area span { font-size: 0.75em; pointer-events: none; }
.wm-drop-area:hover, .wm-drop-area.highlight { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.wm-drop-pdf  { border-color: #93c5fd; }
.wm-drop-img1 { border-color: #fca5a5; }
.wm-drop-img2 { border-color: #86efac; }

#preview-wrapper { position: relative; display: none; border: 1px solid var(--border); background: #f0f0f0; line-height: 0; box-shadow: var(--shadow-lg); margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
#pdf-canvas { max-width: 100%; height: auto; }

.watermark-box { position: absolute; width: 80px; height: 80px; border: 2px dashed; cursor: move; z-index: 10; display: none; background: rgba(255,255,255,0.2); }
.watermark-box img { width: 100%; height: 100%; pointer-events: none; display: block; object-fit: contain; }
.watermark-box .wm-label { position: absolute; top: -22px; left: 0; font-size: 10px; font-weight: 700; background: var(--bg-card); color: var(--text-muted); padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
#box-1 { border-color: #ef4444; top: 50px; left: 50px; }
#box-2 { border-color: #3b82f6; top: 150px; left: 50px; }
.resizer { width: 12px; height: 12px; position: absolute; right: -6px; bottom: -6px; cursor: nwse-resize; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
#box-1 .resizer { background: #ef4444; }
#box-2 .resizer { background: #3b82f6; }
#wm-status { font-size: 0.8em; font-weight: 600; color: var(--accent); margin-top: 10px; min-height: 1.4em; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.stopka-info { text-align: center; padding: 20px; font-size: 0.78em; color: var(--text-muted); border-top: 1px solid var(--border); background: var(--bg-card); }
.stopka-info a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.stopka-info a:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .main-wrapper { grid-template-columns: 1fr; justify-items: center; padding: 40px 24px 60px; gap: 32px; }
    .side-col-left, .side-col-right { display: none; }
    .header-zawartosc { grid-template-columns: auto 1fr; }
    .header-right { display: none; }
}
@media (max-width: 680px) {
    .blok, .form-card { padding: 22px 18px; }
    .grid-container { grid-template-columns: 1fr; }
    .grid-container .action-btn-main:last-of-type { grid-column: auto; }
    .grid-2col { grid-template-columns: 1fr; }
    .header-tytul { font-size: 1em; }
    .hero-title { font-size: 2em; }
}

/* ═══════════════════════════════════════════════
   AUTH — LOGIN / REGISTER
   ═══════════════════════════════════════════════ */
.flash {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.84em;
    font-weight: 500;
    margin-bottom: 16px;
}
.flash-error   { background: #fef2f2; border: 1px solid #fecaca; color: var(--danger); }
.flash-success { background: var(--success-bg); border: 1px solid #a7f3d0; color: var(--success); }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.84em;
    color: var(--text-muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════════
   HEADER — AUTH BUTTONS
   ═══════════════════════════════════════════════ */
.header-register {
    background: var(--accent);
    color: #fff;
    font-size: 0.82em;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    margin-left: 8px;
    transition: 0.2s;
}
.header-register:hover { background: #1d4ed8; }

.header-upgrade {
    background: #fef9ee;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.78em;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    transition: 0.2s;
    letter-spacing: 0.5px;
}
.header-upgrade:hover { background: #fef3c7; }

.header-pro-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.7em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-right: 4px;
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */
.pricing-section {
    flex: 1;
    padding: 56px 24px 80px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}
.pricing-hero {
    text-align: center;
    margin-bottom: 48px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
}
.pricing-card-pro {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}
.plan-name {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.plan-price {
    font-size: 2.6em;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.plan-period {
    font-size: 0.4em;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}
.plan-features {
    list-style: none;
    margin-bottom: 28px;
}
.plan-features li {
    font-size: 0.88em;
    color: var(--text);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }
.plan-features .feature-limit { color: var(--text-dim); }

.btn-plan {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9em;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    text-decoration: none;
}
.btn-plan-secondary {
    background: var(--bg-input);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-plan-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-plan-pro {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.btn-plan-pro:hover { background: #1d4ed8; transform: translateY(-2px); }
.btn-plan-pro:disabled { background: var(--success); cursor: default; transform: none; box-shadow: none; }

@media (max-width: 640px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   ACCOUNT
   ═══════════════════════════════════════════════ */
.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}
.account-row:last-of-type { border: none; }
.account-label { color: var(--text-muted); font-weight: 500; }
.account-value { color: var(--text); font-weight: 600; }

.badge-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.75em;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
}
.badge-free {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.75em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.account-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.btn-logout {
    display: block;
    text-align: center;
    padding: 11px;
    border-radius: var(--radius);
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: 0.2s;
}
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

/* ═══════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════ */
.success-big   { font-size: 3.5em; margin-bottom: 16px; }
.success-title { font-size: 1.6em; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.success-desc  { font-size: 0.95em; color: var(--text-muted); line-height: 1.6; }

/* SPINNER */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
