/* Reset & Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Baloo+2:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Baloo 2', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Login/Register Box */
.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-page .container,
.register-page .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.layout-zimcity.login-page .container,
.layout-zimcity.register-page .container {
    display: block;
    min-height: auto;
    align-items: stretch;
    justify-content: flex-start;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.logo p {
    color: #666;
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Links */
.links {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

/* Home Page Styles */
.home-page {
    background: #f5f6fa;
}

.navbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand h2 {
    color: #667eea;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: #333;
}

.btn-logout {
    background: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ee5a5a;
}

/* Dashboard */
.dashboard {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.profile-info h2 {
    color: #333;
    margin-bottom: 5px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.admin {
    background: #ff6b6b;
    color: white;
}

.badge.vip {
    background: #ffd700;
    color: #333;
}

.badge.member {
    background: #e0e0e0;
    color: #666;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 0;
}

.info-table td:first-child {
    color: #666;
    width: 40%;
}

.info-table td:last-child {
    color: #333;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
    color: #333;
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.action-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-btn span:last-child {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-box {
        padding: 25px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========== ZimCity / Mobi Army–style layout ========== */
.layout-zimcity {
    --ma-gold: #f7e047;
    --ma-gold-dim: #d4b832;
    --ma-panel: rgba(10, 50, 38, 0.78);
    --ma-panel-border: rgba(247, 224, 71, 0.45);
    --ma-btn-bg: #145038;
    --ma-cream: #faf6eb;
    --ma-title-blue: #1565c0;
    --ma-meta-brown: #8b4513;
    /* Khối nội dung giữa — giới hạn rộng */
    --ma-shell-max: 960px;
    display: block;
    min-height: 100vh;
    background-color: #5cb8e8;
    background-image: url("anhnen.png");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    align-items: stretch;
}

.layout-zimcity .container {
    max-width: var(--ma-shell-max, 1040px);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.zim-shell {
    max-width: min(calc(100% - 24px), var(--ma-shell-max, 1040px));
    margin: 0 auto;
    padding: 20px clamp(16px, 3vw, 32px) 40px;
    background: var(--ma-panel);
    border-radius: 22px;
    border: 2px solid var(--ma-panel-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.zim-hero {
    text-align: center;
    padding: 28px 16px 8px;
}

.zim-brand {
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.35rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow:
        0 0 1px var(--ma-gold, #f7e047),
        0 0 12px rgba(247, 224, 71, 0.5),
        0 3px 0 #b8940e,
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.zim-tagline {
    margin-top: 10px;
    color: rgba(255, 252, 220, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.zim-auth-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
}

.zim-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--ma-gold);
    background: var(--ma-btn-bg);
    border: 2px solid var(--ma-gold-dim);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.zim-btn-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    border-color: var(--ma-gold);
}

button.zim-btn-pill {
    cursor: pointer;
    font-family: 'Quicksand', 'Baloo 2', sans-serif;
}

.zim-btn-pill.is-active {
    box-shadow: 0 0 0 2px var(--ma-gold);
}

.zim-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 36px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ma-gold);
    background: var(--ma-btn-bg);
    border: 2px solid var(--ma-gold-dim);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease;
    font-family: 'Quicksand', 'Baloo 2', sans-serif;
}

.zim-btn-download:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.zim-nav-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: stretch;
    padding: 18px 4px 6px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .zim-nav-pills {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .zim-nav-pills {
        grid-template-columns: repeat(5, 1fr);
    }
}

.zim-nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    background: var(--ma-btn-bg);
    color: var(--ma-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    border: 2px solid var(--ma-gold-dim);
    transition: filter 0.15s ease, border-color 0.15s ease;
    text-align: center;
    min-height: 42px;
    box-sizing: border-box;
}

.zim-nav-pill:hover {
    filter: brightness(1.1);
    border-color: var(--ma-gold);
}

.zim-nav-pill .zim-pill-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.zim-pill-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.45);
}

.zim-pill-badge.hot {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.zim-section {
    margin-top: 28px;
}

.zim-section-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding-left: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.zim-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zim-post-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ma-cream);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(180, 160, 100, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

a.zim-post-card {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

a.zim-post-card:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.zim-post-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #2d6b4f;
    border: 2px solid var(--ma-gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.zim-post-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.zim-post-body {
    min-width: 0;
    text-align: left;
}

.zim-post-title {
    color: var(--ma-title-blue);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.35;
}

.zim-post-meta {
    font-size: 0.82rem;
    color: var(--ma-meta-brown);
}

.zim-post-meta strong.admin {
    color: #e11d48;
    font-weight: 700;
}

.zim-intro-block {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 20px;
    background: rgba(45, 55, 95, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    font-size: 0.95rem;
}

.zim-intro-block h2 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.layout-zimcity .login-box {
    background: rgba(38, 45, 78, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    max-width: 440px;
    margin: 28px auto 0;
}

.layout-zimcity .logo h1 {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
    text-shadow: 0 2px 16px rgba(34, 197, 94, 0.4);
}

.layout-zimcity .logo p {
    color: rgba(255, 255, 255, 0.6);
}

.layout-zimcity .form-group label {
    color: #c7d2fe;
}

.layout-zimcity .form-group input {
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 14px;
}

.layout-zimcity .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.layout-zimcity .form-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

.layout-zimcity .links {
    color: rgba(255, 255, 255, 0.65);
}

.layout-zimcity .links a {
    color: #7dd3fc;
}

.layout-zimcity .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.35);
}

.layout-zimcity .alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.35);
}

/* Logged-in top bar (Zim style) */
.zim-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zim-topbar-brand {
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.zim-topbar-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.zim-topbar-user span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.zim-topbar-user strong {
    color: #7dd3fc;
}

.zim-btn-logout {
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.35);
    transition: transform 0.2s ease;
}

.zim-btn-logout:hover {
    transform: translateY(-2px);
}

.layout-zimcity.home-page .dashboard {
    margin-top: 20px;
}

.layout-zimcity .profile-card,
.layout-zimcity .info-card,
.layout-zimcity .quick-actions {
    background: rgba(38, 45, 78, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-radius: 22px;
}

.layout-zimcity .profile-info h2,
.layout-zimcity .info-card h3,
.layout-zimcity .quick-actions h3 {
    color: #fff;
}

.layout-zimcity .profile-info p,
.layout-zimcity .stat-label {
    color: rgba(255, 255, 255, 0.55);
}

.layout-zimcity .stat-value,
.layout-zimcity .info-table td:last-child {
    color: #f1f5f9;
}

.layout-zimcity .info-table td:first-child {
    color: rgba(255, 255, 255, 0.45);
}

.layout-zimcity .info-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.layout-zimcity .info-card h3 {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.layout-zimcity .stat-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.layout-zimcity .action-btn {
    border-radius: 18px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    background: var(--ma-btn-bg, #145038);
}

.layout-zimcity .action-btn:hover {
    filter: brightness(1.08);
    border-color: var(--ma-gold, #f7e047);
}

.layout-zimcity.home-page {
    background-color: #5cb8e8;
    background-image: url("anhnen.png");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}

.layout-zimcity .zim-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 21, 40, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.layout-zimcity .avatar-placeholder {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.layout-zimcity .profile-card:hover {
    transform: translateY(-4px);
}

.layout-zimcity .stat-value.xu {
    color: #fde047;
}

.layout-zimcity .stat-value.luong {
    color: #7dd3fc;
}

.layout-zimcity .stat-value.exp {
    color: #fda4af;
}

.layout-zimcity .badge.admin {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

.layout-zimcity .badge.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
}

.layout-zimcity .badge.member {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
}

.layout-zimcity .status.active {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
}

.layout-zimcity .status.pending {
    background: linear-gradient(135deg, #fbbf24, #facc15);
    color: #422006;
}

.layout-zimcity .status.inactive {
    background: linear-gradient(135deg, #f43f5e, #fb7185);
    color: #fff;
}

.zim-nav-pill.is-active {
    background: #0f3328;
    border-color: var(--ma-gold);
    color: #fff8a8;
    box-shadow: 0 0 0 1px var(--ma-gold);
}

/* Trang landing (index) — khối Giới thiệu kiểu ZimCity */
.landing-page {
    min-height: 100vh;
    padding: 12px 12px 48px;
    box-sizing: border-box;
}

.zim-landing-panel {
    max-width: 100%;
    margin: 12px auto 0;
    padding: 22px 20px 28px;
    background: rgba(10, 50, 38, 0.65);
    border-radius: 16px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ma-panel-border);
}

.zim-landing-title {
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.zim-landing-lead {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.95);
}

.zim-landing-lead strong {
    font-weight: 700;
    color: #fff;
}

.zim-feature-list {
    list-style: none;
    counter-reset: zimfeat;
    padding: 0;
    margin: 0;
}

.zim-feature-list > li {
    counter-increment: zimfeat;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 22px;
    line-height: 1.75;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
}

.zim-feature-list > li::before {
    content: counter(zimfeat) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    color: #fff;
    font-size: 1.05rem;
}

.zim-feature-heading {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.zim-feature-text {
    display: block;
    color: rgba(255, 255, 255, 0.88);
}

.zim-intro-images {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    justify-content: center;
}

.zim-intro-img {
    max-width: 100%;
    width: 440px;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.zim-landing-logged-hint {
    text-align: center;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

.zim-landing-logged-hint a {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
}

.zim-landing-logged-hint a:hover {
    text-decoration: underline;
}

/* Post cards trên trang landing — nổi bật hơn */
.landing-page .zim-post-list {
    margin-top: 0;
}

.landing-page .zim-post-card {
    background: var(--ma-cream);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(180, 160, 100, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-page .zim-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.landing-page .zim-post-avatar {
    width: 48px;
    height: 48px;
    font-size: 1rem;
    border-radius: 10px;
}

.landing-page .zim-post-title {
    color: var(--ma-title-blue);
    font-size: 0.92rem;
    font-weight: 800;
}

.landing-page .zim-post-meta {
    font-size: 0.8rem;
    color: var(--ma-meta-brown);
}

.zim-post-empty {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    padding: 8px 4px;
}

.landing-page .zim-post-meta strong.admin {
    color: #e11d48;
}

.landing-page .zim-section {
    max-width: 100%;
    margin: 10px auto 0;
    padding: 0 0 4px;
}

@media (max-width: 768px) {
    .zim-nav-pills {
        grid-template-columns: repeat(2, 1fr);
    }

    .layout-zimcity .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .zim-landing-panel {
        padding: 24px 20px 32px;
        border-radius: 22px;
    }

    .zim-intro-images {
        flex-direction: column;
        align-items: center;
    }

    .zim-intro-img {
        width: 100%;
    }
}

/* Popup đăng nhập / đăng ký */
body.modal-open {
    overflow: hidden;
}

.zim-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 32, 24, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.zim-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.zim-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, #145038 0%, #0c3026 100%);
    border-radius: 18px;
    padding: 28px 26px 20px;
    box-shadow:
        0 0 0 2px rgba(247, 224, 71, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(247, 224, 71, 0.25);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.94);
    transition: transform 0.28s ease;
}

.zim-modal-backdrop.is-open .zim-modal {
    transform: scale(1);
}

.zim-modal-register {
    max-width: 440px;
}

.zim-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-family: inherit;
    padding: 0;
}

.zim-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zim-modal-logo {
    text-align: center;
    margin: 8px 32px 18px 0;
}

.modal-brand-img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

.brand-img {
    max-height: 72px;
    height: auto;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.zim-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.zim-modal-form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: #fff;
    color: #1e293b;
    font-family: 'Quicksand', 'Baloo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.zim-modal-form-control:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.2);
}

.zim-modal-form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.zim-modal-submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    border-radius: 12px;
    font-family: 'Quicksand', 'Baloo 2', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ma-gold, #f7e047);
    cursor: pointer;
    background: var(--ma-btn-bg, #145038);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.zim-modal-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.zim-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.zim-modal-forgot {
    color: #facc15;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

.zim-modal-forgot:hover {
    text-decoration: underline;
}

.zim-modal-switch {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.zim-modal-switch button {
    background: none;
    border: none;
    color: #7dd3fc;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
}

.zim-modal-alert {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.zim-modal-alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.zim-modal-alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Modal thay đổi email */
.zim-modal-change-email {
    max-width: 440px;
}

.zim-modal-form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.zim-modal-alert-box {
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.zim-modal-alert-box.is-error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.zim-modal-alert-box.is-success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Trang sau đăng nhập (kiểu ZimCity) */
.dashboard-zim {
    min-height: 100vh;
    padding: 12px 12px 40px;
    box-sizing: border-box;
}

.zim-dash-shell {
    max-width: min(calc(100% - 24px), var(--ma-shell-max, 1040px));
    margin: 0 auto;
    padding: 20px clamp(16px, 3vw, 32px) 40px;
    background: var(--ma-panel);
    border-radius: 22px;
    border: 2px solid var(--ma-panel-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.zim-dash-header {
    text-align: center;
    padding: 28px 16px 8px;
    margin-bottom: 12px;
}

.zim-dash-logo-link {
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.zim-dash-logo-img {
    max-height: 72px;
    width: auto;
    max-width: min(100%, 320px);
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.zim-dash-user-card {
    background: rgba(10, 50, 38, 0.75);
    border: 1px solid var(--ma-panel-border);
    border-radius: 16px;
    padding: 20px 16px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin: 0 auto 14px;
    max-width: 100%;
}

.zim-dash-greet {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 12px;
}

.zim-dash-greet-sep {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 4px;
}

.zim-dash-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.zim-dash-badge-user {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #052e16;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.35);
}

.zim-dash-badge-money {
    background: linear-gradient(135deg, #eab308, #facc15);
    color: #422006;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
}

.zim-dash-email {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.zim-dash-email-icon {
    opacity: 0.85;
}

.zim-dash-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.zim-dash-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ma-gold);
    background: var(--ma-btn-bg);
    border: 2px solid var(--ma-gold-dim);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.zim-dash-mini-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.zim-dash-mini-btn-logout {
    background: #6b2a2a;
    border-color: #e8a0a0;
    color: #ffd4d4;
}

.zim-dash-mini-btn-logout:hover {
    filter: brightness(1.12);
}

.zim-dash-mini-btn.is-current {
    cursor: default;
    opacity: 1;
    background: #0f3328;
    border-color: var(--ma-gold);
    color: #fff8a8;
    font-weight: 800;
    pointer-events: none;
}

.zim-dash-verify {
    background: rgba(12, 18, 32, 0.88);
    border: 2px solid var(--ma-gold-dim, #d4b832);
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
}

.zim-dash-verify-title {
    color: #fde047;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.zim-dash-verify-hint {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.zim-dash-verify-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #422006;
    background: linear-gradient(135deg, #facc15, #eab308);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.4);
}

.zim-dash-verify-btn:hover {
    filter: brightness(1.05);
}

/* Căn giữa nút Tải game + đồng bộ với .zim-hero (index) */
.zim-dash-cta {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

.zim-dash-cta .zim-btn-download {
    margin-top: 0;
}

.dashboard-zim .zim-dash-nav.zim-nav-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
    padding: 18px 4px 6px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Phúc lợi — thẻ dẫn BXH (dashboard) */
.zim-dash-phucloi {
    max-width: var(--ma-shell-max, 1040px);
    margin: 20px auto 8px;
}

.zim-dash-phucloi-heading {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

.zim-phucloi-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zim-phucloi-card {
    background: var(--ma-cream);
    border: 1px solid rgba(180, 160, 100, 0.35);
}

.zim-phucloi-card .zim-post-title {
    color: var(--ma-title-blue);
    font-weight: 800;
}

.zim-phucloi-card .zim-post-meta {
    color: var(--ma-meta-brown);
}

/* Dashboard Giới thiệu */
.dashboard-zim .zim-dash-posts.zim-section {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.zim-dash-posts .zim-section-title,
.zim-dash-posts .zim-dash-phucloi-heading {
    text-align: left;
    padding-left: 4px;
}

.zim-dash-posts .zim-intro-content {
    background: rgba(10, 50, 38, 0.65);
    border-radius: 16px;
    padding: 22px 18px 26px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ma-panel-border);
}

.zim-dash-posts .zim-landing-lead {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.95);
}

.zim-dash-posts .zim-landing-lead strong {
    font-weight: 700;
    color: #fff;
}

.zim-dash-posts .zim-feature-list {
    list-style: none;
    counter-reset: zimfeat;
    padding: 0;
    margin: 0;
}

.zim-dash-posts .zim-feature-list > li {
    counter-increment: zimfeat;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.9);
}

.zim-dash-posts .zim-feature-heading {
    font-weight: 700;
    color: #fff;
}

.zim-dash-posts .zim-intro-images {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.zim-dash-posts .zim-intro-img {
    max-width: 100%;
    width: 420px;
    height: auto;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

@media (max-width: 600px) {
    .zim-dash-posts .zim-intro-content {
        padding: 20px 20px 28px;
    }
    .zim-dash-posts .zim-intro-images {
        flex-direction: column;
        align-items: center;
    }
    .zim-dash-posts .zim-intro-img {
        width: 100%;
    }
}

.zim-dash-post-card {
    background: var(--ma-cream);
    border: 1px solid rgba(180, 160, 100, 0.35);
}

.dashboard-zim a.zim-post-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-zim a.zim-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* Trang chi tiết bài viết */
.zim-post-page-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin-bottom: 18px;
    padding-left: 4px;
}

.zim-post-back {
    display: inline-flex;
    align-items: center;
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.zim-post-back:hover {
    text-decoration: underline;
}

.zim-post-back-secondary {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.zim-post-back-secondary:hover {
    color: #7dd3fc;
}

.zim-post-article-meta {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 18px;
}

.zim-post-article-body {
    color: #475569;
    line-height: 1.75;
    font-size: 0.98rem;
}

.zim-post-article-body p {
    margin: 0 0 14px;
}

.zim-post-article-body p:last-child {
    margin-bottom: 0;
}

/* Trang đọc bài — layout giống dashboard, nội dung trong ô trắng */
.zim-post-reader-page .zim-post-reader-card {
    max-width: min(calc(100% - 24px), var(--ma-shell-max, 1040px));
    margin: 0 auto 28px;
    background: #fff;
    border-radius: 22px;
    padding: 24px 26px 28px;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.zim-post-guest-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.zim-post-reader-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.zim-post-reader-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.zim-post-reader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.zim-post-reader-avatar-icon {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.zim-post-reader-head-text {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.zim-post-reader-head-text--solo {
    padding-left: 0;
}

.zim-post-reader-head-text--solo .zim-post-reader-title {
    margin-bottom: 10px;
}

.zim-post-reader-author {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2563eb;
}

.zim-post-reader-title {
    margin: 0 0 8px;
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-size: clamp(1.15rem, 3.2vw, 1.45rem);
    font-weight: 700;
    color: #0f766e;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.zim-post-reader-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.zim-post-reader-meta strong.admin,
.zim-post-reader-meta .admin {
    color: #e11d48;
    font-weight: 700;
}

.zim-post-reader-lead {
    margin: 0 0 16px;
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.65;
}

.zim-post-reader-footer-link {
    margin: 0;
    font-size: 0.95rem;
}

.zim-post-reader-footer-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.zim-post-reader-footer-link a:hover {
    text-decoration: underline;
}

/* Nội dung HTML trong ô trắng */
.zim-post-reader-body {
    background: #fff;
    color: #1e293b;
    line-height: 1.8;
    font-size: 0.98rem;
    padding: 4px 2px 8px;
}

.zim-post-reader-body p {
    margin: 0 0 14px;
    color: #1e293b;
}

.zim-post-reader-body p:last-child {
    margin-bottom: 0;
}

.zim-post-reader-body p.post-red {
    color: #dc2626;
    font-weight: 600;
}

.zim-post-reader-body a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.zim-post-reader-body a:hover {
    color: #1d4ed8;
}

.zim-post-reader-body strong {
    color: #0f172a;
    font-weight: 700;
}

.zim-post-reader-body ul,
.zim-post-reader-body ol {
    margin: 0 0 14px;
    padding-left: 1.35rem;
    color: #1e293b;
}

.zim-post-reader-body li {
    margin-bottom: 6px;
}

.zim-post-reader-body h2,
.zim-post-reader-body h3 {
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    color: #0f766e;
    margin: 22px 0 10px;
    font-size: 1.08rem;
}

.zim-post-reader-body h2:first-child,
.zim-post-reader-body h3:first-child {
    margin-top: 0;
}

.zim-post-reader-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

/* Nav pill Admin */
.zim-nav-pill-admin {
    background: #1a4034 !important;
    border-color: #fbbf24 !important;
    color: #fde68a !important;
}

.zim-nav-pill-admin:hover {
    filter: brightness(1.12) !important;
}

/* ─── Trang quản lý admin ─────────────────────────────────────────────────── */
.zim-admin-panel {
    max-width: 860px;
}

.zim-admin-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.zim-admin-form-section {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px 26px;
    margin-bottom: 28px;
}

.zim-admin-form-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 18px;
}

.zim-admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zim-admin-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
}

.zim-admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zim-admin-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.zim-admin-label .required {
    color: #f87171;
}

.zim-admin-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 2px 0 0;
    line-height: 1.5;
}

.zim-admin-hint code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #86efac;
}

.zim-admin-icon-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zim-admin-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.zim-icon-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zim-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.zim-admin-textarea {
    resize: vertical;
    min-height: 160px;
    font-family: inherit;
    line-height: 1.6;
}

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

.zim-admin-btn-submit {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.zim-admin-btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.zim-admin-btn-cancel {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}

.zim-admin-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.zim-admin-list-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 26px;
}

.zim-admin-list-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px;
}

.zim-admin-empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin: 0;
}

.zim-admin-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zim-admin-post-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s;
}

.zim-admin-post-row:hover {
    background: rgba(255, 255, 255, 0.09);
}

.zim-admin-post-row-active {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.zim-admin-post-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zim-admin-post-info {
    flex: 1;
    min-width: 0;
}

.zim-admin-post-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.zim-admin-post-title:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.zim-admin-post-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.zim-admin-post-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.zim-admin-btn-edit {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: var(--ma-gold, #f7e047);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.zim-admin-btn-edit:hover {
    background: rgba(34, 197, 94, 0.3);
}

.zim-admin-btn-delete {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.zim-admin-btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
    .zim-admin-row {
        grid-template-columns: 1fr;
    }

    .zim-admin-post-row {
        flex-wrap: wrap;
    }

    .zim-admin-post-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.zim-dash-game-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.zim-dash-game-hint a {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: none;
}

.zim-dash-game-hint a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .zim-dash-greet {
        font-size: 0.88rem;
    }

    .zim-dash-btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .zim-dash-mini-btn {
        justify-content: center;
    }
}

/* Trang đổi tên (doiten.php) */
.doiten-page .zim-email-banner {
    background: rgba(12, 18, 32, 0.88);
    border: 2px solid var(--ma-gold-dim, #d4b832);
    border-radius: 14px;
    padding: 14px 16px 16px;
    margin: 0 auto 20px;
    max-width: 640px;
    text-align: center;
}

.zim-email-banner-title {
    margin: 0 0 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 8px;
}

.zim-email-banner-text {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.zim-email-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(247, 224, 71, 0.4);
    background: rgba(247, 224, 71, 0.15);
    color: var(--ma-gold, #f7e047);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.zim-email-banner-btn:hover {
    background: rgba(247, 224, 71, 0.3);
}

.zim-rename-main {
    max-width: min(100%, var(--ma-shell-max, 960px));
    margin: 0 auto;
    padding: 8px 4px 32px;
}

.zim-rename-heading {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.zim-rename-sub {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 16px;
}

.zim-rename-flash {
    max-width: 640px;
    margin: 0 auto 16px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
}

.zim-rename-flash-ok {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #bbf7d0;
}

.zim-rename-flash-err {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.zim-rename-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 720px) {
    .zim-rename-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .zim-rename-grid {
        grid-template-columns: 1fr;
    }
}

.zim-rename-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(247, 224, 71, 0.4);
    background: linear-gradient(165deg, rgba(18, 72, 56, 0.95) 0%, rgba(8, 42, 32, 0.98) 100%);
    color: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.zim-rename-card:hover {
    border-color: rgba(247, 224, 71, 0.65);
    transform: translateY(-1px);
}

.zim-rename-card.is-selected {
    border-color: var(--ma-gold, #f7e047);
    box-shadow: 0 0 0 2px rgba(247, 224, 71, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.zim-rename-card-title {
    font-weight: 700;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #fff;
}

.zim-rename-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ma-gold, #f7e047);
}

.zim-rename-card-extra {
    font-size: 0.75rem;
    color: #fb7185;
    font-weight: 600;
}

.zim-rename-card-bonus {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.zim-rename-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zim-rename-hint {
    margin: 0;
    font-size: 0.88rem;
    color: #fde047;
    line-height: 1.55;
    text-align: center;
    min-height: 2.8em;
}

.zim-rename-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    background: var(--ma-btn-bg, #145038);
    color: var(--ma-gold, #f7e047);
    font-family: inherit;
    font-size: 1rem;
}

.zim-rename-input::placeholder {
    color: rgba(247, 224, 71, 0.45);
}

.zim-rename-input:focus {
    outline: none;
    border-color: var(--ma-gold, #f7e047);
    box-shadow: 0 0 0 3px rgba(247, 224, 71, 0.2);
}

.zim-rename-submit {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    border-radius: 12px;
    background: var(--ma-btn-bg, #145038);
    color: var(--ma-gold, #f7e047);
    font-family: inherit;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.zim-rename-submit:hover {
    filter: brightness(1.08);
}

/* ─── Bảng xếp hạng Xu / Lượng ─────────────────────────────────────────── */
.bxh-page .bxh-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px 20px;
    max-width: 960px;
    margin: 8px auto 0;
    padding: 0 4px;
}

.bxh-admin-side {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 48px;
}

.bxh-admin-gif {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(234, 179, 8, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.bxh-admin-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}

.bxh-card {
    flex: 1;
    min-width: min(100%, 320px);
    max-width: 720px;
    background: linear-gradient(180deg, #fffef9 0%, #fff 40%);
    border-radius: 22px;
    padding: 22px 20px 24px;
    border: 2px solid rgba(234, 179, 8, 0.55);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bxh-title {
    margin: 0 0 18px;
    text-align: center;
    font-family: 'Baloo 2', 'Quicksand', sans-serif;
    font-size: clamp(1.25rem, 3.5vw, 1.55rem);
    font-weight: 800;
    color: #c41e1e;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bxh-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.bxh-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #1b5e20;
    background: #fff;
    color: #1b5e20;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.12s;
}

.bxh-tab:hover {
    background: rgba(27, 94, 32, 0.08);
    transform: translateY(-1px);
}

.bxh-tab.is-active {
    background: linear-gradient(180deg, #1b5e20 0%, #0d3d14 100%);
    color: #fff;
    border-color: #0d3d14;
    box-shadow: 0 4px 14px rgba(13, 61, 20, 0.35);
}

.bxh-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 2px solid #1b5e20;
    background: #fff;
}

.bxh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.bxh-table thead th {
    background: linear-gradient(180deg, #1b5e20 0%, #0d3d14 100%);
    color: #fef08a;
    font-weight: 800;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 2px solid #0d3d14;
}

.bxh-table tbody td {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    color: #14532d;
    border-bottom: 1px solid rgba(27, 94, 32, 0.12);
}

.bxh-tr:last-child td {
    border-bottom: none;
}

.bxh-tr--1 td {
    color: #dc2626;
    font-weight: 800;
    background: rgba(220, 38, 38, 0.1);
}

.bxh-tr--2 td {
    color: #ea580c;
    font-weight: 800;
    background: rgba(234, 88, 12, 0.1);
}

.bxh-tr--3 td {
    color: #0284c7;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.1);
}

.bxh-tr--zebra-odd td {
    background: #f4f6f0;
    color: #14532d;
}

.bxh-tr--zebra-even td {
    background: #fff;
    color: #14532d;
}

.bxh-tr--empty td {
    padding: 28px 16px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 520px) {
    .bxh-admin-side {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding-top: 0;
    }

    .bxh-layout {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ─── Gender selection trong form đăng ký ───────────────────────────────── */
.zim-modal-gender-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zim-modal-gender-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.zim-modal-gender-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s ease;
}

.zim-modal-gender-option:hover {
    color: #fff;
}

.zim-modal-gender-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4ade80;
    cursor: pointer;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.zim-modal-gender-option input[type="radio"]:checked {
    border-color: #4ade80;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
}

.zim-modal-gender-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.zim-modal-gender-option input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.zim-modal-gender-option:has(input:checked) {
    color: #4ade80;
}

@media (max-width: 420px) {
    .zim-modal-gender-group {
        flex-wrap: wrap;
        gap: 10px 14px;
        padding: 10px 12px;
    }
}

/* ─── Trang nạp tiền (CK ngân hàng) ─────────────────────────────────────── */
.zim-nap-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 12px 32px;
}

.zim-nap-panel {
    border-radius: 18px;
    border: 1px solid var(--ma-panel-border, rgba(247, 224, 71, 0.35));
    background: var(--ma-panel, rgba(18, 72, 56, 0.9));
    padding: 20px 18px 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.zim-nap-panel--form {
    max-width: 640px;
}

.zim-nap-label {
    margin: 0 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.zim-nap-flash {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
}

.zim-nap-flash-err {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.zim-nap-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.zim-nap-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border-radius: 12px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    background: var(--ma-btn-bg, #145038);
    color: var(--ma-gold, #f7e047);
    font-family: inherit;
    font-size: 1rem;
}

.zim-nap-input::placeholder {
    color: rgba(247, 224, 71, 0.45);
}

.zim-nap-input:focus {
    outline: none;
    border-color: var(--ma-gold, #f7e047);
    box-shadow: 0 0 0 3px rgba(247, 224, 71, 0.2);
}

.zim-nap-submit {
    padding: 12px 28px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    border-radius: 12px;
    background: var(--ma-btn-bg, #145038);
    color: var(--ma-gold, #f7e047);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
    transition: filter 0.15s;
}

.zim-nap-submit:hover {
    filter: brightness(1.08);
}

.zim-nap-guide {
    border-radius: 18px;
    border: 1px solid var(--ma-panel-border, rgba(247, 224, 71, 0.35));
    background: var(--ma-panel, rgba(18, 72, 56, 0.9));
    padding: 18px 18px 22px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.zim-nap-guide-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ma-panel-border, rgba(247, 224, 71, 0.25));
}

.zim-nap-guide-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ma-gold, #f7e047);
    line-height: 1.35;
    flex: 1 1 220px;
}

.zim-nap-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid var(--ma-gold-dim, #d4b832);
    background: var(--ma-btn-bg, #145038);
    color: var(--ma-gold, #f7e047);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: filter 0.15s, border-color 0.15s;
}

.zim-nap-reset:hover {
    filter: brightness(1.08);
    border-color: var(--ma-gold, #f7e047);
}

.zim-nap-reset-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.zim-nap-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 800px) {
    .zim-nap-guide-grid {
        grid-template-columns: 1fr;
    }
}

.zim-nap-col {
    border-radius: 12px;
    border: 1px solid var(--ma-panel-border, rgba(247, 224, 71, 0.28));
    background: var(--ma-btn-bg, #145038);
    padding: 16px 14px 18px;
    min-height: 120px;
}

.zim-nap-col-title {
    margin: 0 0 14px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ma-gold, #f7e047);
    text-align: center;
}

.zim-nap-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.zim-nap-qr {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: #fff;
}

.zim-nap-qr-fallback {
    margin: 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(247, 224, 71, 0.65);
    line-height: 1.5;
    max-width: 260px;
}

.zim-nap-bank-card {
    padding: 4px 2px 0;
}

.zim-nap-bank-name {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff8a8;
}

.zim-nap-bank-sub {
    margin: 0 0 16px;
    font-size: 0.82rem;
    color: rgba(247, 224, 71, 0.6);
    line-height: 1.4;
}

.zim-nap-dl {
    margin: 0;
}

.zim-nap-dl-row {
    display: grid;
    grid-template-columns: minmax(100px, 38%) 1fr;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(247, 224, 71, 0.15);
    font-size: 0.88rem;
}

.zim-nap-dl-row:last-of-type {
    border-bottom: none;
}

.zim-nap-dl-row dt {
    margin: 0;
    font-weight: 700;
    color: rgba(247, 224, 71, 0.55);
}

.zim-nap-dl-row dd {
    margin: 0;
    color: #fff8a8;
    font-weight: 600;
    word-break: break-all;
}

.zim-nap-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9rem;
    background: rgba(10, 50, 38, 0.65);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(247, 224, 71, 0.25);
}

.zim-nap-code--memo {
    color: var(--ma-gold, #f7e047);
    font-weight: 800;
}

.zim-nap-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(247, 224, 71, 0.06);
    border: 1px solid rgba(247, 224, 71, 0.2);
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--ma-gold, #f7e047);
    font-weight: 600;
}

/* ─── Popup thông báo mua gói ─────────────────────────────────────────── */
.zim-notif-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zim-notif-backdrop.is-open {
    opacity: 1;
}

.zim-notif-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 280px;
    max-width: 480px;
    pointer-events: auto;
    animation: zim-notif-slidein 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zim-notif-slidein {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.zim-notif-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.zim-notif-icon-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.zim-notif-icon-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.zim-notif-msg {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}
