@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

.amvs-dashboard, .amvs-form-wrap {
    --amvs-paper:      #FBF6EC;
    --amvs-paper-2:     #F3EBDA;
    --amvs-white:       #FFFFFF;
    --amvs-ink:         #241812;
    --amvs-ink-soft:    #6B5C4E;
    --amvs-tan:         #8A5A2B;
    --amvs-tan-deep:    #5C3820;
    --amvs-moss:        #4A6B4F;
    --amvs-moss-bg:     #E9F0E7;
    --amvs-oxblood:     #8B3A3A;
    --amvs-oxblood-bg:  #F5E9E5;
    --amvs-brass:       #C9A227;
    --amvs-border:      #E7DCC4;
    --amvs-radius:      14px;
    --amvs-shadow:      0 1px 2px rgba(36,24,18,0.04), 0 6px 20px rgba(36,24,18,0.06);

    font-family: 'Inter', sans-serif;
    color: var(--amvs-ink);
    background: var(--amvs-paper);
    border: 1px solid var(--amvs-border);
    border-radius: 18px;
    padding: 36px;
    max-width: 980px;
    margin: 24px auto;
    box-shadow: var(--amvs-shadow);
}

.amvs-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* --- Header --- */
.amvs-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.amvs-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amvs-logout-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    color: var(--amvs-oxblood); background: var(--amvs-oxblood-bg);
    padding: 6px 14px; border-radius: 20px; transition: background 0.15s ease, color 0.15s ease;
}
.amvs-logout-btn:hover { background: var(--amvs-oxblood) !important; color: #fff !important; }
.amvs-logout-btn .amvs-icon { width: 13px; height: 13px; transform: rotate(90deg); }
.amvs-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--amvs-tan); display: block; margin-bottom: 4px;
}
.amvs-dashboard h2, .amvs-dashboard h3, .amvs-form-wrap h2 {
    font-family: 'Fraunces', serif;
    color: var(--amvs-tan-deep);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.amvs-dashboard h2 { font-size: 30px; margin: 0; }
.amvs-dashboard .amvs-subtitle, .amvs-form-wrap .amvs-subtitle { color: var(--amvs-ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

.amvs-dashboard--gate { text-align: center; padding: 60px 36px; }
.amvs-gate-icon {
    width: 56px; height: 56px; border-radius: 50%; background: var(--amvs-paper-2);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--amvs-tan);
}
.amvs-gate-icon .amvs-icon { width: 26px; height: 26px; }

/* --- Signature stitch divider --- */
.amvs-stitch {
    border: none;
    border-top: 2px dashed var(--amvs-brass);
    opacity: 0.5;
    margin: 26px 0;
}

/* --- Stat card grid --- */
.amvs-stat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px;
    perspective: 800px;
}
.amvs-stat-grid--secondary { grid-template-columns: repeat(4, 1fr); }
.amvs-stat-card {
    background: var(--amvs-white); border: 1px solid var(--amvs-border);
    border-radius: 12px; padding: 18px; box-shadow: var(--amvs-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: amvsRiseIn 0.5s ease backwards;
    transform-style: preserve-3d;
}
.amvs-stat-card:hover {
    transform: translateY(-4px) rotateX(4deg) rotateY(-2deg);
    box-shadow: 0 14px 30px rgba(36,24,18,0.14);
}
.amvs-stat-grid .amvs-stat-card:nth-child(1) { animation-delay: 0.02s; }
.amvs-stat-grid .amvs-stat-card:nth-child(2) { animation-delay: 0.10s; }
.amvs-stat-grid .amvs-stat-card:nth-child(3) { animation-delay: 0.18s; }
.amvs-stat-grid .amvs-stat-card:nth-child(4) { animation-delay: 0.26s; }
@keyframes amvsRiseIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.amvs-stat-card--primary {
    background: linear-gradient(150deg, var(--amvs-tan-deep), #46291A, var(--amvs-tan-deep));
    background-size: 200% 200%;
    animation: amvsGlow 6s ease infinite;
    border-color: transparent; color: #fff;
    position: relative; overflow: hidden;
}
.amvs-stat-card--primary::after {
    content: '';
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
@keyframes amvsGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.amvs-stat-icon {
    width: 34px; height: 34px; border-radius: 9px; background: var(--amvs-paper-2);
    display: flex; align-items: center; justify-content: center; color: var(--amvs-tan); margin-bottom: 12px;
}
.amvs-stat-card--primary .amvs-stat-icon { background: rgba(255,255,255,0.12); color: #F0DFB8; }
.amvs-stat-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--amvs-ink-soft); margin-bottom: 4px;
}
.amvs-stat-card--primary .amvs-stat-label { color: #E8D9BE; }
.amvs-stat-value { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 600; }

/* --- Tabbed navigation (pure CSS, no JS required) --- */
.amvs-tabset { position: relative; }
.amvs-tab-radio { position: absolute; opacity: 0; pointer-events: none; }

.amvs-tabs {
    display: flex; gap: 4px; margin-bottom: 0; flex-wrap: wrap;
    border-bottom: 2px solid var(--amvs-paper-2);
}
.amvs-tab-btn {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
    background: transparent; color: var(--amvs-ink-soft); cursor: pointer;
    border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 16px; transition: color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}
.amvs-tab-btn:hover { color: var(--amvs-tan-deep); }

.amvs-tab-panel { display: none; padding-top: 24px; animation: amvsFadeIn 0.2s ease; }
@keyframes amvsFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

#amvs-tab-products:checked ~ .amvs-tabs label[for="amvs-tab-products"],
#amvs-tab-add:checked ~ .amvs-tabs label[for="amvs-tab-add"],
#amvs-tab-orders:checked ~ .amvs-tabs label[for="amvs-tab-orders"],
#amvs-tab-withdraw:checked ~ .amvs-tabs label[for="amvs-tab-withdraw"],
#amvs-tab-history:checked ~ .amvs-tabs label[for="amvs-tab-history"],
#amvs-tab-profile:checked ~ .amvs-tabs label[for="amvs-tab-profile"] {
    color: var(--amvs-tan-deep); border-bottom-color: var(--amvs-brass);
}

#amvs-tab-products:checked ~ #amvs-panel-products,
#amvs-tab-add:checked ~ #amvs-panel-add,
#amvs-tab-orders:checked ~ #amvs-panel-orders,
#amvs-tab-withdraw:checked ~ #amvs-panel-withdraw,
#amvs-tab-history:checked ~ #amvs-panel-history,
#amvs-tab-profile:checked ~ #amvs-panel-profile {
    display: block;
}

.amvs-section-heading { font-size: 16px; margin-bottom: 12px; }

/* --- Forms --- */
.amvs-form p { margin-bottom: 16px; }
.amvs-form label, .amvs-form-wrap label {
    display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 6px; color: var(--amvs-ink-soft);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.amvs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.amvs-form-full { grid-column: 1 / -1; }
.amvs-form-header { margin-bottom: 6px; }

.amvs-form input, .amvs-form textarea, .amvs-form select,
.amvs-dashboard input, .amvs-dashboard textarea, .amvs-dashboard select {
    width: 100%; max-width: 420px; padding: 11px 13px;
    border: 1px solid var(--amvs-border); border-radius: 8px;
    background: var(--amvs-white); font-family: 'Inter', sans-serif; font-size: 14px;
    color: var(--amvs-ink); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.amvs-form-grid input { max-width: none; }
.amvs-form input:focus, .amvs-form textarea:focus, .amvs-form select:focus,
.amvs-dashboard input:focus, .amvs-dashboard textarea:focus, .amvs-dashboard select:focus {
    outline: none; border-color: var(--amvs-brass); box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}

.amvs-form button, .amvs-dashboard button {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Inter', sans-serif;
    background: var(--amvs-tan-deep);
    color: #fff; border: none; padding: 12px 24px;
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.amvs-form button:hover, .amvs-dashboard button:hover { background: #3F2513 !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(92,56,32,0.28); }
.amvs-form button:active, .amvs-dashboard button:active { transform: scale(0.98) translateY(0); box-shadow: none; }

.amvs-btn-ghost {
    background: transparent !important; color: var(--amvs-oxblood) !important;
    border: 1px solid var(--amvs-oxblood-bg) !important; padding: 8px 14px !important;
    font-size: 12.5px !important; width: 100%; justify-content: center;
}
.amvs-btn-ghost:hover { background: var(--amvs-oxblood-bg) !important; color: var(--amvs-oxblood) !important; }

/* --- Notices --- */
.amvs-notice {
    font-family: 'Inter', sans-serif;
    background: var(--amvs-paper-2);
    border-left: 4px solid var(--amvs-brass);
    color: var(--amvs-ink);
    padding: 16px 20px; margin: 15px 0; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6;
}
.amvs-notice a { color: var(--amvs-tan-deep); font-weight: 600; }
.amvs-notice-error { border-left-color: var(--amvs-oxblood); background: var(--amvs-oxblood-bg); }

/* --- Status badges --- */
.amvs-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 5px 12px; border-radius: 20px;
}
.amvs-badge .amvs-icon { width: 12px; height: 12px; }
.amvs-badge.pending  { background: #FBF0DC; color: #8A5A2B; animation: amvsPulse 2s ease-in-out infinite; }
.amvs-badge.approved, .amvs-badge.paid { background: var(--amvs-moss-bg); color: var(--amvs-moss); }
.amvs-badge.rejected { background: var(--amvs-oxblood-bg); color: var(--amvs-oxblood); }
@keyframes amvsPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(138,90,43,0.25); }
    50% { box-shadow: 0 0 0 5px rgba(138,90,43,0); }
}

/* --- Product card grid --- */
.amvs-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
    perspective: 900px;
}
.amvs-product-card {
    background: var(--amvs-white); border: 1px solid var(--amvs-border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--amvs-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: amvsRiseIn 0.4s ease backwards;
}
.amvs-product-card:hover { transform: translateY(-6px) rotateX(3deg) scale(1.02); box-shadow: 0 16px 32px rgba(36,24,18,0.16); }
.amvs-product-thumb {
    width: 100%; aspect-ratio: 1 / 1; background-size: cover; background-position: center;
    background-color: var(--amvs-paper-2); transition: transform 0.3s ease;
}
.amvs-product-card:hover .amvs-product-thumb { transform: scale(1.06); }
.amvs-product-body { padding: 14px; }
.amvs-product-name {
    font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}
.amvs-product-price {
    font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--amvs-moss);
    font-size: 15px; margin-bottom: 10px;
}

/* --- Tables --- */
.amvs-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 14px; }
.amvs-table th {
    text-align: left; font-family: 'Inter', sans-serif; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--amvs-ink-soft);
    padding: 10px; border-bottom: 2px solid var(--amvs-paper-2);
}
.amvs-table td { padding: 12px 10px; border-bottom: 1px solid var(--amvs-paper-2); }
.amvs-table td.amvs-amount, .amvs-table .amvs-amount { font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.amvs-table tr:hover td { background: var(--amvs-paper-2); }

.amvs-empty {
    text-align: center; padding: 48px 20px; color: var(--amvs-ink-soft);
    font-size: 14px; background: var(--amvs-paper-2); border-radius: 12px;
}
.amvs-empty .amvs-icon { width: 32px; height: 32px; margin-bottom: 10px; opacity: 0.5; }
.amvs-empty p { font-weight: 600; color: var(--amvs-ink); margin: 6px 0 4px; }
.amvs-empty-hint { font-size: 13px; }

/* --- Inline add-product row --- */
.amvs-inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.amvs-inline-form select { max-width: 280px; }
.amvs-inline-form input[type="number"] { max-width: 160px; }

/* --- Multi-select product badge grid --- */
.amvs-product-select-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px;
}
.amvs-select-card {
    position: relative; display: block; cursor: pointer;
    background: var(--amvs-white); border: 2px solid var(--amvs-border); border-radius: 12px;
    overflow: hidden; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--amvs-shadow);
}
.amvs-select-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(36,24,18,0.12); }
.amvs-select-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.amvs-select-check {
    position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 2px solid var(--amvs-border); color: transparent;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
    transition: all 0.15s ease; z-index: 2;
}
.amvs-select-checkbox:checked ~ .amvs-select-check {
    background: var(--amvs-moss); border-color: var(--amvs-moss); color: #fff;
}
.amvs-select-checkbox:checked ~ .amvs-select-thumb,
.amvs-select-card:has(.amvs-select-checkbox:checked) {
    border-color: var(--amvs-moss);
}
.amvs-select-card:has(.amvs-select-checkbox:checked) {
    box-shadow: 0 0 0 3px rgba(74,107,79,0.15), var(--amvs-shadow);
}
.amvs-select-thumb {
    width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center;
    background-color: var(--amvs-paper-2);
}
.amvs-select-body { padding: 12px; }
.amvs-select-name {
    font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.amvs-select-cost { font-size: 12px; color: var(--amvs-ink-soft); margin-bottom: 8px; }
.amvs-select-price {
    width: 100% !important; max-width: none !important; padding: 8px 10px !important; font-size: 13px !important;
}

.amvs-select-footer {
    position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
    background: var(--amvs-paper); border-top: 2px dashed var(--amvs-brass); padding-top: 14px; margin-top: 6px;
}
.amvs-selected-count { font-size: 13px; font-weight: 600; color: var(--amvs-ink-soft); }
.amvs-selected-count.has-selection { color: var(--amvs-moss); }

@media (max-width: 780px) {
    .amvs-product-select-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .amvs-product-select-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .amvs-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .amvs-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .amvs-dashboard, .amvs-form-wrap { padding: 20px; margin: 10px; }
    .amvs-stat-grid, .amvs-stat-grid--secondary { grid-template-columns: 1fr; }
    .amvs-tabs { overflow-x: auto; }
    .amvs-header { flex-direction: column; }
}

/* =========================================================
   3D Animated ATM / Wallet Card
   ========================================================= */
.amvs-atm-wrap { display: flex; flex-direction: column; align-items: center; margin: 10px 0 30px; }
.amvs-atm-card {
    position: relative;
    width: 100%; max-width: 400px; aspect-ratio: 1.586 / 1;
    perspective: 1200px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: amvsCardIntro 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
@keyframes amvsCardIntro {
    from { opacity: 0; transform: translateY(24px) rotateX(-12deg) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
.amvs-atm-card.is-flipped { transform: rotateY(180deg); }

.amvs-atm-face {
    position: absolute; inset: 0; border-radius: 18px;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(36,24,18,0.28), 0 2px 6px rgba(36,24,18,0.2);
    overflow: hidden;
    padding: 22px 26px;
    color: #FBF6EC;
}
.amvs-atm-front {
    background:
        radial-gradient(circle at 85% 15%, rgba(201,162,39,0.35), transparent 55%),
        linear-gradient(135deg, #5C3820 0%, #3A2313 55%, #241812 100%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.amvs-atm-back {
    background: linear-gradient(135deg, #241812, #3A2313);
    transform: rotateY(180deg);
}

.amvs-atm-shine {
    position: absolute; top: -60%; left: -60%; width: 60%; height: 220%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
    transform: rotate(20deg);
    animation: amvsShine 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes amvsShine {
    0%   { left: -60%; }
    45%  { left: 130%; }
    100% { left: 130%; }
}

.amvs-atm-top { display: flex; align-items: center; justify-content: space-between; }
.amvs-atm-chip {
    width: 40px; height: 30px; border-radius: 6px;
    background: linear-gradient(135deg, #E8D9BE, #C9A227);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
    position: relative;
}
.amvs-atm-chip::before, .amvs-atm-chip::after {
    content: ''; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(0,0,0,0.2);
}
.amvs-atm-chip::before { top: 10px; }
.amvs-atm-chip::after { top: 20px; }

.amvs-atm-avatar {
    width: 40px; height: 40px; border-radius: 50%; background-size: cover; background-position: center;
    background-color: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px;
}
.amvs-atm-avatar--placeholder { color: #F0DFB8; }

.amvs-atm-balance-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: #E8D9BE; margin-top: 14px;
}
.amvs-atm-balance {
    font-family: 'IBM Plex Mono', monospace; font-size: 32px; font-weight: 600; letter-spacing: 0.01em;
    margin-top: 2px;
}
.amvs-atm-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.amvs-atm-id-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #C9A97A; margin-bottom: 3px; }
.amvs-atm-id-value { font-size: 13px; font-weight: 600; }
.amvs-atm-mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.05em; }

.amvs-atm-stripe { position: absolute; top: 26px; left: 0; right: 0; height: 42px; background: #150E09; }
.amvs-atm-back-body { position: absolute; top: 86px; left: 26px; right: 26px; bottom: 20px; }
.amvs-atm-back-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.amvs-atm-back-row span { color: #C9A97A; }
.amvs-atm-back-row strong { font-weight: 600; text-align: right; }
.amvs-atm-tap-hint { position: absolute; bottom: -4px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: #C9A97A; opacity: 0.6; }

.amvs-atm-hint { font-size: 12px; color: var(--amvs-ink-soft); margin-top: 12px; }

/* --- Profile picture upload --- */
.amvs-profile-section { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.amvs-profile-preview {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--amvs-brass); box-shadow: var(--amvs-shadow);
}
.amvs-profile-preview--empty {
    display: flex; align-items: center; justify-content: center;
    background: var(--amvs-tan-deep); color: #F0DFB8; font-family: 'Fraunces', serif; font-size: 34px; font-weight: 700;
}
.amvs-profile-form { display: flex; flex-direction: column; gap: 10px; }
.amvs-profile-form input[type="file"] { max-width: 280px; }

/* --- Record a sale box inside Orders tab --- */
.amvs-record-sale-box { background: var(--amvs-paper-2); border-radius: 12px; padding: 18px 20px; margin-bottom: 6px; }
.amvs-record-sale-box .amvs-section-heading { margin-top: 0; }

.amvs-order-actions { display: flex; gap: 6px; white-space: nowrap; }
.amvs-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 7px; background: var(--amvs-paper-2);
    color: var(--amvs-tan-deep); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.amvs-icon-btn:hover { background: var(--amvs-tan-deep) !important; color: #fff !important; transform: translateY(-1px); }

/* =========================================================
   Auth card (Registration + Login) — matches reference design
   ========================================================= */
.amvs-auth-card {
    --auth-orange: #F4681E;
    --auth-orange-dark: #D9550F;
    --auth-bg: #F5F5F5;
    --auth-border: #E5E5E5;
    --auth-ink: #1A1A1A;
    --auth-ink-soft: #6B6B6B;

    font-family: 'Inter', sans-serif;
    background: #fff !important;
    color: var(--auth-ink) !important;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    max-width: 520px;
    margin: 30px auto;
    padding: 40px 36px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.06);
}
.amvs-auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.amvs-auth-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(150deg, var(--auth-orange), var(--auth-orange-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(244,104,30,0.3);
}
.amvs-auth-brand { font-family: 'Fraunces', serif; font-weight: 700; font-size: 24px; color: var(--auth-ink) !important; }
.amvs-auth-subtitle { text-align: center; color: var(--auth-ink-soft) !important; font-size: 14px; margin-bottom: 26px; }

.amvs-auth-error {
    background: #FDECEC !important; color: #C0392B !important; border-left: 4px solid #C0392B;
    padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 18px;
}

.amvs-auth-form p { margin-bottom: 16px; }
.amvs-auth-form label {
    display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--auth-ink) !important;
}
.amvs-auth-form input[type="text"],
.amvs-auth-form input[type="email"],
.amvs-auth-form input[type="password"],
.amvs-auth-form input[type="number"],
.amvs-auth-form select,
.amvs-auth-form textarea {
    width: 100%; max-width: none; padding: 12px 14px;
    background: var(--auth-bg); border: 1px solid var(--auth-border); border-radius: 9px;
    font-family: 'Inter', sans-serif; font-size: 14px; color: var(--auth-ink) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.4; box-sizing: border-box;
}
.amvs-auth-form select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    height: 46px; padding-top: 0; padding-bottom: 0; padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 13px;
}
.amvs-auth-form select::-ms-expand { display: none; }
.amvs-auth-form textarea { resize: vertical; }
.amvs-auth-form input:focus, .amvs-auth-form select:focus, .amvs-auth-form textarea:focus {
    outline: none; border-color: var(--auth-orange); box-shadow: 0 0 0 3px rgba(244,104,30,0.15); background: #fff;
}
.amvs-auth-form select:disabled { color: var(--auth-ink-soft) !important; cursor: not-allowed; }

.amvs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.amvs-required { color: var(--auth-orange) !important; }
.amvs-field-hint { display: block; font-size: 12px; color: var(--auth-ink-soft) !important; margin-top: 5px; }

/* Upload box */
.amvs-upload-input { display: none; }
.amvs-upload-box {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px dashed var(--auth-border); border-radius: 10px; background: var(--auth-bg);
    padding: 28px 16px; cursor: pointer; color: var(--auth-ink-soft) !important; transition: border-color 0.15s ease, background 0.15s ease;
}
.amvs-upload-box:hover { border-color: var(--auth-orange); background: #FBEEE6; }
.amvs-upload-title { font-size: 14px; color: var(--auth-ink) !important; font-weight: 500; margin-top: 6px; }
.amvs-upload-hint { font-size: 12px; color: var(--auth-ink-soft) !important; }
.amvs-upload-filename { display: block; font-size: 12.5px; color: var(--auth-orange-dark) !important; margin-top: 6px; font-weight: 600; }

/* Checkbox / remember me */
.amvs-checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--auth-ink) !important; cursor: pointer; }
.amvs-checkbox-label span { color: var(--auth-ink) !important; }
.amvs-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--auth-orange); cursor: pointer; flex-shrink: 0;
}
.amvs-terms-row { margin-bottom: 18px; align-items: flex-start; }
.amvs-terms-row a { color: var(--auth-orange) !important; font-weight: 600; text-decoration: none; }
.amvs-auth-remember { margin-bottom: 20px !important; }

.amvs-info-banner {
    background: #FEF6E7 !important; color: #92650F !important; border: 1px solid #F6E3B4;
    border-radius: 9px; padding: 12px 16px; font-size: 13px; margin-bottom: 20px; line-height: 1.5;
}

.amvs-auth-form button[type="submit"] {
    width: 100%; background: var(--auth-orange) !important; color: #fff !important; border: none;
    padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.amvs-auth-form button[type="submit"]:hover { background: var(--auth-orange-dark) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(244,104,30,0.3); transform: translateY(-1px); }
.amvs-auth-form button[type="submit"]:active { transform: scale(0.99); }

.amvs-auth-footer { text-align: center; font-size: 13.5px; color: var(--auth-ink-soft) !important; margin-top: 22px; }
.amvs-auth-footer a { color: var(--auth-orange) !important; font-weight: 700; text-decoration: none; }
.amvs-auth-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .amvs-auth-card { padding: 28px 22px; margin: 14px; }
    .amvs-form-grid { grid-template-columns: 1fr; }
}

/* ---- Pay Now (Orders tab) ---- */
.amvs-pay-row td { border-bottom: 1px solid var(--amvs-paper-2); padding: 0 10px 14px !important; background: transparent !important; }
.amvs-pay-box {
    background: var(--amvs-moss-bg); border: 1px solid var(--amvs-moss); border-radius: 12px;
    padding: 12px 16px; margin-top: -6px;
}
.amvs-pay-box summary {
    cursor: pointer; font-weight: 700; color: var(--amvs-moss); font-size: 13.5px; list-style: none; outline: none;
}
.amvs-pay-box summary::-webkit-details-marker { display: none; }
.amvs-pay-form { display: flex; align-items: flex-end; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.amvs-pay-form label {
    display: flex; flex-direction: column; gap: 6px; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--amvs-ink-soft); font-weight: 600; flex: 1; min-width: 220px;
}
.amvs-pay-form input {
    padding: 10px 12px; border: 1px solid var(--amvs-border); border-radius: 8px; background: var(--amvs-white);
    font-size: 13.5px; color: var(--amvs-ink); font-family: inherit; text-transform: none; letter-spacing: normal; font-weight: 400;
}
