* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #121212;
    color: #f1f1f1;
    font-family: Arial, sans-serif;
    padding-bottom: 110px;
}

main {
    padding: 22px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 28px;
    margin: 0 0 18px;
}

h2 {
    font-size: 20px;
    margin: 0 0 8px;
}

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

.card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 18px;
}

.card h2 {
    font-size: 34px;
    margin: 0 0 6px;
    color: #e1c564;
}

.card p {
    margin: 0;
    line-height: 1.5;
}

.warning {
    border-color: #e1c564;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.button,
button {
    background: #e1c564;
    color: #121212;
    padding: 14px 18px;
    border-radius: 14px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    min-height: 48px;
}

input,
select,
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 12px;
    background: #202020;
    border: 1px solid #2a2a2a;
    color: #f1f1f1;
    border-radius: 14px;
    font-size: 16px;
}

textarea {
    min-height: 110px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #181818;
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #2a2a2a;
    text-align: left;
    white-space: nowrap;
}

th,
a {
    color: #e1c564;
    text-decoration: none !important;
}

.qr {
    width: 220px;
    max-width: 100%;
    background: white;
    padding: 10px;
    border-radius: 12px;
}

.small {
    font-size: 13px;
    opacity: 0.75;
}

/* Bottom glass nav */
.bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 9999;

    height: 70px;
    padding: 10px 14px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 8px;

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

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}

