/* =========================================================
   Zora Admin — custom styles on top of Bootstrap 5
   Brand colors (from the Flutter app):
     surface      = #14205A
     primaryDark  = #2E7FE0
   ========================================================= */

:root {
    --zora-surface: #14205A;
    --zora-primary: #2E7FE0;
    --zora-primary-hover: #4A94EA;
    --zora-navy: #0C153F;
    --zora-sidebar: #101B4C;
    --zora-card: #1A2868;
    --zora-card-soft: rgba(26, 40, 104, 0.92);
    --zora-border: rgba(46, 127, 224, 0.22);
    --zora-text: #F4F7FF;
    --zora-muted: #9BB0D4;
    --zora-success: #3DDC97;
    --zora-warning: #FFC14A;
    --zora-danger: #FF6B7A;
    --zora-sidebar-w: 260px;
    --zora-topbar-h: 72px;
    --zora-radius: 16px;
    --bs-body-bg: var(--zora-surface);
    --bs-body-color: var(--zora-text);
    --bs-primary: var(--zora-primary);
    --bs-border-color: var(--zora-border);
    --bs-emphasis-color: var(--zora-text);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    background: var(--zora-surface);
    color: var(--zora-text);
    margin: 0;
}

a {
    color: var(--zora-primary);
    text-decoration: none;
}

a:hover {
    color: var(--zora-primary-hover);
}

/* ---------- Shell (sidebar + main) ---------- */

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--zora-sidebar-w);
    background: var(--zora-sidebar);
    border-right: 1px solid var(--zora-border);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 18px;
}

.admin-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--zora-primary), #1B4FA8);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 20px rgba(46, 127, 224, 0.35);
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.admin-brand-text strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-brand-text span {
    font-size: 0.75rem;
    color: var(--zora-muted);
}

.admin-nav {
    padding: 8px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--zora-muted);
    padding: 14px 12px 6px;
    font-weight: 600;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--zora-muted);
    font-weight: 500;
    font-size: 0.92rem;
    border: 1px solid transparent;
}

.admin-nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.admin-nav-link:hover {
    background: rgba(46, 127, 224, 0.12);
    color: var(--zora-text);
}

.admin-nav-link.is-active {
    background: rgba(46, 127, 224, 0.18);
    color: #fff;
    border-color: var(--zora-border);
    box-shadow: inset 3px 0 0 var(--zora-primary);
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-nav-toggle {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    color: var(--zora-muted) !important;
}

.admin-nav-toggle:hover,
.admin-nav-toggle:focus {
    background: rgba(46, 127, 224, 0.12) !important;
    background-color: rgba(46, 127, 224, 0.12) !important;
    color: var(--zora-text) !important;
    box-shadow: none !important;
}

.admin-nav-toggle-label {
    flex: 1;
}

.admin-nav-caret {
    width: auto !important;
    font-size: 0.8rem !important;
    margin-left: auto;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.admin-nav-group.is-open > .admin-nav-toggle .admin-nav-caret {
    transform: rotate(180deg);
}

.admin-nav-submenu {
    display: none !important;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 4px 10px;
    padding: 4px 0 4px 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-nav-group.is-open > .admin-nav-submenu {
    display: flex !important;
}

.admin-nav-submenu[hidden] {
    display: none !important;
}

.admin-nav-sublink {
    padding: 8px 12px;
    font-size: 0.86rem;
}

.admin-main {
    margin-left: var(--zora-sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    min-height: var(--zora-topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 28px;
    border-bottom: 1px solid var(--zora-border);
    background: rgba(20, 32, 90, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-topbar h1 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--zora-border);
    background: var(--zora-card);
    color: var(--zora-text);
    display: grid;
    place-items: center;
    position: relative;
}

.admin-icon-btn:hover {
    border-color: var(--zora-primary);
    color: #fff;
}

.admin-notify {
    position: relative;
}

.admin-notify-btn {
    position: relative;
}

.admin-notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--zora-danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--zora-surface);
}

.admin-notify-badge.is-empty {
    display: none;
}

.admin-notify-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    background: var(--zora-card);
    border: 1px solid var(--zora-border);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 40;
    overflow: hidden;
}

.admin-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--zora-border);
}

.admin-notify-head strong {
    font-size: 0.95rem;
}

