* { box-sizing: border-box; }
:root {
    --admin-accent: #E2007A;
    --admin-accent-dk: #A80058;
    --admin-accent-soft: #FBDCEB;
    --admin-ink: #171512;
    --admin-ink-soft: #6b665f;
    --admin-bg: #F7F5F2;
    --admin-line: #E7E3DB;
    --admin-radius: 12px;
}
body {
    font-family: -apple-system, "Segoe UI", "Inter", Roboto, Arial, sans-serif;
    margin: 0;
    background: var(--admin-bg);
    color: var(--admin-ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--admin-accent-dk); }

.site-header, .admin-header {
    background: #ffffff;
    padding: 20px 32px;
    border-bottom: 1px solid var(--admin-line);
}
.admin-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-header-left { display: flex; align-items: center; gap: 14px; }
.admin-brand { display: flex; align-items: center; text-decoration: none; }
.admin-brand img { width: 200px; height: 80px; object-fit: contain; display: block; }
.admin-brand span { font-family: -apple-system, sans-serif; font-weight: 700; font-size: 15px; color: var(--admin-accent-dk); }
.admin-header h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-header nav a {
    padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--admin-ink-soft); text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.admin-header nav a:hover { background: var(--admin-accent-soft); color: var(--admin-accent-dk); }

.admin-nav-groups { display: flex; align-items: center; gap: 4px; position: relative; }
.admin-nav-group { position: relative; }
.admin-nav-group-btn {
    background: none; border: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--admin-ink-soft); cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.admin-nav-group-btn:hover, .admin-nav-group-btn.is-current { background: var(--admin-accent-soft); color: var(--admin-accent-dk); }
.admin-nav-caret { font-size: 10px; }
.admin-nav-dropdown {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 6px; min-width: 190px;
    background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(23,21,18,0.14); padding: 6px; z-index: 50;
}
.admin-nav-group:hover .admin-nav-dropdown, .admin-nav-group.is-open .admin-nav-dropdown { display: block; }
.admin-nav-dropdown a {
    display: block; padding: 8px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 500;
    color: var(--admin-ink); text-decoration: none;
}
.admin-nav-dropdown a:hover { background: var(--admin-accent-soft); color: var(--admin-accent-dk); }
.admin-nav-dropdown a.is-active { background: var(--admin-accent); color: #fff; }
.admin-nav-logout { margin-left: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--admin-ink-soft); text-decoration: none; }
.admin-nav-logout:hover { background: var(--admin-accent-soft); color: var(--admin-accent-dk); }
@media (max-width: 900px) {
    .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .admin-nav-groups { flex-wrap: wrap; }
}
.back-link { display: inline-block; margin-bottom: 8px; }

