* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Arial, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at top left,
            rgba(225, 197, 100, 0.12),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(255, 255, 255, 0.05),
            transparent 40%),
        #080808;
    min-height: 100vh;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 110px;
}

h1,
h2 {
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2rem;
}

form {
    display: grid;
    gap: 12px;
}

input,
textarea,
button {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    font-size: 16px;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    outline: none;
    line-height: 1.4;
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select { width:100%; min-height:52px; padding:12px; border-radius:16px; background:#202020; color:#fff; border:1px solid rgba(255,255,255,.15); font-size:16px; }
.success-banner { background:rgba(58,190,112,.18); border:1px solid rgba(58,190,112,.55); padding:14px; border-radius:16px; }
.quick-actions,.filter-tabs,.action-row { display:flex; gap:10px; overflow:auto; margin:0 0 16px; }
.quick-actions a,.filter-tabs a,.primary-link { display:block; padding:13px 16px; border-radius:16px; background:rgba(225,197,100,.16); text-decoration:none; white-space:nowrap; }
.flash-sale { background:linear-gradient(135deg,rgba(225,197,100,.22),rgba(255,140,30,.13)); border-color:rgba(225,197,100,.7); }
.flash-sale-dashboard{background:linear-gradient(135deg,rgba(161,79,255,.2),rgba(225,197,100,.1));border-color:rgba(190,125,255,.65);box-shadow:0 0 28px rgba(143,72,220,.14)}.flash-sale-dashboard .card-title{align-items:center}.flash-sale-dashboard .card-title h2{margin-bottom:0}.flash-sale-dashboard-item{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,auto);gap:10px;align-items:center;margin-top:12px;padding:14px 16px;border:1px solid rgba(205,166,255,.3);border-radius:18px;background:rgba(112,49,180,.2)}.flash-sale-dashboard-item span{color:rgba(255,255,255,.75);font-size:14px}.empty-state{color:rgba(255,255,255,.65)}
.badge { display:inline-block; border-radius:999px; padding:5px 9px; background:#e1c564; color:#111; font-weight:800; font-size:12px; text-transform:uppercase; }
.card-title { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }.action-row form{flex:1}.action-row button{min-height:50px}.secondary{background:rgba(255,255,255,.12);color:#fff;box-shadow:none}.danger-button{background:rgba(255,85,85,.2);color:#fff;box-shadow:none}.inline-panel{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.simple-nav a{min-width:auto;height:50px}.simple-nav .scan-btn{padding-left:18px;padding-right:18px}.card-link{display:block;color:#fff;text-decoration:none}.hint,.eyebrow{color:rgba(255,255,255,.65);font-size:14px}.quantity-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check-row{display:flex;align-items:center;gap:10px}.check-row input{width:24px;height:24px;min-height:0}.delivery-line details{margin-top:12px}.delivery-line summary,details summary{cursor:pointer;padding:12px 0;color:#e1c564}.confirm-button{margin-top:14px;background:#62d993}.status-confirmed{background:#62d993}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.document-capture{margin:4px 0}.document-capture h2{margin-bottom:6px}.document-capture p{color:rgba(255,255,255,.65)}.capture-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.document-preview{display:block;width:100%;max-height:360px;object-fit:contain;margin-top:14px;border-radius:16px;background:#111}.document-preview[hidden]{display:none}.document-capture .hint{margin:10px 0 0}
.batch-status-form{margin-top:14px}.batch-status-form .secondary{border-color:rgba(225,197,100,.45);color:#e1c564}
.crop-panel{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}.crop-panel[hidden],#croppedPanel[hidden]{display:none}.crop-stage{width:100%;height:min(58vh,620px);margin:12px 0 14px;background:#050505;border-radius:16px;overflow:hidden}.crop-stage img{display:block;max-width:100%}.crop-panel h3{margin:0 0 6px}.cropper-view-box,.cropper-face{border-radius:4px}.cropper-line{background-color:#e1c564}.cropper-point{background-color:#e1c564;width:12px;height:12px;opacity:1}#cropAgainButton{margin-top:10px}
@media(max-width:520px){.simple-nav{width:calc(100% - 16px);gap:2px;padding:6px}.simple-nav a{font-size:11px;padding:6px}.container{padding:16px;padding-bottom:95px}.action-row{flex-direction:column}.quick-actions{display:grid;grid-template-columns:1fr 1fr}.quick-actions a:last-child{grid-column:1/-1}.capture-actions{grid-template-columns:1fr}}
@media(max-width:700px){.flash-sale-dashboard-item{grid-template-columns:1fr 1fr}.flash-sale-dashboard-item .dashboard-product-link{grid-column:1/-1}.flash-sale-dashboard-item span:last-child{text-align:right}}

input {
    height: 52px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(225, 197, 100, 0.6);
    box-shadow: 0 0 20px rgba(225, 197, 100, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button {
    background: rgba(225, 197, 100, 0.9);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 10px 30px rgba(225, 197, 100, 0.18);
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(225, 197, 100, 0.25);
}

button:active {
    transform: scale(0.98);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(15px + env(safe-area-inset-bottom));
    transform: translateX(-50%);

    width: max-content;
    max-width: calc(100% - 30px);

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    z-index: 9999;
}

.bottom-nav a {
    min-width: 52px;
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #fff;
    text-decoration: none;

    padding: 8px 10px;
    border-radius: 16px;

    font-size: 12px;
    font-weight: 600;

    transition: all 0.2s ease;
}

.nav-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 22px;
    height: 22px;

    display: block;
}

.nav-icon svg,
.nav-icon svg *,
.nav-icon svg path,
.nav-icon svg rect {
    fill: currentColor !important;
}

.bottom-nav a small {
    display: block;
    margin: 0;

    font-size: 11px;
    line-height: 1;
}

.bottom-nav a:hover,
.bottom-nav a:active {
    background: rgba(225, 197, 100, 0.9);
    color: #111;
}

.scan-btn {
    background: rgba(225, 197, 100, 0.9) !important;
    color: #111 !important;
}

.scan-btn .nav-icon {
    width: 26px;
    height: 26px;
    margin-left: 32px;
    margin-right: 32px;
}

.scan-btn .nav-icon svg {
    width: 26px;
    height: 26px;
}

.scan-btn .nav-icon svg,
.scan-btn .nav-icon svg *,
.scan-btn .nav-icon svg path,
.scan-btn .nav-icon svg rect {
    fill: currentColor !important;
}

a {
    color: #e1c564;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    padding: 18px;
    border-radius: 24px;
    margin-bottom: 16px;
}

.danger {
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow:
        0 0 25px rgba(255, 77, 77, 0.12);
}

.warning {
    border-color: rgba(255, 204, 0, 0.5);
    box-shadow:
        0 0 25px rgba(255, 204, 0, 0.12);
}

.error {
    color: #ff6b6b;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.container {
    animation: pageFadeIn 0.25s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
}

.top-card p {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.6);
}

.top-card h2 {
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.stats-grid div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px 10px;
    text-align: center;
}

.stats-grid strong {
    display: block;
    font-size: 24px;
    color: #e1c564;
}

.stats-grid span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.delete-link {
    display: inline-block;
    margin-top: 10px;
    margin-left: 12px;
    color: #ff6b6b;
    font-weight: 700;
    text-decoration: none;
}

.delete-link:hover,
.delete-link:active {
    color: #fff;
}

@media(max-width: 453px) {
  .delete-link {
    display: block;
    margin-left: 0px;
  }
}

.product-edit-link {
    display: inline-block;
    margin-top: 10px;
    color: rgba(225, 197, 100, 1);
    font-weight: 700;
    text-decoration: none;
}

.batch-add-link {
    display: inline-block;
    margin-top: 10px;
    margin-left: 12px;
    color: rgba(225, 197, 100, 1);
    font-weight: 700;
    text-decoration: none;
}

.add-new-batch-link {
    display: inline-block;
    color: rgba(225, 197, 100, 1);
    font-weight: 700;
    text-decoration: none;
}

.batch-edit-link {
    display: inline-block;
    margin-top: 10px;
    color: rgba(225, 197, 100, 1);
    font-weight: 700;
    text-decoration: none;
}

.product-edit-link:hover,
.product-edit-link:active,
.batch-add-link:hover,
.batch-add-link:active,
.add-new-batch-link:hover,
.add-new-batch-link:active,
.batch-edit-link:hover,
.batch-edit-link:active {
    color: #fff;
}

.view-all-link {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.view-all-link:hover,
.view-all-link:active {
    color: #e1c564;
}

.dashboard-product-link {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-product-link:hover,
.dashboard-product-link:active {
    color: #e1c564;
}

.search-form {
    margin-bottom: 20px;
}

input[type="date"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    line-height: 1.2;
    min-height: 52px;
    padding-top: 14px;
    padding-bottom: 14px;
}