.admin-notify-mark {
    border: 0;
    background: transparent;
    color: var(--zora-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.admin-notify-mark:hover {
    color: var(--zora-primary-hover);
}

.admin-notify-list {
    max-height: 360px;
    overflow-y: auto;
}

.admin-notify-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    color: var(--zora-text);
    border-bottom: 1px solid rgba(46, 127, 224, 0.12);
    transition: background 0.15s ease;
}

.admin-notify-item:last-child {
    border-bottom: 0;
}

.admin-notify-item:hover {
    background: rgba(46, 127, 224, 0.12);
    color: #fff;
}

.admin-notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(46, 127, 224, 0.18);
    color: var(--zora-primary);
}

.admin-notify-item.tone-warning .admin-notify-icon {
    background: rgba(255, 193, 74, 0.16);
    color: var(--zora-warning);
}

.admin-notify-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-notify-copy strong {
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.admin-notify-copy small,
.admin-notify-copy em {
    color: var(--zora-muted);
    font-size: 0.75rem;
    font-style: normal;
}

.admin-notify-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--zora-muted);
}

.admin-notify-empty i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.admin-notify-empty p {
    margin: 0;
    font-size: 0.88rem;
}

.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: var(--zora-card);
    border: 1px solid var(--zora-border);
}

.admin-user-chip small {
    display: block;
    color: var(--zora-muted);
    font-size: 0.72rem;
}

.admin-content {
    padding: 28px;
    flex: 1;
    min-width: 0;
}

.admin-backdrop {
    display: none;
}

/* ---------- Cards / stats / tables ---------- */

.zora-card {
    background: var(--zora-card);
    border: 1px solid var(--zora-border);
    border-radius: var(--zora-radius);
    box-shadow: 0 10px 30px rgba(8, 12, 40, 0.25);
}

.zora-card .card-body {
    padding: 20px;
}

.zora-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.zora-card-header h2,
.zora-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-header p {
    margin: 4px 0 0;
    color: var(--zora-muted);
    font-size: 0.9rem;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    height: 100%;
}

.stat-card h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--zora-muted);
    margin: 0 0 8px;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.stat-card .stat-hint {
    font-size: 0.78rem;
    color: var(--zora-success);
    margin-top: 6px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 127, 224, 0.16);
    color: var(--zora-primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.zora-table {
    width: 100%;
    margin: 0;
}

.zora-table thead th {
    color: var(--zora-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--zora-border);
    padding: 12px 14px;
    background: transparent;
    white-space: nowrap;
}

.zora-table tbody td {
    padding: 14px;
    border-bottom: 1px solid rgba(46, 127, 224, 0.12);
    vertical-align: middle;
    color: var(--zora-text);
}

.zora-table tbody tr:hover td {
    background: rgba(46, 127, 224, 0.08);
}

.zora-table tbody tr:last-child td {
    border-bottom: 0;
}

.person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person strong {
    display: block;
    font-size: 0.92rem;
}

.person span {
    display: block;
    font-size: 0.78rem;
    color: var(--zora-muted);
}

.zora-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    background: linear-gradient(145deg, var(--zora-primary), #1B4FA8);
    flex-shrink: 0;
}

.zora-avatar.lg {
    width: 72px;
    height: 72px;
    font-size: 1.4rem;
}

img.zora-avatar {
    object-fit: cover;
    display: block;
    background: var(--zora-navy);
}

.zora-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.zora-badge.success {
    background: rgba(61, 220, 151, 0.15);
    color: var(--zora-success);
}

.zora-badge.warning {
    background: rgba(255, 193, 74, 0.15);
    color: var(--zora-warning);
}

.zora-badge.danger {
    background: rgba(255, 107, 122, 0.15);
    color: var(--zora-danger);
}

.zora-badge.info {
    background: rgba(46, 127, 224, 0.18);
    color: #8ec2ff;
}

.zora-badge.live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zora-success);
    box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18);
}

/* ---------- Forms / buttons ---------- */

.btn-zora {
    background: var(--zora-primary);
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 16px;
}

.btn-zora:hover,
.btn-zora:focus {
    background: var(--zora-primary-hover);
    color: #fff;
}

.btn-zora-ghost {
    background: transparent;
    border: 1px solid var(--zora-border);
    color: var(--zora-text);
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 16px;
}

.btn-zora-ghost:hover {
    border-color: var(--zora-primary);
    color: #fff;
    background: rgba(46, 127, 224, 0.12);
}

