/* Apple-inspired visual demo for home and admin pages */
:root {
    color-scheme: light;
    --font-apple: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --apple-bg: #f5f5f7;
    --apple-panel: rgba(255, 255, 255, 0.84);
    --apple-panel-solid: #ffffff;
    --apple-border: rgba(0, 0, 0, 0.08);
    --apple-border-strong: rgba(0, 0, 0, 0.14);
    --apple-text: #1d1d1f;
    --apple-text-secondary: #424245;
    --apple-text-tertiary: #6e6e73;
    --apple-text-muted: #86868b;
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --apple-success: #35c759;
    --apple-warning: #ff9f0a;
    --apple-danger: #ff3b30;

    --primary: var(--apple-blue);
    --primary-light: #2997ff;
    --primary-dark: #005fc7;
    --secondary: #4a9fff;
    --primary-gradient: linear-gradient(135deg, var(--apple-blue) 0%, #2997ff 100%);
    --secondary-gradient: linear-gradient(135deg, #0a84ff 0%, #64d2ff 100%);
    --accent-gradient: linear-gradient(135deg, #53b4ff 0%, var(--apple-blue) 100%);

    --bg-dark: var(--apple-bg);
    --bg-gradient: var(--apple-bg);
    --glass-bg: var(--apple-panel);
    --glass-bg-hover: rgba(255, 255, 255, 0.96);
    --glass-border: var(--apple-border);
    --glass-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    --sidebar-bg: rgba(255, 255, 255, 0.78);
    --sidebar-bg-hover: rgba(0, 113, 227, 0.08);
    --card-bg: rgba(255, 255, 255, 0.9);

    --text-primary: var(--apple-text);
    --text-secondary: var(--apple-text-secondary);
    --text-light: var(--apple-text-tertiary);
    --text-muted: var(--apple-text-muted);

    --border-light: var(--apple-border);
    --border-medium: var(--apple-border-strong);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

:root[data-theme="dark"] {
    --apple-bg: #111214;
    --apple-panel: rgba(17, 24, 39, 0.78);
    --apple-panel-solid: #111827;
    --apple-border: rgba(148, 163, 184, 0.24);
    --apple-border-strong: rgba(148, 163, 184, 0.34);
    --apple-text: #e6edf6;
    --apple-text-secondary: #c5d0e1;
    --apple-text-tertiary: #96a6bd;
    --apple-text-muted: #7f90a8;
}

html,
body {
    font-family: var(--font-apple) !important;
    background: var(--apple-bg);
    color: var(--apple-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before,
.hero::before,
.hero::after,
.bg-shapes,
.particles,
.wave {
    display: none !important;
}

/* Home page */
.navbar {
    background: rgba(245, 245, 247, 0.78) !important;
    border-bottom: 1px solid var(--apple-border) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: none !important;
}

.navbar-container {
    height: 72px !important;
    max-width: 1200px !important;
    padding: 0 24px !important;
}

.nav-logo {
    color: var(--apple-text) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
}

.nav-links a {
    color: var(--apple-text-tertiary) !important;
    font-weight: 500 !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--apple-text) !important;
}

.nav-links a.active::after {
    background: var(--apple-blue) !important;
    height: 2px !important;
    border-radius: 999px !important;
}

.hero {
    min-height: 78vh !important;
    padding: 152px 24px 72px !important;
    background:
        radial-gradient(circle at 8% 12%, rgba(0, 113, 227, 0.07), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(52, 199, 89, 0.06), transparent 30%),
        linear-gradient(180deg, #fafafc 0%, #f5f5f7 100%) !important;
}

.hero-content {
    max-width: 920px !important;
}

.hero-badge {
    background: rgba(0, 113, 227, 0.08) !important;
    border: 1px solid rgba(0, 113, 227, 0.2) !important;
    color: var(--apple-blue) !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
}

.hero-badge-dot {
    background: var(--apple-success) !important;
    animation: none !important;
}

.hero h1 {
    color: var(--apple-text) !important;
    -webkit-text-fill-color: var(--apple-text) !important;
    background: none !important;
    letter-spacing: -0.03em !important;
    font-size: clamp(40px, 6.4vw, 72px) !important;
    font-weight: 700 !important;
}

.hero-description {
    color: var(--apple-text-secondary) !important;
    max-width: 700px !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    line-height: 1.65 !important;
}

.hero-btn-primary,
.cta-btn {
    background: var(--apple-blue) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(0, 113, 227, 0.24) !important;
}

.hero-btn-primary:hover,
.cta-btn:hover {
    background: var(--apple-blue-hover) !important;
    transform: translateY(-1px) !important;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.74) !important;
    color: var(--apple-text) !important;
    border: 1px solid var(--apple-border) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

.hero-btn-secondary:hover {
    background: #ffffff !important;
    transform: translateY(-1px) !important;
}

.products-section,
.features-section {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 96px 24px !important;
}

.section-header {
    margin-bottom: 48px !important;
}

.section-label {
    color: var(--apple-text-tertiary) !important;
    letter-spacing: 0.12em !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.section-title {
    color: var(--apple-text) !important;
    font-size: clamp(32px, 4.3vw, 48px) !important;
    letter-spacing: -0.02em !important;
}

.section-desc {
    color: var(--apple-text-tertiary) !important;
    font-size: 18px !important;
}

.products-grid,
.features-grid {
    gap: 20px !important;
}

.product-card,
.feature-card {
    background: var(--apple-panel) !important;
    border: 1px solid var(--apple-border) !important;
    border-radius: 24px !important;
    box-shadow: var(--glass-shadow) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.product-card::before,
.feature-card::before {
    display: none !important;
}

.product-card:hover,
.feature-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(0, 113, 227, 0.24) !important;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.12) !important;
}

.product-icon,
.feature-icon {
    border-radius: 16px !important;
    border: 1px solid var(--apple-border) !important;
    background: #ffffff !important;
    color: var(--apple-blue) !important;
}

.product-name,
.feature-title,
.cta-title {
    color: var(--apple-text) !important;
}

.product-desc,
.feature-desc,
.cta-desc {
    color: var(--apple-text-tertiary) !important;
}

.product-tag {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid var(--apple-border) !important;
    color: var(--apple-text) !important;
    border-radius: 999px !important;
}

.product-link {
    color: var(--apple-blue) !important;
    font-weight: 600 !important;
}

.product-link:hover {
    color: var(--apple-blue-hover) !important;
}

.cta-section {
    max-width: 1080px !important;
    margin: 24px auto 96px !important;
    padding: 72px 28px !important;
    border-radius: 32px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)) !important;
    border: 1px solid var(--apple-border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

.footer {
    background: #1d1d1f !important;
    color: #f5f5f7 !important;
}

.footer-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 64px 24px 32px !important;
}

.footer-brand p,
.footer-copy {
    color: rgba(245, 245, 247, 0.72) !important;
}

.footer-nav-title {
    color: #ffffff !important;
}

.footer-nav-links a {
    color: rgba(245, 245, 247, 0.78) !important;
}

.footer-nav-links a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.footer-social a {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Admin page */
.sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--apple-border) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: none !important;
}

.sidebar-header {
    border-bottom: 1px solid var(--apple-border) !important;
    padding: 24px 20px !important;
}

.sidebar-logo .logo-icon,
.user-avatar {
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--apple-blue) 0%, #58b0ff 100%) !important;
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.28) !important;
}

.sidebar-nav {
    padding: 14px 12px 18px !important;
}

.nav-section-title {
    color: var(--apple-text-muted) !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
}

.nav-item {
    border-radius: 14px !important;
    border: 1px solid transparent !important;
    color: var(--apple-text-secondary) !important;
    transition: all 0.2s ease !important;
}

.nav-item::before {
    display: none !important;
}

.nav-item:hover {
    transform: none !important;
    background: rgba(0, 113, 227, 0.08) !important;
    border-color: rgba(0, 113, 227, 0.16) !important;
    color: var(--apple-text) !important;
}

.nav-item.active {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #2997ff 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(0, 113, 227, 0.3) !important;
}

.nav-item .nav-badge {
    background: rgba(0, 113, 227, 0.15) !important;
    color: var(--apple-blue) !important;
}

.nav-item.active .nav-badge {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}

.sidebar-footer {
    border-top: 1px solid var(--apple-border) !important;
}

.user-profile {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid var(--apple-border) !important;
}

.btn-logout {
    border-radius: 999px !important;
    border: 1px solid var(--apple-border) !important;
    background: rgba(255, 255, 255, 0.66) !important;
    color: var(--apple-text-secondary) !important;
}

.btn-logout:hover {
    border-color: var(--apple-border-strong) !important;
    color: var(--apple-text) !important;
}

.main-wrapper {
    background: transparent !important;
    padding: 34px 32px 44px !important;
}

.page-header {
    margin-bottom: 22px !important;
}

.page-title {
    color: var(--apple-text) !important;
    font-size: clamp(30px, 4.5vw, 42px) !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
}

.page-subtitle {
    color: var(--apple-text-tertiary) !important;
}

.stats-grid {
    gap: 16px !important;
}

.stat-card {
    background: var(--apple-panel) !important;
    border: 1px solid var(--apple-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
}

.stat-card:hover {
    transform: translateY(-3px) !important;
}

.stat-card .number {
    color: var(--apple-text) !important;
}

.stat-card .label {
    color: var(--apple-text-tertiary) !important;
}

.icon-container,
.stat-card .icon {
    color: var(--apple-blue) !important;
}

.content-card,
.stats-section,
.orders-panel,
.platform-chart,
.orders-table-wrap,
.confirm-content,
.modal-content,
.admin-form {
    background: var(--apple-panel) !important;
    border: 1px solid var(--apple-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08) !important;
}

.content-card {
    padding: 24px !important;
}

.stats-section {
    padding: 20px !important;
}

.orders-panel {
    padding: 22px !important;
}

.btn,
.btn-confirm,
.btn-cancel {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    min-height: 40px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.btn-primary,
.btn-approve,
.btn-refresh,
.btn-restore,
.btn-confirm {
    background: linear-gradient(135deg, var(--apple-blue) 0%, #2997ff 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0, 113, 227, 0.24) !important;
}

.btn-primary:hover,
.btn-approve:hover,
.btn-refresh:hover,
.btn-restore:hover,
.btn-confirm:hover {
    background: linear-gradient(135deg, #0077ed 0%, #45a4ff 100%) !important;
}

.btn-secondary,
.btn-cancel {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--apple-border) !important;
    color: var(--apple-text) !important;
    box-shadow: none !important;
}

.btn-reject {
    background: rgba(255, 59, 48, 0.12) !important;
    border-color: rgba(255, 59, 48, 0.22) !important;
    color: #d70015 !important;
}

.btn-revoke {
    background: rgba(255, 159, 10, 0.12) !important;
    border-color: rgba(255, 159, 10, 0.2) !important;
    color: #ad6200 !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
}

.btn:disabled {
    opacity: 0.52 !important;
    transform: none !important;
}

.form-control,
.orders-input,
.orders-select,
input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 14px !important;
    color: var(--apple-text) !important;
    min-height: 42px !important;
    box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--apple-text-muted) !important;
}

.form-control:focus,
.orders-input:focus,
.orders-select:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--apple-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18) !important;
}

.orders-table-wrap {
    overflow: hidden !important;
}

.orders-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.orders-table thead th {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--apple-text-tertiary) !important;
    border-bottom: 1px solid var(--apple-border) !important;
    font-weight: 600 !important;
}

