/* =======================================================
   CENOVÉ NABÍDKY - HLAVNÍ STYLY
   Moderní, nadčasový design v modré/zlaté/bílé/šedé
   ======================================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', Oxygen, Ubuntu, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* === PROMĚNNÉ - DARK THEME (default) === */
:root,
html[data-theme="dark"] {
    --bg: #0b1120;
    --bg-elevated: #111a2e;
    --bg-card: #162038;
    --bg-hover: #1d2a47;
    --border: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent-blue: #3b82f6;
    --accent-blue-soft: rgba(59, 130, 246, 0.15);
    --accent-blue-deep: #1e40af;
    --accent-gold: #d4af37;
    --accent-gold-soft: rgba(212, 175, 55, 0.12);
    --accent-gold-deep: #b8941f;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-hero: linear-gradient(135deg, #0c1a3a 0%, #1e3a8a 50%, #0f172a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #e8c766 50%, #b8941f 100%);
}

/* === PROMĚNNÉ - LIGHT THEME === */
html[data-theme="light"] {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.15);
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --accent-blue: #1e40af;
    --accent-blue-soft: rgba(30, 64, 175, 0.08);
    --accent-blue-deep: #1e3a8a;
    --accent-gold: #b8941f;
    --accent-gold-soft: rgba(184, 148, 31, 0.1);
    --accent-gold-deep: #92721a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
}

/* === BACKGROUND PATTERN === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, var(--accent-blue-soft), transparent 50%),
        radial-gradient(circle at 80% 100%, var(--accent-gold-soft), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* === HELPERS === */
.muted { color: var(--text-muted); font-size: 0.9rem; }
.accent { color: var(--accent-gold); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-span-2 { grid-column: span 2; }

@media (max-width: 720px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-span-2 { grid-column: span 1; }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-blue-soft);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}
.btn-gold {
    background: var(--gradient-gold);
    color: #1a1510;
    box-shadow: 0 4px 14px var(--accent-gold-soft);
    font-weight: 600;
}
.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: transparent;
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 1.2rem;
    transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-hover); }

/* === THEME TOGGLE === */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    transition: all var(--transition);
}
.theme-toggle:hover {
    background: var(--bg-hover);
    transform: rotate(15deg);
}
.theme-toggle.floating {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    box-shadow: var(--shadow);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* === FORM === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-row-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-row-group > label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.two-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"],
select, textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    transition: all var(--transition);
    font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; font-family: inherit; }

input[type="file"] { display: none; }

/* === ALERTS === */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}
.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}
.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}
.alert code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
}
.alert p { margin: 0.5rem 0; }
.alert .btn { margin-top: 0.75rem; }

/* === INSTALL / LOGIN PAGES === */
.install-page, .login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.install-wrapper {
    width: 100%;
    max-width: 480px;
}
.install-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.install-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}
.install-header h1 {
    margin-top: 0.75rem;
    color: var(--text);
}
.install-intro {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.install-form .form-group { margin-bottom: 1rem; }

/* === LOGIN PAGE === */
.login-page {
    padding: 0;
    min-height: 100vh;
}
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}
.login-hero {
    background: var(--gradient-hero);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.25), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.25), transparent 50%);
    pointer-events: none;
}
.login-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.login-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
}
.brand-mark {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}
.login-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.login-title .accent {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.login-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}
.login-features .feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}
.login-features .feature span {
    color: var(--accent-gold);
    font-weight: 700;
}
.login-form-wrapper {
    background: var(--bg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 100%;
    max-width: 380px;
}
.login-card h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.login-card .muted { margin-bottom: 1.75rem; }
.auth-form .form-group { margin-bottom: 1.25rem; }
.footer-note {
    margin-top: 2rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .login-hero {
        min-height: 260px;
        padding: 2rem;
    }
    .login-title { font-size: 2rem; }
    .login-form-wrapper { padding: 2rem 1.5rem; }
}

/* === APP SHELL === */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.topbar-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}
.nav-link.active {
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
}
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border-radius: 999px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 150ms, background 150ms, transform 150ms;
}
a.user-chip:hover {
    border-color: var(--accent-blue);
    background: var(--bg-card);
    transform: translateY(-1px);
}
a.user-chip.active {
    border-color: var(--accent-gold);
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1510;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.user-info { line-height: 1.1; }
.user-name { font-size: 0.8rem; font-weight: 600; }
.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 800px) {
    .topbar-inner { flex-wrap: wrap; gap: 0.75rem; padding: 0.65rem 1rem; }
    .topbar-nav { order: 3; width: 100%; overflow-x: auto; }
    .user-info { display: none; }
    .brand-sub { display: none; }
}

/* === MAIN CONTENT === */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.page-header h1 { margin-bottom: 0.25rem; }
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}
.back-link:hover { color: var(--accent-blue); }

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* === TOOLBAR === */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.search-form {
    position: relative;
    flex: 1;
    max-width: 480px;
}
.search-form svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}
.search-form input { padding-left: 2.75rem; }
.clear-search {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.clear-search:hover { color: var(--danger); }

/* === OFFER CARDS === */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.offer-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-hover);
    position: relative;
}
.offer-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.2));
}
.offer-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-elevated));
}
.offer-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.offer-number {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.offer-school {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.offer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.offer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.offer-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin: 0.5rem 0 0.25rem;
}
.price-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
}
.price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.offer-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.offer-actions .btn { flex: 1; }
.offer-actions .btn-danger { flex: 0; padding: 0.4rem 0.6rem; }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 1rem; color: var(--text-dim); }
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }
.empty-state .btn { margin-top: 1.25rem; }