.bottom-nav a,
.bottom-nav a.scan {
    height: 50px;
    width: 100%;
    margin: 0;

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

    color: rgba(241, 241, 241, 0.78);
    background: transparent;

    text-decoration: none;
    border-radius: 18px;
    box-shadow: none;

    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.bottom-nav a i {
    font-size: 20px;
}

.bottom-nav a:hover,
.bottom-nav a:active,
.bottom-nav a.scan:hover,
.bottom-nav a.scan:active {
    color: #e1c564;
    background: rgba(225, 197, 100, 0.12);
    transform: translateY(-1px);
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.error {
    color: #ff7777;
}

#preview {
    width: 100%;
    max-width: 500px;
    border-radius: 18px;
    background: #000;
}

/* Desktop */
@media (min-width: 1024px) {
    main {
        padding: 30px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .bottom-nav {
        max-width: 520px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.action-card {
    text-decoration: none;
    color: #f1f1f1;
    display: block;
}

.action-card h2 {
    color: #e1c564;
}

.action-card:hover {
    border-color: #e1c564;
}

.product-photo {
    width: auto;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    background: #202020;
    border: 1px solid #2a2a2a;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #202020;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.check-row input {
    width: 22px;
    height: 22px;
    margin: 0;
    flex: 0 0 auto;
}

.check-row span {
    line-height: 1.4;
}

/* App style list cards */
.app-list {
    display: grid;
    gap: 14px;
}

.item-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: #f1f1f1;
}

.item-card:hover {
    border-color: #e1c564;
}

.item-thumb {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    background: #202020;
    border: 1px solid #2a2a2a;
}

.item-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: #202020;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e1c564;
    font-size: 26px;
}

.item-info h2 {
    font-size: 16px;
    margin: 0 0 4px;
    color: #f1f1f1;
}

.item-info p {
    margin: 0;
    font-size: 13px;
    color: rgba(241,241,241,0.7);
}

.item-stock {
    text-align: right;
}

.item-stock strong {
    display: block;
    font-size: 20px;
    color: #e1c564;
}

.item-stock span {
    font-size: 11px;
    color: rgba(241,241,241,0.65);
}

.badge-low {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(225,197,100,0.15);
    color: #e1c564;
    font-size: 11px;
}

/* Hide old tables on mobile when card list exists */
.mobile-hide {
    display: none;
}

@media (min-width: 900px) {
    .mobile-hide {
        display: block;
    }

    .desktop-hide {
        display: none;
    }
}

.dash-hero {
    background: linear-gradient(135deg, #181818, #202020);
    border: 1px solid #2a2a2a;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
}

.eyebrow {
    color: #e1c564;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    margin: 0 0 6px;
}

.muted {
    color: rgba(241,241,241,0.65);
    margin: 0;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dash-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 16px;
    text-decoration: none;
    color: #f1f1f1;
}

.dash-card h2 {
    font-size: 30px;
    margin: 10px 0 2px;
    color: #e1c564;
}

.dash-card p {
    margin: 0;
    font-size: 13px;
    color: rgba(241,241,241,0.68);
}

.dash-card.warning {
    border-color: rgba(225,197,100,0.45);
}

.dash-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(225,197,100,0.12);
    color: #e1c564;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    margin: 24px 0 10px;
}

.section-title h2 {
    font-size: 18px;
    margin: 0;
}

.summary-card {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    overflow: hidden;
}

.summary-card div {
    padding: 16px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.summary-card div:last-child {
    border-bottom: none;
}

.summary-card span {
    color: rgba(241,241,241,0.65);
}

.summary-card strong {
    color: #e1c564;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.quick-actions a {
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 18px;
    color: #f1f1f1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions i {
    color: #e1c564;
    font-size: 22px;
}

.quick-actions span {
    font-weight: bold;
}

@media (min-width: 900px) {
    .dash-grid,
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-card {
    background: transparent;
    padding: 14px;
}

.filter-card input {
  outline: none !important;
  display: grid;
  gap: 14px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(241,241,241,0.8);
}

.filter-check input {
    width: auto;
    margin: 0;
}

.apple-hero {
    background:
        radial-gradient(circle at top right, rgba(225,197,100,0.18), transparent 34%),
        linear-gradient(145deg, rgba(32,32,32,0.94), rgba(18,18,18,0.94));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

.apple-hero h1 {
    font-size: 34px;
    margin: 0 0 8px;
}

.hero-value {
    margin-top: 26px;
}

.hero-value span {
    display: block;
    font-size: 13px;
    color: rgba(241,241,241,0.62);
    margin-bottom: 4px;
}

.hero-value strong {
    font-size: 34px;
    color: #e1c564;
    letter-spacing: -1px;
}

.apple-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.apple-stat {
    background: rgba(24,24,24,0.76);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 16px;
    text-decoration: none;
    color: #f1f1f1;
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.apple-stat i {
    color: #e1c564;
    font-size: 20px;
    margin-bottom: 14px;
}

.apple-stat span {
    display: block;
    color: rgba(241,241,241,0.62);
    font-size: 13px;
}

.apple-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    color: #f1f1f1;
}

.value-panel {
    background: rgba(24,24,24,0.76);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.value-panel div {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.value-panel div:last-child {
    border-bottom: none;
}

.value-panel span {
    color: rgba(241,241,241,0.62);
}

.value-panel strong {
    color: #e1c564;
    text-align: right;
}

.attention-list {
    display: grid;
    gap: 10px;
}

.attention-item {
    background: rgba(24,24,24,0.76);
    border: 1px solid rgba(225,197,100,0.22);
    border-radius: 18px;
    padding: 14px;
    text-decoration: none;
    color: #f1f1f1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.attention-item span {
    display: block;
    margin-top: 3px;
    color: rgba(241,241,241,0.58);
    font-size: 12px;
}

.attention-stock {
    text-align: right;
}

.attention-stock strong {
    color: #e1c564;
    font-size: 22px;
}

.attention-stock span {
    margin: 0;
}

.apple-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.apple-actions a {
    background: rgba(24,24,24,0.76);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 18px;
    color: #f1f1f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

.apple-actions i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(225,197,100,0.12);
    color: #e1c564;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-actions span {
    font-weight: 700;
}

.glass-card {
    background: rgba(24,24,24,0.76);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
}

@media (min-width: 900px) {
    .apple-stats,
    .apple-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Global Apple-style polish */

body {
    background:
        radial-gradient(circle at top right, rgba(225,197,100,0.08), transparent 28%),
        #121212;
    color: #f1f1f1;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

main {
    padding-top: 22px;
}

h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
    font-weight: 700;
}

h2 {
    letter-spacing: -0.3px;
}

.card,
.filter-card,
.summary-card,
.value-panel,
.dash-card,
.item-card {
    background: rgba(24,24,24,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card {
    border-radius: 22px;
}

.page-header {
    margin-bottom: 18px;
}

.page-header h1 {
    margin-bottom: 0;
}

.button,
button {
    background: #e1c564;
    color: #121212;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(225,197,100,0.16);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:active,
button:active,
.item-card:active,
.apple-stat:active,
.apple-actions a:active {
    transform: scale(0.98);
}

input,
select,
textarea {
    background: rgba(32,32,32,0.82);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(225,197,100,0.7);
    box-shadow: 0 0 0 4px rgba(225,197,100,0.08);
}

label {
    color: rgba(241,241,241,0.75);
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

/* List cards refinement */
.item-card {
    border-radius: 22px;
}

.item-info h2 {
    font-size: 17px;
    letter-spacing: -0.2px;
}

.item-placeholder,
.item-thumb {
    border-radius: 18px;
}

.item-stock strong {
    font-size: 24px;
}

/* Tables look cleaner on desktop */
table {
    background: rgba(24,24,24,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 35px rgba(0,0,0,0.22);
}

th {
    color: #e1c564;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

td {
    color: rgba(241,241,241,0.86);
}

/* QR image cards */
.qr {
    border-radius: 18px;
}

/* Bottom nav refinement */
.bottom-nav {
    background: rgba(24,24,24,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.48);
}

.bottom-nav a {
    color: rgba(241,241,241,0.7);
}

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

/* Forms feel more like app screens */
.form {
    display: grid;
    gap: 2px;
}

.form input,
.form select,
.form textarea {
    margin-bottom: 12px;
}

/* Better small text */
.small,
.muted {
    color: rgba(241,241,241,0.62);
}

/* Secondary buttons */
.secondary-button {
    background: rgba(32,32,32,0.85);
    color: #f1f1f1;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

/* Product image */
.product-photo {
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.24);
}

/* Login polish */
.login-card {
    background: rgba(24,24,24,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dashboard-search {
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 10px;
    margin-bottom: 22px;
}

.dashboard-search input {
    margin: 0;
}

.dashboard-search button {
    min-height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