.orders-table tbody td {
    color: var(--apple-text) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.orders-table tbody tr:hover {
    background: rgba(0, 113, 227, 0.05) !important;
}

.status-pending,
.status-approved,
.status-rejected,
.status-revoked,
.status-expired {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-weight: 600 !important;
}

.status-pending {
    background: rgba(255, 159, 10, 0.12) !important;
    border-color: rgba(255, 159, 10, 0.2) !important;
    color: #ad6200 !important;
}

.status-approved {
    background: rgba(53, 199, 89, 0.12) !important;
    border-color: rgba(53, 199, 89, 0.2) !important;
    color: #13803d !important;
}

.status-rejected {
    background: rgba(255, 59, 48, 0.12) !important;
    border-color: rgba(255, 59, 48, 0.2) !important;
    color: #c1271b !important;
}

.status-revoked {
    background: rgba(110, 110, 115, 0.12) !important;
    border-color: rgba(110, 110, 115, 0.2) !important;
    color: #505056 !important;
}

.status-expired {
    background: rgba(255, 159, 10, 0.1) !important;
    border-color: rgba(255, 159, 10, 0.2) !important;
    color: #a86100 !important;
}

.alert-success,
.alert-error,
.alert-warning {
    border-radius: 14px !important;
    border: 1px solid transparent !important;
}

.alert-success {
    background: rgba(53, 199, 89, 0.14) !important;
    border-color: rgba(53, 199, 89, 0.2) !important;
}

.alert-error {
    background: rgba(255, 59, 48, 0.14) !important;
    border-color: rgba(255, 59, 48, 0.2) !important;
}

.alert-warning {
    background: rgba(255, 159, 10, 0.14) !important;
    border-color: rgba(255, 159, 10, 0.2) !important;
}

.confirm-modal {
    background: rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-content h3 {
    color: var(--apple-text) !important;
}

.confirm-content p {
    color: var(--apple-text-tertiary) !important;
}

.spinner {
    border-top-color: var(--apple-blue) !important;
}

.loading p,
.orders-selection,
.orders-subtitle,
.orders-panel-subtitle,
.admin-hint {
    color: var(--apple-text-tertiary) !important;
}

/* Keep dark mode legible under this demo theme */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .main-wrapper {
    background: #111214 !important;
}

@media (max-width: 1100px) {
    .main-wrapper {
        padding: 24px 16px 32px !important;
    }
}

@media (max-width: 900px) {
    .navbar-container {
        padding: 0 16px !important;
    }

    .nav-links {
        gap: 18px !important;
    }

    .hero {
        padding: 124px 16px 56px !important;
    }

    .products-section,
    .features-section {
        padding: 72px 16px !important;
    }

    .cta-section {
        margin: 16px 16px 72px !important;
        padding: 52px 20px !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(34px, 10vw, 48px) !important;
    }

    .hero-description {
        font-size: 16px !important;
    }

    .hero-actions {
        width: 100%;
        gap: 10px !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary,
    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        background: rgba(255, 255, 255, 0.92) !important;
    }

    .stat-card,
    .content-card,
    .stats-section,
    .orders-panel {
        border-radius: 18px !important;
    }
}

/* Layout v2: stronger Apple-like composition */
.hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: 34px;
    text-align: left !important;
}

.hero-content {
    text-align: left !important;
    margin: 0 !important;
}

.hero-description {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.hero-actions {
    justify-content: flex-start !important;
}

.hero-showcase {
    width: 100%;
    max-width: 560px;
    justify-self: end;
}

.showcase-stage {
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.16), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.14), transparent 36%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 52%, rgba(241, 245, 249, 0.92) 100%);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.14);
    color: var(--apple-text);
    padding: 26px;
}