.btn-zora-danger {
    background: rgba(255, 107, 122, 0.16);
    border: 0;
    color: var(--zora-danger);
    font-weight: 600;
    border-radius: 12px;
    padding: 8px 12px;
}

.btn-zora-success {
    background: rgba(61, 220, 151, 0.16);
    border: 0;
    color: var(--zora-success);
    font-weight: 600;
    border-radius: 12px;
    padding: 8px 12px;
}

.form-control,
.form-select {
    background: var(--zora-navy);
    border: 1px solid var(--zora-border);
    color: var(--zora-text);
    border-radius: 12px;
    padding: 10px 14px;
    min-height: 44px;
}

.form-control:focus,
.form-select:focus {
    background: var(--zora-navy);
    border-color: var(--zora-primary);
    color: var(--zora-text);
    box-shadow: 0 0 0 3px rgba(46, 127, 224, 0.2);
}

.form-control::placeholder {
    color: #7e93bd;
}

.form-control[type="file"] {
    color: var(--zora-muted);
}

.form-control[type="file"]::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button {
    background-color: var(--zora-navy) !important;
    color: var(--zora-text) !important;
    border: 0 !important;
    border-inline-end: 1px solid var(--zora-border) !important;
    box-shadow: none !important;
}

.form-select option {
    background: var(--zora-navy);
    color: var(--zora-text);
}

.form-control-sm,
.form-select-sm {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.875rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--zora-muted);
}

.search-wrap {
    position: relative;
    min-width: 240px;
}

.search-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zora-muted);
}

.search-wrap .form-control {
    padding-left: 38px;
}

.form-check-input:checked {
    background-color: var(--zora-primary);
    border-color: var(--zora-primary);
}

.form-switch .form-check-input {
    width: 2.4em;
    height: 1.25em;
}

.toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Login ---------- */

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(46, 127, 224, 0.28), transparent 36%),
        radial-gradient(circle at 85% 80%, rgba(46, 127, 224, 0.18), transparent 32%),
        var(--zora-navy);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--zora-card);
    border: 1px solid var(--zora-border);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 18px 0 6px;
}

.auth-card p.lead-text {
    color: var(--zora-muted);
    margin-bottom: 28px;
}

.zora-alert {
    background: rgba(255, 107, 122, 0.14);
    border: 1px solid rgba(255, 107, 122, 0.35);
    color: var(--zora-danger);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ---------- Extra bits ---------- */

.profile-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-rows {
    display: flex;
    flex-direction: column;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(46, 127, 224, 0.12);
}

.profile-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-row span {
    color: var(--zora-muted);
    font-size: 0.82rem;
    flex-shrink: 0;
}

.profile-row strong {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.album-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--zora-border);
    background: var(--zora-navy);
}

.admin-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-pagination .pagination {
    flex-wrap: wrap;
    margin-bottom: 0;
    row-gap: 6px;
}

.pagination {
    --bs-pagination-bg: var(--zora-card);
    --bs-pagination-border-color: var(--zora-border);
    --bs-pagination-color: var(--zora-text);
    --bs-pagination-hover-bg: rgba(46, 127, 224, 0.16);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-border-color: var(--zora-primary);
    --bs-pagination-focus-bg: rgba(46, 127, 224, 0.16);
    --bs-pagination-focus-color: #fff;
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(46, 127, 224, 0.2);
    --bs-pagination-active-bg: var(--zora-primary);
    --bs-pagination-active-border-color: var(--zora-primary);
    --bs-pagination-disabled-bg: var(--zora-card);
    --bs-pagination-disabled-color: var(--zora-muted);
    --bs-pagination-disabled-border-color: var(--zora-border);
    flex-wrap: wrap;
    margin-bottom: 0;
}

.admin-pagination {
    overflow-x: auto;
}

.admin-pagination .pagination {
    margin-bottom: 0;
}

.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 88px;
}

.mini-bars span {
    flex: 1;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--zora-primary), rgba(46, 127, 224, 0.25));
    min-width: 14px;
}

.gift-tile {
    text-align: center;
    padding: 18px 12px;
    height: 100%;
}

.gift-tile .gift-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: rgba(46, 127, 224, 0.16);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.emoji-input {
    width: 88px;
    height: 52px;
    font-size: 1.7rem;
    text-align: center;
    line-height: 1;
}

