:root {
    --primary-color: #D4AF37; /* Gold based on image descriptions */
    --primary-dark: #AA8C2C;
    --text-color: #333333;
    --background-color: #F8F9FA;
    --white: #FFFFFF;
    --gray-light: #E0E0E0;
    --gray-medium: #888888;
    --gray-dark: #444444;
    --danger: #DC3545;
    --success: #28A745;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    --header-height: 60px;
    --bottom-nav-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-tap-highlight-color: transparent;
    height: 100%;
}

html {
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 600;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 600px; /* Mobile focused */
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--bottom-nav-height) + var(--spacing-md));
    min-height: 100vh;
    background-color: var(--white);
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.auth-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 100vh;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-4 { margin-top: var(--spacing-md); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-4 { margin-bottom: var(--spacing-md); }

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-weight: normal;
}

/* Specific UI Components Styles */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--background-color) 100%);
}

.profile-img-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tier-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: var(--bottom-nav-height);
    background-color: rgba(19, 19, 19, 1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    color: rgba(51, 51, 51, 1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    gap: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.scan-btn-wrapper {
    position: relative;
    top: -20px;
}

.scan-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

.scan-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* =========================
   Sign in (visual match)
   ========================= */

.signin-page {
    min-height: 100svh;
    background: #000;
    display: flex;
    justify-content: center;
    padding: 24px 32px;
}

.signin-content {
    width: 100%;
    max-width: 398px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signin-logo {
    width: 100%;
    max-width: 398px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 80px;
    object-fit: contain;
}

.signin-form {
    width: 100%;
}

.signin-label {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0 0 12px;
}

.signin-label--password {
    margin-top: 48px;
}

.signin-input {
    width: 100%;
    height: 56px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #EFEFEF;
    color: #1a1a1a;
    font-size: 18px;
    outline: none;
}

.signin-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.signin-password {
    position: relative;
}

.signin-input--password {
    padding-right: 56px;
}

.signin-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.signin-eye:active {
    transform: translateY(-50%) scale(0.96);
}

.signin-eye-icon {
    width: 22px;
    height: 22px;
    fill: rgba(160, 160, 160, 0.9);
}

.signin-forgot {
    display: block;
    text-align: right;
    margin-top: 28px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    font-weight: 500;
}

.signin-forgot:hover {
    color: rgba(255, 255, 255, 0.95);
}

.signin-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 0;
}

.signin-btn--primary {
    background: #C7A24F;
    color: rgba(255, 255, 255, 0.92);
}

.signin-btn--secondary {
    margin-top: 20px;
    background: #BDAF86;
    color: rgba(255, 255, 255, 0.92);
}

.signin-btn:active {
    transform: scale(0.99);
}

@media (max-width: 420px) {
    .signin-logo {
        margin-bottom: 34px;
    }
    .signin-label {
        font-size: 20px;
    }
    .signin-forgot {
        font-size: 20px;
    }
    .signin-btn {
        height: 66px;
        font-size: 26px;
    }
}

/* =========================
   Register page (visual)
   ========================= */
.register-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 20px 16px 32px;
}

.register-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 8px;
    height: 52px;
    margin-bottom: 12px;
    background: #000;
}

.register-back img {
    width: 22px;
}

.register-back {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    padding: 4px 0;
    background-color: #000000;
    border: none;
}

.register-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #f3c25b;
}

.register-title-line {
    margin: 4px 0 16px;
    font-size: 26px;
    font-weight: 400;
    color: #f3c25b;
    text-align: left;
}

.register-logo {
    width: auto;
    height: 52px;
    max-width: 220px;
    object-fit: contain;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-label {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
}

.register-required {
    color: #d9534f;
}

.register-input {
    width: 100%;
    height: 56px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    padding: 12px 12px;
    font-size: 18px;
    color: #111;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.register-input:focus {
    outline: 2px solid rgba(212,175,55,0.35);
}

.register-form .form-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.register-form .form-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}

