/* Modern Clean UI for UltimatePOS Installer, Login & Register */
:root {
    --upos-primary: #4f46e5;
    --upos-primary-hover: #4338ca;
    --upos-blue: #2563eb;
    --upos-surface: #ffffff;
    --upos-bg-soft: #f8fafc;
    --upos-border: #e2e8f0;
    --upos-text: #0f172a;
    --upos-muted: #64748b;
    --upos-success-bg: #ecfdf5;
    --upos-success-fg: #047857;
    --upos-danger-bg: #fef2f2;
    --upos-danger-fg: #b91c1c;
}

body.upos-modern-install,
body.upos-modern-auth {
    font-family: 'Inter', 'Kantumruy Pro', 'Noto Sans Khmer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--upos-text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Light clean studio background for Installer */
body.upos-modern-install {
    background:
        radial-gradient(at 15% 15%, rgba(79, 70, 229, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 10%, rgba(14, 165, 233, 0.08) 0px, transparent 45%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    padding: 28px 0 48px;
}

/* Modern slate-indigo mesh backdrop for Auth pages */
html.upos-auth-html {
    min-height: 100%;
    background:
        radial-gradient(circle at 16% 18%, rgba(59, 130, 246, 0.28) 0%, transparent 42%),
        radial-gradient(circle at 84% 16%, rgba(16, 185, 129, 0.20) 0%, transparent 40%),
        radial-gradient(circle at 50% 92%, rgba(99, 102, 241, 0.28) 0%, transparent 48%),
        linear-gradient(145deg, #070d19 0%, #0f172a 48%, #172554 100%);
    background-attachment: fixed;
}

body.upos-modern-auth {
    background: transparent !important;
}

/* Header / Brand Pill */
.upos-brand-header {
    text-align: center;
    margin-bottom: 22px;
}

.upos-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(79, 70, 229, 0.10);
    color: var(--upos-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.upos-brand-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--upos-text);
}

.upos-brand-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--upos-muted);
}

/* Elevated Clean Card */
.upos-card,
.upos-modern-install .box.box-primary {
    background: var(--upos-surface) !important;
    border: 1px solid var(--upos-border) !important;
    border-top: 1px solid var(--upos-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden;
}

.upos-modern-install .box.box-primary .box-body {
    padding: 28px 30px;
}

/* Auth Elevated Card */
.upos-auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.45), 0 0 0 1px rgba(15, 23, 42, 0.05);
    padding: 28px;
}

/* Step Navigation Pills in Installer */
.upos-modern-install .nav-pills.upos-step-nav {
    display: flex;
    gap: 8px;
    background: #ffffff;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--upos-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

.upos-modern-install .nav-pills.upos-step-nav > li {
    flex: 1;
    display: block;
    width: auto !important;
}

.upos-modern-install .nav-pills.upos-step-nav > li > a {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--upos-muted);
    background: transparent;
    transition: all 0.15s ease;
    pointer-events: none;
}

.upos-modern-install .nav-pills.upos-step-nav > li.active > a,
.upos-modern-install .nav-pills.upos-step-nav > li.active > a:hover,
.upos-modern-install .nav-pills.upos-step-nav > li.active > a:focus {
    background: linear-gradient(135deg, var(--upos-primary), var(--upos-blue));
    color: #ffffff;
    box-shadow: 0 6px 14px -4px rgba(79, 70, 229, 0.45);
}

/* Section Headers */
.upos-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--upos-text);
    padding-bottom: 10px;
    margin: 18px 0 14px;
    border-bottom: 1px solid var(--upos-border);
}

.upos-section-title:first-of-type {
    margin-top: 4px;
}

.upos-section-title small {
    font-weight: 500;
    font-size: 12px;
    color: var(--upos-muted);
}

.upos-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.10);
    color: var(--upos-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* Form Controls */
.upos-modern-install .form-control,
.upos-modern-auth .form-control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--upos-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.upos-modern-install select.form-control,
.upos-modern-auth select.form-control {
    padding-top: 6px;
    padding-bottom: 6px;
}

.upos-modern-install .form-control:focus,
.upos-modern-auth .form-control:focus {
    border-color: var(--upos-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

.upos-modern-install label,
.upos-modern-auth label {
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.upos-modern-auth .input-group-addon {
    border-radius: 10px 0 0 10px;
    border: 1px solid #cbd5e1;
    border-right: 0;
    background: #f8fafc;
    color: var(--upos-muted);
}

.upos-modern-auth .input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* Primary & Secondary Buttons */
.upos-modern-install .btn-primary,
.upos-btn-primary {
    background: linear-gradient(135deg, var(--upos-primary), var(--upos-blue)) !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.50);
    transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.upos-modern-install .btn-primary:hover,
.upos-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.55);
}

.upos-modern-install .btn-default,
.upos-btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #334155 !important;
}

.upos-modern-install .btn-default:hover,
.upos-btn-secondary:hover {
    background: #f1f5f9 !important;
}

/* Checkup Table */
.upos-check-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--upos-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.upos-check-table tr td {
    padding: 10px 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
    font-size: 14px;
}

.upos-check-table tr:first-child td {
    border-top: none !important;
}

.upos-status-ok {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--upos-success-bg);
    color: var(--upos-success-fg);
    font-size: 12px;
    font-weight: 600;
}

.upos-status-fail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--upos-danger-bg);
    color: var(--upos-danger-fg);
    font-size: 12px;
    font-weight: 600;
}

/* Auth Top Nav Pills */
.upos-auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    margin-bottom: 18px;
}

.upos-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.upos-nav-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}