.showcase-eyebrow {
    margin: 0;
    color: #2563eb;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.showcase-title {
    margin: 10px 0 0;
    font-size: clamp(26px, 3.1vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--apple-text);
}

.showcase-text {
    margin: 10px 0 0;
    color: var(--apple-text-secondary);
    font-size: 16px;
    line-height: 1.68;
}

.showcase-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.showcase-flow span {
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.12);
    color: #1e40af;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
}

.showcase-products {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.showcase-product {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    padding: 10px 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.showcase-product:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(239, 246, 255, 0.92);
}

.showcase-product img,
.showcase-product-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(219, 234, 254, 0.75);
    color: #1d4ed8;
}

.showcase-product strong {
    display: block;
    color: var(--apple-text);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.showcase-product small {
    display: block;
    color: var(--apple-text-secondary);
    font-size: 12px;
    margin-top: 1px;
}

:root[data-theme="dark"] .showcase-stage {
    border-color: rgba(148, 163, 184, 0.32);
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.18), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.2), transparent 36%),
        linear-gradient(150deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.96) 52%, rgba(30, 41, 59, 0.94) 100%);
    color: #f8fafc;
}

:root[data-theme="dark"] .showcase-eyebrow {
    color: #93c5fd;
}

:root[data-theme="dark"] .showcase-title {
    color: #ffffff;
}