.register-photo-card .camera-capture-placeholder {
    width: 300px;
    max-width: 100%;
    min-height: 120px;
    border-radius: 6px;
    background: #b8a57d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.register-photo-circle .camera-capture-placeholder {
    width: 120px;
    height: 120px;
    min-height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.register-photo-circle .camera-capture-preview {
    width: 120px;
    height: 120px;
    min-height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.register-photo-circle .camera-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.register-photo-card .camera-capture-placeholder > div {
    border: none !important;
    padding: 0 !important;
}

.register-photo-card img {
    max-height: 120px;
    object-fit: contain;
}

.camera-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.camera-empty {
    width: 100%;
    height: 100%;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.camera-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.camera-overlay-icon {
    width: 48px;
    opacity: 0.5;
}

/* Camera Capture Container */
.camera-capture-container {
    width: 100%;
    position: relative;
}

.camera-capture-placeholder,
.camera-capture-preview {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b8a57d;
    overflow: hidden;
}

.camera-capture-preview {
    width: 100%;
    height: 100%;
}

.camera-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Camera Preview Modal */
.camera-preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0;
}

.camera-preview-modal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.camera-preview-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.camera-preview-image-full {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ID Card Overlay */
.camera-idcard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.camera-idcard-frame {
    width: min(85vw, 400px);
    height: min(54vw, 250px);
    border: 3px solid #D4AF37;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    position: relative;
}

.camera-idcard-frame::before,
.camera-idcard-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #D4AF37;
}

.camera-idcard-frame::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.camera-idcard-frame::after {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

.camera-idcard-guide {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #D4AF37;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.6;
}

/* Camera Preview Actions */
.camera-preview-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
}

.camera-btn {
    flex: 1;
    max-width: 200px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.camera-btn-retake {
    background: #6C757D;
    color: white;
}

.camera-btn-retake:active {
    background: #5A6268;
    transform: scale(0.98);
}

.camera-btn-accept {
    background: #D4AF37;
    color: #2C2C2C;
}

.camera-btn-accept:active {
    background: #C4A037;
    transform: scale(0.98);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .camera-capture-placeholder,
    .camera-capture-preview {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }

    .camera-idcard-guide {
        font-size: 12px;
        padding: 10px 16px;
    }

    .camera-btn {
        font-size: 14px;
        padding: 14px 20px;
    }
}

.register-form .form-control,
.register-form select {
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    height: 56px;
    padding: 12px 12px;
    font-size: 18px;
    color: #111;
    margin-bottom: 10px;
}

.register-form select {
    appearance: none;
    background-image: url("/Assets/dropdown.png");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}

.register-company-card {
    background: rgba(0, 0, 0, 1);
    border-radius: 6px;
    padding: 12px 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-password {
    position: relative;
}

.register-input--password {
    padding-right: 56px;
}

.register-eye {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.register-eye:active {
    transform: translateY(-50%) scale(0.96);
}

.register-eye-icon {
    width: 22px;
    height: 22px;
    fill: rgba(160, 160, 160, 0.9);
}

.register-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-top: 4px;
    font-weight: 500;
}

.register-privacy a {
    color: #f3c25b;
}

.register-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c7a24f;
}

.register-btn {
    width: 100%;
    height: 53px;
    max-height: 53px;
    min-height: 53px;
    border: none;
    border-radius: 6px;
    background: #c7a24f;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    margin-top: 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.register-btn:active {
    transform: scale(0.99);
}

.register-btn:disabled {
    background: #666 !important;
    color: #999 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.register-form textarea {
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 18px;
    color: #111;
    min-height: 56px;
    margin-bottom: 10px;
}

/* =========================
   Home Page
   ========================= */

.home-page {
    min-height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    padding-left: 32px;
    padding-right: 32px;
}

.home-logo-header {
    background: #000;
    padding: 32px 0 36px;
    text-align: center;
}

.home-logo {
    height: 50px;
    width: auto;
    max-width: 90%;
}

.home-user-card {
    background: #fff;
    padding: 10px 12px;
    border-radius: 0;
    margin-bottom: 12px;
}

.home-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0px;
}

.home-profile-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 0;
    flex-shrink: 0;
}

.home-user-name {
    font-size: 18px;
    font-weight: 400;
    color: #C7A24F;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.home-tier-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-tier-label {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
}

.home-tier-badge {
    background: #9E9E9E;
    color: #fff;
    padding: 2px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.home-progress-bar {
    width: 100%;
    height: 22px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.home-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C7A24F 0%, #D4B55E 100%);
    transition: width 0.3s ease;
}

.home-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 400;
    color: #333;
    z-index: 1;
}

.home-content {
    background: rgba(19, 19, 19, 1);
    padding: 22px 32px 0;
    color: rgba(51, 51, 51, 1);
    height: 210px;
}

.home-period-section {
    margin-bottom: 28px;
}

.home-period-label {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 6px 0;
}

.home-period-value {
    font-size: 30px;
    font-weight: 400;
    color: #C7A24F;
    margin: 0;
    line-height: 1.1;
}

.home-balance-section {
    margin-bottom: 56px;
}

.home-balance-label {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 6px 0;
}

.home-balance-value {
    font-size: 30px;
    font-weight: 400;
    color: #C7A24F;
    margin: 0;
    line-height: 1.1;
}

.home-qr-section {
    background: #000;
    text-align: center;
    padding: 40px 32px 120px;
    height: 350px;
}

/* =========================
   Profile Page
   ========================= */
.profile-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 0 32px 120px;
}

.profile-menu {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #111;
    border-radius: 4px;
    padding: 0 16px;
    height: 60px;
    text-decoration: none;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
}

.profile-menu-item--accent {
    color: #fff;
}

.profile-menu-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.profile-menu-item span {
    font-size: 18px;
    color: #fff;
}

/* =========================
   Commission Tier
   ========================= */