/* === CARD (FORM SECTIONS) === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-elevated), transparent);
}
.card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1510;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.card-sub {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.card-body {
    padding: 1.5rem;
}

/* === EDITOR LAYOUT === */
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}
.offer-form { min-width: 0; }
.summary-panel {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}
.summary-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--accent-blue-soft), transparent);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--accent-blue);
}
.summary-header h3 { color: var(--text); flex: 1; }
.loading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 150ms;
}
.loading-dot.active {
    opacity: 1;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}
.summary-content {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}
.summary-placeholder {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}
.sum-section { margin-bottom: 1.25rem; }
.sum-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed var(--border);
}
.sum-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.25rem 0;
    font-size: 0.88rem;
    gap: 0.5rem;
}
.sum-row .label { color: var(--text-muted); }
.sum-row .value { font-weight: 500; white-space: nowrap; }
.sum-row.highlight .value { color: var(--accent-gold); font-weight: 600; }
.sum-row .detail-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.1rem;
}
.sum-total {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gradient-hero);
    border-radius: var(--radius);
    color: #fff;
}
.sum-total-big {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    line-height: 1;
}
.sum-total-label {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.sum-per-person {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.sum-per-person .pp-val { font-size: 1.05rem; font-weight: 600; }
.sum-per-person .pp-lbl { font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 1100px) {
    .editor-layout { grid-template-columns: 1fr; }
    .summary-panel { position: relative; top: 0; max-height: none; }
}

/* === EXTRA ROWS === */
.extra-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}
@media (max-width: 640px) {
    .extra-row { grid-template-columns: 1fr 1fr; }
    .extra-row .btn-icon { grid-column: span 2; width: 100%; }
}

/* === UPLOAD ZONE === */
.upload-zone {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}
.upload-zone label:first-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}
.upload-preview {
    width: 100%;
    height: 200px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.88rem;
}
.upload-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-remove:hover { background: var(--danger); }

/* === TEMPLATE PICKER === */
.template-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.template-option input { display: none; }
.template-card {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
}
.template-option input:checked + .template-card {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--accent-gold-soft);
    background: var(--bg-hover);
}
.template-preview {
    height: 80px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    background:
        linear-gradient(180deg, transparent 60%, var(--tc) 60%, var(--tc) 65%, transparent 65%),
        linear-gradient(180deg, var(--tc) 0%, var(--tc) 25%, transparent 25%);
    position: relative;
}
.template-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
}
.template-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}
.template-desc { font-size: 0.78rem; color: var(--text-muted); }

/* === FORM ACTIONS === */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

/* === FOOTER === */
.app-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 1.25rem 0;
    background: var(--bg-elevated);
}
.app-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === PRICE COLUMNS (DĚTI / DOSPĚLÍ) === */
.price-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 720px) {
    .price-columns { grid-template-columns: 1fr; }
}
.price-column {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.price-column-child {
    border-top: 3px solid var(--accent-blue);
}
.price-column-adult {
    border-top: 3px solid var(--accent-gold);
}
.price-column-header {
    padding: 0.75rem 1rem;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
}
.price-column-child .price-column-header {
    color: var(--accent-blue);
}
.price-column-adult .price-column-header {
    color: var(--accent-gold);
}
.price-rows {
    padding: 0.25rem 0;
}
.price-row {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 1rem;
    border-bottom: 1px dashed var(--border);
    cursor: pointer;
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--bg-hover); }
.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.price-row input {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    text-align: right;
}

/* === DIET GRID === */
.diet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 720px) {
    .diet-grid { grid-template-columns: 1fr; }
}
.diet-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.diet-header {
    padding: 0.7rem 1rem;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}
.diet-rows { padding: 0.5rem 0; }
.diet-row {
    display: grid;
    grid-template-columns: 85px 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 1rem;
}
.diet-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.diet-sep {
    color: var(--text-dim);
    text-align: center;
    font-weight: 600;
}
.diet-row input {
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
    text-align: right;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}
.modal-dialog {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-dialog.modal-lg {
    max-width: 920px;
}
.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
}
.modal-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

/* === LIBRARY === */
.lib-upload-form .lib-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 720px) {
    .lib-upload-form .lib-upload-grid { grid-template-columns: 1fr; }
}
.upload-status { margin-top: 1rem; }
.upload-status:empty { display: none; }

.lib-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.lib-filters input, .lib-filters select {
    padding: 0.45rem 0.7rem;
    font-size: 0.88rem;
    max-width: 320px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.lib-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 150ms, border-color 150ms, box-shadow 150ms;
}
.lib-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.lib-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-hover);
}
.lib-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lib-info {
    padding: 0.7rem 0.8rem;
    flex: 1;
}
.lib-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.lib-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.lib-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.lib-badge-gallery {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}
.lib-badge-hero {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}
.lib-tags {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
    font-style: italic;
}
.lib-actions {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    justify-content: flex-end;
}