.emoji-input-sm {
    font-size: 1.25rem;
    text-align: center;
}

.emoji-cat-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.emoji-picker {
    overflow: hidden;
}

.emoji-picker-toolbar {
    padding: 14px 16px 8px;
    border-bottom: 1px solid var(--zora-border);
}

.emoji-search {
    max-width: 420px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    padding: 12px;
    min-height: 280px;
    align-content: start;
}

.emoji-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 12px;
}

.emoji-cell {
    position: relative;
}

.emoji-cell summary {
    list-style: none;
}

.emoji-cell summary::-webkit-details-marker {
    display: none;
}

.emoji-face {
    display: grid;
    place-items: center;
    height: 52px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
    user-select: none;
}

.emoji-face:hover,
.emoji-cell[open] > .emoji-face {
    background: rgba(46, 127, 224, 0.18);
}

.emoji-face img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.emoji-cell.is-hidden .emoji-face {
    opacity: 0.4;
}

.emoji-edit {
    position: absolute;
    z-index: 5;
    top: 56px;
    left: 0;
    width: min(280px, 70vw);
    padding: 12px;
    border-radius: 14px;
    background: var(--zora-card);
    border: 1px solid var(--zora-border);
    box-shadow: 0 12px 32px rgba(6, 12, 40, 0.45);
}

.emoji-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 10px;
    border-top: 1px solid var(--zora-border);
    overflow-x: auto;
}

.emoji-tab {
    flex: 1 0 auto;
    min-width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 1.35rem;
    color: var(--zora-muted);
}

.emoji-tab:hover,
.emoji-tab.is-active {
    background: rgba(46, 127, 224, 0.2);
    color: var(--zora-text);
}

.vip-tile {
    padding: 22px;
    height: 100%;
}

.settings-tile {
    padding: 22px;
    height: 100%;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

a:hover .settings-tile {
    border-color: var(--zora-primary);
    transform: translateY(-2px);
}

.settings-tile h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.settings-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 127, 224, 0.16);
    color: var(--zora-primary);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.vip-tile .price {
    font-size: 1.7rem;
    font-weight: 800;
}

.empty-note {
    color: var(--zora-muted);
    font-size: 0.88rem;
}

.daily-reward-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.daily-reward-card .card-body {
    padding: 16px;
}

.daily-reward-day {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--zora-text);
}

.daily-reward-actions {
    display: flex;
    justify-content: flex-end;
}

.daily-reward-actions .btn-zora {
    min-height: 44px;
    padding-inline: 22px;
}

.coin-recharge-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.coin-recharge-field {
    min-width: 0;
}

.coin-recharge-field-id {
    flex: 1 1 auto;
}

.coin-recharge-field-amount {
    flex: 0 0 160px;
}

.coin-recharge-field-action {
    flex: 0 0 auto;
}

.coin-recharge-field-action .btn-zora {
    min-height: 44px;
    white-space: nowrap;
    padding-inline: 22px;
}

.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1199.98px) {
    .daily-reward-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .daily-reward-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-backdrop.is-visible {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 10, 30, 0.55);
        z-index: 1030;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-topbar {
        padding: 10px 14px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .page-header .toolbar {
        width: 100%;
    }

    .search-wrap {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }

    .toolbar .form-select {
        min-width: 0;
        flex: 1 1 140px;
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zora-card .card-body {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }
}

@media (max-width: 767.98px) {
    .emoji-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .daily-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-reward-actions {
        justify-content: stretch;
    }

    .daily-reward-actions .btn-zora {
        width: 100%;
    }

    .coin-recharge-row {
        flex-wrap: wrap;
    }

    .coin-recharge-field-id,
    .coin-recharge-field-amount {
        flex: 1 1 100%;
    }

    .coin-recharge-field-action {
        flex: 1 1 100%;
    }

    .coin-recharge-field-action .btn-zora {
        width: 100%;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .mini-bars {
        height: 72px;
        gap: 5px;
    }

    .mini-bars span {
        min-width: 8px;
    }

    .page-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .admin-content {
        padding: 12px;
    }

    .admin-topbar h1 {
        font-size: 1rem;
        max-width: 46vw;
    }

    .emoji-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-row {
        flex-direction: column;
        gap: 4px;
    }

    .profile-row strong {
        text-align: left;
    }
}