.commission-page {
    padding: 20px 16px 120px;
}

.commission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.commission-card {
    background: #111;
    border-radius: 8px;
    padding: 18px 16px 20px;
}

.commission-tier-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.commission-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.commission-range {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.commission-percent {
    color: #c7a24f;
    font-size: 22px;
    font-weight: 400;
}

/* =========================
   Privacy Policy
   ========================= */
.privacy-page {
    padding: 20px 16px 120px;
}

.privacy-content {
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
    margin-top: 8px;
}

/* =========================
   Delete Account
   ========================= */
.delete-page {
    padding: 20px 16px 120px;
}

/* =========================
   Version Page
   ========================= */
.version-page {
    padding: 20px 16px 120px;
}

.version-content {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* =========================
   Report Page
   ========================= */
.report-page {
    min-height: 100vh;
    background: #000;
    color: #fff;
    padding: 0 16px 120px;
}

.report-logo-header {
    text-align: center;
    padding: 32px 0 20px;
}

.report-logo {
    height: 60px;
    width: auto;
    max-width: 90%;
}

.report-content {
    max-width: 720px;
    margin: 0 auto;
}

.report-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

.report-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.report-select {
    flex: 1;
    height: 64px;
    border: none;
    border-radius: 6px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 400;
    background: #f3f3f3;
    color: #1a1a1a;
    appearance: none;
    background-image: url("/Assets/dropdown.png");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}

.report-summary {
    display: flex;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.report-summary-item {
    flex: 1;
}

.report-summary-label {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-align: center;
}

.report-summary-value {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
    color: #C7A24F;
    text-align: center;
}

.report-list {
    background: rgba(19, 19, 19, 1);
    border-radius: 8px;
    padding: 18px 16px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.report-row:last-child {
    border-bottom: none;
}

.report-row-date {
    font-size: 16px;
    color: #fff;
}

.report-row-amount {
    font-size: 16px;
    color: #C7A24F;
}

.home-qr-button {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #C7A24F 0%, #D4B55E 100%);
    border: none;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0;
    margin: 0 auto 6px;
    box-shadow: 0 4px 16px rgba(199, 162, 79, 0.3);
}

.home-qr-button:active {
    transform: scale(0.96);
}

.home-qr-icon {
    width: 170px;
    height: 170px;
    filter: brightness(0) invert(1);
}

.home-qr-label {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

/* Authentication Modal (for Sign In errors) */
.auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000 !important;
    padding: var(--spacing-lg);
    margin: 0 !important;
}

.auth-modal-content {
    background: white;
    border-radius: var(--radius-md);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.auth-modal-body {
    padding: var(--spacing-xl);
}

.auth-modal-message {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    white-space: pre-line;
    text-align: center;
}

.auth-modal-footer {
    padding: var(--spacing-md) var(--spacing-xl);
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
}

.auth-modal-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--gray-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-modal-btn:hover {
    background: var(--primary-dark);
}

/* Authentication Loading Spinner */
.auth-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.auth-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Tier Upgrade Celebration Modal ===== */
.tier-upgrade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: tierOverlayFadeIn 0.3s ease-out;
}

@keyframes tierOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tier-upgrade-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.tier-upgrade-modal {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    animation: tierModalBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@keyframes tierModalBounceIn {
    0% {
        transform: scale(0.3) translateY(100px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.tier-upgrade-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: tierGlowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tierGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.tier-upgrade-content {
    position: relative;
    z-index: 1;
}

.tier-upgrade-icon {
    margin-bottom: 20px;
    animation: tierIconFloat 3s ease-in-out infinite;
}

@keyframes tierIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.tier-upgrade-crown {
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.tier-upgrade-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: tierTitleShine 2s ease-in-out infinite;
}

@keyframes tierTitleShine {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4);
    }
}

.tier-upgrade-subtitle {
    font-size: 16px;
    color: #aaaaaa;
    margin: 0 0 20px 0;
}

.tier-upgrade-badge-container {
    margin: 20px 0;
    animation: tierBadgePop 0.5s ease-out 0.3s both;
}

@keyframes tierBadgePop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.tier-upgrade-badge {
    display: inline-block;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: tierBadgeGlow 1.5s ease-in-out infinite;
}

@keyframes tierBadgeGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.tier-upgrade-stars {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tier-upgrade-stars .star {
    font-size: 30px;
    color: var(--primary-color);
    animation: tierStarTwinkle 1s ease-in-out infinite;
}

.tier-upgrade-stars .star-1 {
    animation-delay: 0s;
}

.tier-upgrade-stars .star-2 {
    animation-delay: 0.2s;
    font-size: 40px;
}

.tier-upgrade-stars .star-3 {
    animation-delay: 0.4s;
}

@keyframes tierStarTwinkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 1;
    }
}

.tier-upgrade-btn {
    margin-top: 20px;
    padding: 14px 60px;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.tier-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.tier-upgrade-btn:active {
    transform: translateY(0);
}
