/* ==========================================================
   MINH QUÂN PC - MEMBER PORTAL DESIGN SYSTEM
   Modern, Clean, High-Tech, Responsive
   ========================================================== */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent-cyan: #06b6d4;
    --accent-indigo: #4f46e5;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* ==========================================================
   SPLIT PANE AUTH LAYOUT
   ========================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    padding: 0;
}

.auth-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        display: none !important;
    }
}

/* Left Hero Banner */
.auth-hero {
    position: relative;
    background: linear-gradient(135deg, #0b1329 0%, #1e1b4b 50%, #0369a1 100%);
    color: #fff;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.25) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.auth-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #38bdf8;
    margin-bottom: 1.5rem;
}

.auth-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 480px;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: #94a3b8;
}

.auth-hero-footer {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Right Form Card */
.auth-form-card {
    background: #fff;
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .auth-form-card {
        padding: 2rem 1.5rem;
    }
}

.auth-form-header {
    margin-bottom: 2rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name span {
    color: var(--primary);
}

.auth-box {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

.auth-header-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.auth-header-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    padding: 0.25rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.required {
    color: var(--danger);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-toggle-eye {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--danger);
    margin-top: 0.35rem;
}

.label-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0 1.25rem;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    background: #fff;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Primary Google Button (1-Click) */
.btn-google-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    border: 1px solid #dadce0;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
}

.btn-google-primary:hover {
    background: #f8fafd;
    border-color: #4285f4;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.2);
    transform: translateY(-1px);
}

.btn-google-primary svg {
    flex-shrink: 0;
}

/* Social Grid */
.social-login-grid .social-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-facebook i {
    color: #1877f2;
    font-size: 1.15rem;
}

.btn-zalo .zalo-badge {
    background: #0068ff;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-footer-text {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.35rem;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* OTP Screen */
.otp-input-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.otp-code-box {
    width: 220px;
    text-align: center;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.45rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    outline: none;
    background: #f8fafc;
}

.otp-resend-box {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-resend {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.hidden {
    display: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

/* ==========================================================
   MEMBER PORTAL PROFILE PAGE
   ========================================================== */
.member-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.header-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 9999px;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-display-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: var(--danger-light);
}

.member-main {
    padding: 2.5rem 1.5rem;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Admin Card Banner */
.admin-access-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-badge-strip {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-content-row {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.admin-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #f8fafc;
}

.admin-info p {
    font-size: 0.9375rem;
    color: #94a3b8;
}

.role-tags {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-left: 0.35rem;
}

.role-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.btn-enter-cms {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.btn-enter-cms:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

/* Grid Profile */
.profile-layout-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

.profile-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.profile-summary-card {
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-indigo));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-username {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-badges {
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-admin {
    background: #fef3c7;
    color: #b45309;
}

.badge-member {
    background: #e0f2fe;
    color: #0369a1;
}

.profile-meta-list {
    text-align: left;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
}

.meta-item i {
    color: #94a3b8;
    width: 16px;
}

/* Card Form */
.card-header-styled {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card-header-styled h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header-styled p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

.profile-form textarea,
.profile-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.profile-form textarea:focus,
.profile-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.form-actions {
    margin-top: 1.5rem;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* ==========================================================
   MINH QUAN PC - MEMBER PORTAL FULL STYLES
   ========================================================== */
.text-red {
    color: #cb1c22 !important;
}

.mq-logo-badge {
    background: #cb1c22;
    color: #fff;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.btn-back-store {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-back-store:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #cb1c22;
}

.btn-cms-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    background: #0f172a;
    color: #fbbf24;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
    transition: all 0.2s;
}

.btn-cms-shortcut:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.member-portal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 900px) {
    .member-portal-layout {
        grid-template-columns: 1fr;
    }
}

.member-sidebar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 1.5rem;
}

.user-card-summary {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.user-card-summary .profile-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.5rem;
}

.user-card-summary .profile-phone {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.75rem;
}

.tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fef2f2;
    color: #cb1c22;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.member-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.member-nav-menu .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    position: relative;
}

.member-nav-menu .nav-item i {
    width: 20px;
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.member-nav-menu .nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.member-nav-menu .nav-item:hover i {
    color: #cb1c22;
}

.member-nav-menu .nav-item.active {
    background: #fef2f2;
    color: #cb1c22;
    font-weight: 700;
}

.member-nav-menu .nav-item.active i {
    color: #cb1c22;
}

.badge-count {
    margin-left: auto;
    background: #fee2e2;
    color: #cb1c22;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

/* Tab Panels */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.25s ease-out;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    margin-bottom: 1.5rem;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.content-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.bg-red-soft { background: #fee2e2; color: #cb1c22; }
.bg-green-soft { background: #dcfce7; color: #16a34a; }
.bg-blue-soft { background: #e0f2fe; color: #0284c7; }

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Panel Card */
.panel-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-btn {
    background: none;
    border: none;
    color: #cb1c22;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.link-btn:hover {
    text-decoration: underline;
}

/* Recent Orders Summary */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.order-code-badge {
    font-family: monospace;
    font-weight: 800;
    color: #0f172a;
    background: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Order Detail Card */
.orders-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.order-detail-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.order-card-top {
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.order-code-tag {
    font-size: 0.95rem;
    color: #0f172a;
}

.order-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.75rem;
}

.payment-method-badge {
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #334155;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.75rem;
    font-weight: 600;
}

.order-items-table {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--border-color);
}

.order-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-thumb i {
    font-size: 1.2rem;
    color: #94a3b8;
}

.item-name {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.item-qty {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #cb1c22;
}

.order-card-bottom {
    background: #fcfcfd;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.shipping-info {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.order-total-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.total-amount-highlight {
    font-size: 1.2rem;
    font-weight: 800;
    color: #cb1c22;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-processing { background: #e0e7ff; color: #4338ca; }
.badge-shipping { background: #f3e8ff; color: #7e22ce; }
.badge-delivered { background: #dcfce7; color: #15803d; }
.badge-cancelled { background: #fee2e2; color: #b91c1c; }
.badge-returned { background: #f1f5f9; color: #475569; }

/* Warranty Table */
.warranty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.warranty-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.warranty-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: #334155;
    vertical-align: middle;
}

.serial-code {
    font-family: monospace;
    font-weight: 800;
    background: #f1f5f9;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-active { background: #dcfce7; color: #15803d; }
.badge-expired { background: #fee2e2; color: #b91c1c; }

.history-metric-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.history-metric-box .metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-metric-box .metric-item span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.history-metric-box .metric-item strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.25rem;
    background: #cb1c22;
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary-small:hover {
    background: #b91c1c;
}

/* Sidebar Nav Items */
.nav-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    border-left: 3px solid transparent;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all 0.15s ease-in-out;
}

.nav-sidebar-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.nav-sidebar-item.active {
    background: #fef2f2;
    color: #cb1c22;
    font-weight: 700;
    border-left-color: #cb1c22;
}

/* Order Status Tab Buttons */
.order-status-tab {
    position: relative;
    padding: 0.6rem 0.85rem;
    color: #64748b;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.order-status-tab:hover {
    color: #0f172a;
}

.order-status-tab.active {
    color: #cb1c22;
    border-bottom-color: #cb1c22;
    font-weight: 700;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.badge-pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-confirmed, .badge-processing {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.badge-shipping {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.badge-delivered {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-cancelled {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-returned {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* ==========================================================
   MINH QUÂN PC - MODERN ROUNDED MEMBER PORTAL DESIGN SYSTEM
   Unique, High-Tech, Curved Aesthetics (rounded-2xl / rounded-3xl)
   ========================================================== */

/* Modern Rounded Sidebar Item */
.mq-nav-item,
.nav-hhm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
}

.mq-nav-item:hover,
.nav-hhm-item:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateX(2px);
}

.mq-nav-item.active,
.nav-hhm-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.mq-nav-item.active i,
.nav-hhm-item.active i {
    color: #ffffff !important;
}

/* Distinctive Minh Quân PC Title Accent */
.mq-title-accent,
.hhm-title-accent {
    width: 5px;
    height: 26px;
    background: linear-gradient(to bottom, #2563eb, #06b6d4);
    border-radius: 9999px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Modern Rounded Promo Cards */
.mq-promo-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mq-promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

/* Tech Member Card (Chip EMV PC Gaming Look) */
.mq-member-card {
    position: relative;
    background: linear-gradient(135deg, #090d16 0%, #172554 50%, #1e1b4b 100%);
    color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.2), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mq-member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Tab panes */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: mqFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes mqFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