.badge {
    background: var(--admin-accent);
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 12px;
    margin-left: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 32px;
}
.product-card {
    background: #fff;
    border-radius: var(--admin-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(23,21,18,0.1); }
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card-body { padding: 14px 16px; }
.product-card-body h2 { margin: 0 0 6px; font-size: 18px; }
.product-card-body p { margin: 0 0 10px; font-size: 14px; color: var(--admin-ink-soft); }
.price { font-weight: 600; }

.designer-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 32px;
}
@media (max-width: 800px) {
    .designer-layout { grid-template-columns: 1fr; }
}
.designer-preview canvas {
    width: 100%;
    height: auto;
    background: #eee;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hint { font-size: 13px; color: var(--admin-ink-soft); }

.designer-form form, .product-form, .login-box form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.designer-form label, .product-form label, .login-box label { font-weight: 600; margin-top: 10px; font-size: 13.5px; }
.designer-form input, .designer-form textarea, .designer-form select,
.product-form input, .product-form textarea, .product-form select,
.login-box input {
    padding: 10px 12px;
    border: 1.5px solid var(--admin-line);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s ease;
}
.designer-form input:focus, .designer-form textarea:focus, .designer-form select:focus,
.product-form input:focus, .product-form textarea:focus, .product-form select:focus,
.login-box input:focus { outline: none; border-color: var(--admin-accent); }
.char-counter { font-size: 12px; color: var(--admin-ink-soft); text-align: right; }
.product-form { margin: 0 auto; }
.price-line { margin-top: 12px; font-weight: 600; }

button, .button {
    margin-top: 18px;
    padding: 11px 20px;
    background: var(--admin-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button:hover, .button:hover { background: var(--admin-accent-dk); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(226,0,122,0.28); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.checkbox-label input { width: auto; }

.admin-content { padding: 28px 32px; }
.admin-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: var(--admin-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(23,21,18,0.06);
}
.admin-table th {
    padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--admin-ink-soft); text-align: left; background: var(--admin-bg); font-weight: 700;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--admin-line); font-size: 14px; text-align: left; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fdfaf8; }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.order-preview-thumb { width: 160px; height: 160px; object-fit: contain; background: #f4f1ec; border: 1px solid var(--admin-line); }

/* ---------- Dashboard: Stat-Kacheln ---------- */
.dash-stats-row { display: flex; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-stat-tile {
    background: #fff; border-radius: var(--admin-radius); padding: 16px 22px;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06); min-width: 140px;
    display: flex; flex-direction: column; gap: 2px;
}
.dash-stat-value { font-size: 26px; font-weight: 700; color: var(--admin-ink); font-family: -apple-system, sans-serif; }
.dash-stat-label { font-size: 12.5px; color: var(--admin-ink-soft); font-weight: 600; }
.dash-stat-tile.is-good .dash-stat-value { color: #2e8b57; }
.dash-stat-tile.is-muted .dash-stat-value { color: var(--admin-ink-soft); }

/* ---------- Dashboard: größere Produkt-Thumbnails ---------- */
.product-dash-thumb { width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 1px 4px rgba(23,21,18,0.12); border: 1px solid var(--admin-line); }

/* ---------- Dashboard: Typ-/Status-Badges ---------- */
.type-badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    white-space: nowrap;
}
.type-badge.is-fixed { background: #E8F1FB; color: #1C5A9C; }
.type-badge.is-freeform { background: #F1E8FB; color: #6B2FA3; }
.type-badge.is-none { background: var(--admin-bg); color: var(--admin-ink-soft); border: 1px solid var(--admin-line); }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px;
    border-radius: 999px; font-size: 12px; font-weight: 700;
}
.status-badge .status-dot { width: 7px; height: 7px; border-radius: 50%; }
.status-badge.is-active { background: #E7F6EC; color: #227A45; }
.status-badge.is-active .status-dot { background: #2e8b57; }
.status-badge.is-inactive { background: var(--admin-bg); color: var(--admin-ink-soft); }
.status-badge.is-inactive .status-dot { background: #a8a49b; }

/* ---------- Dashboard: Aktionen als Pill-Buttons statt "|"-getrennte Links ---------- */
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.product-dash-table td { vertical-align: middle; }

/* ---------- Produkt-Formular: Karten-Layout ---------- */
.admin-card {
    background: #fff; border-radius: var(--admin-radius); padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06); margin-bottom: 20px;
}
.admin-card h2 {
    margin: 0 0 18px; font-size: 16px; font-weight: 700; color: var(--admin-ink);
    display: flex; align-items: center; gap: 9px; padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-line);
}
.admin-card h2 .card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; background: var(--admin-accent-soft);
    color: var(--admin-accent-dk); font-size: 14px; flex-shrink: 0;
}

/* ---------- Produkt-Formular: Design-Typ als auswählbare Karten ---------- */
.design-type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.design-type-card {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 14px 14px 14px 40px; border: 1.5px solid var(--admin-line); border-radius: 10px;
    cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.design-type-card input[type="radio"] { position: absolute; left: 14px; top: 16px; margin: 0; width: auto; }
.design-type-card-title { font-weight: 700; font-size: 13.5px; }
.design-type-card-desc { font-size: 12px; color: var(--admin-ink-soft); line-height: 1.4; }
.design-type-card:hover { border-color: var(--admin-accent); }
.design-type-card.is-selected { border-color: var(--admin-accent); background: var(--admin-accent-soft); }
.design-type-locked-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--admin-bg); border-radius: 8px; font-size: 13.5px;
}
.admin-toolbar { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dash-search-wrap { position: relative; width: 100%; max-width: 320px; }
.dash-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--admin-ink-soft); pointer-events: none; }
.dash-search-input {
    width: 100%; box-sizing: border-box; padding: 9px 14px 9px 36px;
    border: 1.5px solid var(--admin-line); border-radius: 999px; font-size: 13.5px;
    background: #fff; font-family: inherit; transition: border-color 0.15s ease;
}
.dash-search-input:focus { outline: none; border-color: var(--admin-accent); }

.login-box {
    max-width: 360px;
    margin: 90px auto;
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(23,21,18,0.08);
}
.login-box h1 { font-size: 22px; margin-top: 0; }

.message-box {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.message-box.error { border-top: 4px solid #c0392b; }
.message-box.success { border-top: 4px solid #2e8b57; }
.error-text { color: #c0392b; font-weight: 600; }
.success-text { color: #2e8b57; font-weight: 600; }
.button-small {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid var(--admin-line);
    border-radius: 999px;
    color: var(--admin-ink);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.button-small:hover { border-color: var(--admin-accent); color: var(--admin-accent-dk); background: var(--admin-accent-soft); }
.button-small.primary { background: var(--admin-accent); border-color: var(--admin-accent); color: #fff; }
.button-small.primary:hover { background: var(--admin-accent-dk); border-color: var(--admin-accent-dk); color: #fff; }
.button-small.danger { background: #fff; border-color: #e6b3ac; color: #c0392b; }
.button-small.danger:hover { background: #c0392b; border-color: #c0392b; color: #fff; }

.order-card { background: #fff; border-radius: var(--admin-radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); }

/* ---------- Persönliche Geschenk-Nachricht: rot blinkender Hinweis + Panel ---------- */
.gift-message-alert {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; border: 1.5px solid #c0392b;
    background: #fff; color: #c0392b; font-size: 12.5px; font-weight: 700;
    cursor: pointer; animation: giftMessagePulse 1.6s ease-in-out infinite;
}
.gift-message-alert:hover { background: #c0392b; color: #fff; }
@keyframes giftMessagePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.45); }
    50% { box-shadow: 0 0 0 6px rgba(192,57,43,0); }
}
.gift-message-panel {
    margin-top: 12px; padding: 14px 18px; background: #FFF6F5;
    border: 1.5px solid #f0c4bd; border-radius: 10px;
}
.gift-message-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13.5px; }
.gift-message-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--admin-ink); white-space: pre-wrap; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.order-card-address { font-size: 13px; color: var(--admin-ink-soft); margin-bottom: 12px; }

.clipart-category { background: #fff; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.clipart-category-head { display: flex; justify-content: space-between; align-items: center; }
.clipart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.clipart-tile { position: relative; text-align: center; border: 1px solid #eee; border-radius: 8px; padding: 8px; font-size: 12px; }
.clipart-tile img { width: 100%; height: 70px; object-fit: contain; }
.clipart-tile form { position: absolute; top: 2px; right: 2px; }
.clipart-tile form button { padding: 2px 7px; font-size: 12px; }
.clipart-upload-tile { border: 1px dashed #bbb; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.clipart-upload-tile input[type=text] { padding: 4px; font-size: 12px; }

/* ================== MODERNES RESPONSIVE FRONTEND ================== */
:root {
    --accent: #1a1a2e;
    --accent-light: #2d2d55;
    --highlight: #ff6b4a;
    --bg-soft: #f7f7f5;
    --radius-lg: 16px;
    --radius-md: 10px;
}

.site-header.modern {
    background: var(--accent);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header.modern .brand {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.5px;
}
.site-header.modern .header-text h1 {
    margin: 0;
    font-size: clamp(20px, 4vw, 28px);
}
.site-header.modern .header-text p {
    margin: 2px 0 0;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.product-grid.modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
}
.product-card.modern {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}
.product-card.modern:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.product-card-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card.modern .product-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card.modern h2 { margin: 0 0 6px; font-size: 17px; }
.product-card.modern p { margin: 0 0 14px; font-size: 13.5px; color: #777; flex: 1; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; }
.product-card.modern .price { font-weight: 700; font-size: 15px; }
.product-card.modern .cta { font-size: 13px; color: var(--highlight); font-weight: 600; }

.site-footer { text-align: center; padding: 30px; color: #999; font-size: 13px; }

/* Responsive Breakpoints: Handy / Tablet / Desktop */
@media (max-width: 480px) {
    .site-header.modern { padding: 14px 16px; }
    .product-grid.modern { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
    .product-card.modern h2 { font-size: 15px; }
}
@media (min-width: 481px) and (max-width: 900px) {
    .product-grid.modern { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1400px) {
    .product-grid.modern { grid-template-columns: repeat(5, 1fr); }
}

/* ================== FREIER DESIGN-EDITOR (designer_freeform.php) ================== */
#fdViewport {
    position: relative;
    overflow: hidden;
    background: transparent;
    touch-action: none;
}
#fdStage {
    position: absolute;
    background: transparent;
}
.fd-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
img.fd-layer { object-fit: cover; pointer-events: none; }
#fdBg { z-index: 1; }
#fdStage .canvas-container { position: absolute !important; top: 0 !important; left: 0 !important; z-index: 2 !important; }
#fdOverlay { z-index: 3; }
.fd-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fd-tool-btn {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg-soft);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}
.fd-tool-btn:hover { background: #eee; }

.fd-selection-panel, .fd-clipart-panel {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-bottom: 16px;
}
.fd-selection-panel h3, .fd-clipart-panel h3 { margin: 0 0 10px; font-size: 15px; }
.fd-selection-panel label { font-size: 12px; font-weight: 600; display: block; margin-top: 8px; }
.fd-selection-panel select { width: 100%; padding: 7px; border-radius: 6px; border: 1px solid #ccc; margin-top: 4px; }
.color-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.color-row input[type=color] { width: 42px; height: 32px; border: none; padding: 0; }
.color-row button {
    padding: 7px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px;
}
.fd-selection-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fd-selection-actions button {
    flex: 1 1 auto; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; background: var(--bg-soft); cursor: pointer; font-size: 12.5px;
}
.fd-selection-actions button.danger { background: #fce8e6; border-color: #f3b9b2; color: #a83226; }

.fd-clipart-category { margin-bottom: 14px; }
.fd-clipart-category h4 { margin: 0 0 8px; font-size: 13px; color: #666; }
.fd-clipart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.fd-clipart-thumb {
    width: 100%; height: 56px; object-fit: contain; background: var(--bg-soft);
    border-radius: 6px; cursor: pointer; border: 1px solid #eee;
}
.fd-clipart-thumb:hover { border-color: var(--highlight); }

.fd-order-form { border-top: 1px solid #eee; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.fd-order-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.fd-order-form input {
    padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px;
}
.fd-order-form button {
    margin-top: 16px; padding: 12px; border: none; border-radius: 8px; background: var(--accent);
    color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.fd-order-form button:hover { background: var(--accent-light); }

/* Handy: sticky Werkzeugleiste bleibt oben erreichbar */
@media (max-width: 760px) {
    .fd-toolbar { position: sticky; top: 0; background: #fff; z-index: 5; padding-bottom: 8px; }
}
.final-preview { max-width: 100%; border-radius: 8px; margin-top: 12px; }

/* ---------- Statistik ---------- */
.stats-range-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.stats-range-tabs a {
    padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    color: var(--admin-ink-soft); text-decoration: none; background: #fff; border: 1px solid var(--admin-line);
}
.stats-range-tabs a.is-active { background: var(--admin-accent); color: #fff; border-color: var(--admin-accent); }

.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stats-card {
    background: #fff; border-radius: var(--admin-radius); padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(23,21,18,0.06); display: flex; flex-direction: column; gap: 4px;
}
.stats-card-main { background: var(--admin-accent); color: #fff; }
.stats-card-value { font-size: 26px; font-weight: 700; }
.stats-card-label { font-size: 12.5px; color: var(--admin-ink-soft); }
.stats-card-main .stats-card-label { color: rgba(255,255,255,0.85); }

.stats-daily-chart {
    display: flex; align-items: flex-end; gap: 6px; height: 160px; background: #fff;
    border-radius: var(--admin-radius); padding: 16px 12px 8px; box-shadow: 0 1px 3px rgba(23,21,18,0.06);
}
.stats-daily-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.stats-daily-bar { width: 100%; background: var(--admin-accent); border-radius: 4px 4px 0 0; min-height: 3px; transition: opacity 0.15s ease; }
.stats-daily-bar-wrap:hover .stats-daily-bar { opacity: 0.75; }
.stats-daily-label { font-size: 10px; color: var(--admin-ink-soft); white-space: nowrap; }

.stats-top-pages { background: #fff; border-radius: var(--admin-radius); padding: 8px 20px; box-shadow: 0 1px 3px rgba(23,21,18,0.06); }
.stats-top-page-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--admin-line); }
.stats-top-page-row:last-child { border-bottom: none; }
.stats-top-page-info { flex: 0 0 260px; display: flex; flex-direction: column; gap: 2px; }
.stats-top-page-type { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--admin-ink-soft); }
.stats-top-page-bar-wrap { flex: 1; height: 8px; background: var(--admin-bg); border-radius: 4px; overflow: hidden; }
.stats-top-page-bar { height: 100%; background: var(--admin-accent); border-radius: 4px; }
.stats-top-page-count { flex: 0 0 50px; text-align: right; font-weight: 700; font-size: 14px; }
@media (max-width: 700px) {
    .stats-top-page-row { flex-wrap: wrap; }
    .stats-top-page-info { flex: 1 1 100%; }
}