/* Business Register Wizard Styling */
.upos-modern-auth .wizard > .steps ul li a {
    border-radius: 10px;
    font-weight: 600;
}

.upos-modern-auth .wizard > .content {
    background: #ffffff !important;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
}

.upos-modern-auth .wizard > .actions a {
    border-radius: 10px;
    font-weight: 600;
}

/* Alerts */
.upos-modern-install .alert,
.upos-modern-auth .alert {
    border-radius: 12px;
    border-width: 1px;
}

@media (max-width: 640px) {
    .upos-modern-install .box.box-primary .box-body,
    .upos-auth-card {
        padding: 22px 18px;
    }

    .upos-modern-install .nav-pills.upos-step-nav > li > a {
        font-size: 12px;
        padding: 8px 6px;
    }
}

/* ==========================================================================
   Executive Centered Login & Owner Security Gate (v690)
   ========================================================================== */
.upos-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 14px 20px 24px !important;
}

.upos-auth-topbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 8px 4px;
    gap: 12px;
}

.upos-auth-topbar-left,
.upos-auth-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upos-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 5px 14px 5px 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.upos-auth-brand:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.upos-auth-brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.upos-auth-brand-badge.has-custom-logo {
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.upos-auth-brand-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.upos-auth-brand-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.upos-auth-brand-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.upos-auth-brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24);
}

/* 1-Click Khmer / EN Segmented Glass Pill */
.upos-lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 2px;
}

.upos-lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78) !important;
    text-decoration: none !important;
    transition: all 0.16s ease;
}

.upos-lang-opt:hover {
    color: #ffffff !important;
}

.upos-lang-opt.is-active {
    background: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.25);
}

/* Centered Flex Stage */
.upos-auth-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 4px 20px;
}

.upos-auth-card--login {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 34px 32px 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow:
        0 32px 70px -16px rgba(2, 6, 23, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.upos-auth-card--login::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 52%, #6366f1 100%);
}

.upos-login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.upos-shop-logo-frame {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.upos-shop-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.upos-shop-icon-frame {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.upos-login-title {
    margin: 0 !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.02em;
    color: #0f172a !important;
}

.upos-login-subtitle {
    margin: 7px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.upos-login-shop-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
    font-size: 12.5px;
    border: 1px solid #e0e7ff;
}

.upos-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upos-field-group {
    display: flex;
    flex-direction: column;
}

.upos-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.upos-field-label {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.upos-forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #4f46e5 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.upos-forgot-link:hover {
    color: #2563eb !important;
    text-decoration: underline !important;
}

.upos-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.upos-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.15s ease;
}

.upos-auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px 10px 41px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.upos-auth-input--pwd {
    padding-right: 44px;
}

.upos-auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.upos-auth-input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.upos-input-wrap:focus-within .upos-input-icon {
    color: #3b82f6;
}

.upos-field-group.has-error .upos-auth-input {
    border-color: #ef4444;
    background: #fef2f2;
}

.upos-field-error {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.upos-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.upos-eye-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.upos-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2px;
}

.upos-remember-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    user-select: none;
}

.upos-remember-check {
    width: 17px;
    height: 17px;
    margin: 0 !important;
    accent-color: #2563eb;
    cursor: pointer;
}

.upos-login-submit {
    width: 100%;
    height: 48px;
    margin-top: 2px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.58);
    transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.upos-login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -8px rgba(37, 99, 235, 0.66);
    filter: brightness(1.03);
}

.upos-login-submit:active {
    transform: translateY(0);
}

.upos-login-card-footer {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.upos-new-shop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.upos-new-shop-link:hover {
    background: #f8fafc;
    color: #1e293b !important;
}

.upos-auth-footer-note {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.72);
    text-align: center;
}

/* POS Vendor Contact Card below Login */
.upos-vendor-contact {
    margin-top: 18px;
    width: 100%;
    max-width: 430px;
    padding: 13px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    text-align: center;
}

.upos-vendor-contact-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.92);
    letter-spacing: 0.01em;
}

.upos-vendor-contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.upos-vendor-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease;
}

.upos-vendor-pill:hover {
    transform: translateY(-1px);
}

.upos-vendor-pill--phone {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.36);
    color: #ecfdf5 !important;
}

.upos-vendor-pill--phone i {
    color: #34d399;
    font-size: 11.5px;
}

.upos-vendor-pill--phone:hover {
    background: rgba(16, 185, 129, 0.26);
    color: #ffffff !important;
}

.upos-vendor-pill--tg {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #e0f2fe !important;
}

.upos-vendor-pill--tg i {
    color: #38bdf8;
    font-size: 13px;
}

.upos-vendor-pill--tg:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #ffffff !important;
}

/* Security Gate Extras */
.upos-gate-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.upos-gate-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    font-size: 12.5px;
}

.upos-gate-meta-label {
    color: #64748b;
}

.upos-gate-meta-val {
    color: #0f172a;
    margin-left: 3px;
}

.upos-gate-ok-banner {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upos-gate-token-section {
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upos-gate-id-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
}

.upos-gate-id-caption {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.upos-gate-id-code {
    background: transparent !important;
    color: #34d399 !important;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 0 !important;
}

.upos-gate-copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.upos-gate-copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.upos-gate-hint {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
}

@media (max-width: 640px) {
    .upos-auth-shell {
        padding: 10px 12px 20px !important;
    }

    .upos-auth-card--login {
        padding: 26px 20px 22px;
        border-radius: 20px;
    }

    .upos-login-title {
        font-size: 20px !important;
    }

    .upos-auth-brand-name {
        font-size: 14px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .upos-gate-meta-bar,
    .upos-gate-id-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