:root[data-theme="dark"] .showcase-text {
    color: #cbd5e1;
}

:root[data-theme="dark"] .showcase-flow span {
    border-color: rgba(147, 197, 253, 0.38);
    background: rgba(30, 64, 175, 0.28);
    color: #dbeafe;
}

:root[data-theme="dark"] .showcase-product {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.38);
}

:root[data-theme="dark"] .showcase-product:hover {
    border-color: rgba(147, 197, 253, 0.48);
    background: rgba(30, 58, 138, 0.28);
}

:root[data-theme="dark"] .showcase-product img,
:root[data-theme="dark"] .showcase-product-icon {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #c7d2fe;
}

:root[data-theme="dark"] .showcase-product strong {
    color: #ffffff;
}

:root[data-theme="dark"] .showcase-product small {
    color: rgba(203, 213, 225, 0.84);
}

.highlights-strip {
    max-width: 1200px;
    margin: 8px auto 24px;
    padding: 0 24px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-item {
    border: 1px solid var(--apple-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    display: grid;
    gap: 6px;
}

.highlight-label {
    margin: 0;
    color: var(--apple-text-muted);
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 600;
}

.highlight-item strong {
    font-size: 28px;
    color: var(--apple-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.highlight-item span {
    color: var(--apple-text-tertiary);
    font-size: 15px;
    line-height: 1.66;
}

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px !important;
}

.product-card {
    grid-column: span 6;
}

.product-card-featured {
    grid-column: span 12;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.product-card-featured .product-meta,
.product-card-featured .product-desc {
    margin-bottom: 0 !important;
}

.product-card-featured .product-link {
    justify-self: end;
}

.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px !important;
}

.feature-card {
    min-height: 220px;
}

.feature-card-wide {
    grid-column: span 2;
}

.main-wrapper {
    padding: 30px 28px 48px !important;
}

.admin-hero,
.stats-grid,
.content-card {
    max-width: 1360px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 16px;
    margin-bottom: 18px !important;
    align-items: stretch;
}

.admin-hero .page-header {
    margin-bottom: 0 !important;
    padding: 22px 24px;
    border: 1px solid var(--apple-border);
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 250, 0.82));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.admin-hero-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-hero-card {
    border-radius: 18px;
    border: 1px solid var(--apple-border);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    padding: 14px;
    display: grid;
    gap: 6px;
    align-content: center;
}

.admin-hero-card span {
    color: var(--apple-text-muted);
    font-size: 12px;
    letter-spacing: 0.02em;
}

.admin-hero-card strong {
    color: var(--apple-text);
    font-size: 18px;
    letter-spacing: -0.01em;
}

.content-card {
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center !important;
    }

    .hero-content,
    .hero-description {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-actions {
        justify-content: center !important;
    }

    .hero-showcase {
        justify-self: center;
    }

    .highlights-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .product-card,
    .product-card-featured {
        grid-column: span 6;
    }

    .product-card-featured {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .product-card-featured .product-link {
        justify-self: flex-start;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card-wide {
        grid-column: span 2;
    }

    .admin-hero-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .highlights-strip {
        padding: 0 16px;
        grid-template-columns: 1fr;
    }

    .products-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-card-wide {
        grid-column: span 1;
    }
}