/* === LIBRARY MODAL (picker in form) === */
.lib-modal-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: space-between;
}
.lib-modal-filters input {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    flex: 1;
    max-width: 320px;
}
.lib-modal-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}
.library-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    min-height: 200px;
}
.lib-modal-item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 150ms, transform 150ms;
    background: var(--bg-elevated);
}
.lib-modal-item:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}
.lib-modal-item-selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}
.lib-modal-item-selected::after {
    content: '✓ Vybráno';
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--success);
    padding: 0.2rem;
    font-weight: 600;
}
.lib-modal-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.lib-modal-title {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.loading-placeholder {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

/* === CLIENTS === */
.clients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.client-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
    transition: border-color 150ms, transform 150ms;
}
.client-card:hover {
    border-color: var(--accent-blue);
    transform: translateX(2px);
}
.client-main { flex: 1; }
.client-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.client-address {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}
.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.client-meta-item {
    white-space: nowrap;
}
.client-notes {
    margin-top: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: var(--bg-card);
    border-left: 2px solid var(--accent-gold);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    border-radius: 0 4px 4px 0;
}
.client-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

/* === CLIENT PICKER (v offer_edit) === */
.client-picker {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.client-picker > label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.client-picker-wrap {
    display: flex;
    gap: 0.5rem;
}
.client-picker-wrap input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}
.client-picker-results {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% - 6px);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.picker-item {
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 100ms;
}
.picker-item:last-child { border-bottom: none; }
.picker-item:hover {
    background: var(--bg-hover);
}
.picker-item-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
}
.picker-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.client-picker-selected {
    margin-top: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: rgba(16, 185, 129, 0.12);
    border-left: 2px solid var(--success);
    color: var(--success);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0 4px 4px 0;
}
.picker-icon {
    font-weight: 700;
    font-size: 1rem;
}

/* === FILE PICKER (custom upload input) === */
.file-picker {
    position: relative;
}
.file-picker-input {
    /* skrýt nativní input, ale NE přes display:none (jinak "required" neprojde ve Firefox) */
    position: absolute !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    display: block !important;
    pointer-events: none;
}
.file-picker-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--bg-elevated);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color 150ms, background 150ms, color 150ms;
    font-size: 0.9rem;
    font-weight: 500;
}
.file-picker-label:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
    color: var(--text);
}
.file-picker-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--success);
    border-radius: var(--radius);
}
.file-picker-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.file-picker-info {
    flex: 1;
    min-width: 0;
}
.file-picker-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-picker-size {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* === ACCOUNT PAGE === */
.account-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 840px;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.account-info-item {
    padding: 0.8rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
}
.account-info-item .info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.account-info-item .info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* === PASSWORD INPUT === */
.password-input-wrap {
    position: relative;
}
.password-input-wrap input {
    padding-right: 2.8rem !important;
}
.password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: background 120ms;
}
.password-toggle:hover {
    background: var(--bg-hover);
}

/* === PASSWORD STRENGTH === */
.password-strength {
    margin-top: 0.5rem;
}
.password-strength-bar {
    height: 4px;
    background: var(--bg-hover);
    border-radius: 999px;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 200ms, background 200ms;
    border-radius: 999px;
}
.password-strength-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* === PASSWORD RULES === */
.password-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0.5rem 0 1rem;
}
.password-rule {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 150ms;
}
.password-rule .rule-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-hover);
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 150ms, color 150ms;
}
.password-rule.rule-ok {
    color: var(--success);
}
.password-rule.rule-ok .rule-icon {
    background: var(--success);
    color: #fff;
}

/* === FORM HINT === */
.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.form-hint-ok { color: var(--success); }
.form-hint-error { color: #ef4444; }

/* === LOGO SETTING === */
.logo-setting {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 640px) {
    .logo-setting { grid-template-columns: 1fr; }
}
.logo-preview {
    width: 180px;
    height: 120px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.logo-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.logo-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}
.logo-actions .btn {
    flex-shrink: 0;
}
.logo-remove-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-size: 0.85rem;
    cursor: pointer;
    width: fit-content;
}
.logo-remove-check input {
    width: auto;
    margin: 0;
}

/* === USER CARDS (správa uživatelů) === */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius);
    transition: border-color 150ms, transform 150ms;
}
.user-card:hover {
    border-color: var(--accent-blue);
    transform: translateX(2px);
}
.user-card-me {
    border-left-color: var(--accent-gold);
    background: linear-gradient(to right, rgba(212, 175, 55, 0.06), var(--bg-elevated) 50%);
}
.user-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1510;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.user-card-main { flex: 1; min-width: 0; }
.user-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.user-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.user-card-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}
.user-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}
.user-badge-role {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}
.user-card-me .user-badge:not(.user-badge-role) {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
}

/* === PRINT === */
@media print {
    body { background: #fff; color: #000; }
    .topbar, .app-footer, .btn, .back-link { display: none !important; }
}
