
:root {
    --bg: #ffffff;
    --bg-warm: #f7f7f8;
    --bg-card: #ffffff;
    --ink: #0d0d0d;
    --ink-soft: #374151;
    --ink-muted: #9ca3af;
    --line: #e5e7eb;
    --line-soft: #f3f4f6;
    --accent: #19c37d;
    --accent-ink: #0a8c55;
    --accent-bg: #f0fdf4;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", monospace;
    /* Compatibility aliases */
    --primary-color: #19c37d;
    --secondary-color: #0a8c55;
    --border-color: #e5e7eb;
    --text-primary: #0d0d0d;
    --text-secondary: #374151;
    --text-tertiary: #9ca3af;
    --surface: #ffffff;
    --surface-secondary: #f7f7f8;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 24px -4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --transition: 0.15s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; }

/* ===== Header ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    min-height: 60px;
    padding: 0;
    box-shadow: none;
}
.navbar .container { max-width: 1160px; }
.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
}
.navbar .navbar-brand i { color: var(--accent); }
.navbar .nav-link {
    color: var(--ink-soft) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}
.navbar .nav-link:hover { background: var(--bg-warm); color: var(--ink) !important; }
.navbar .nav-link.active { color: var(--ink) !important; font-weight: 600; }

.navbar .btn-light,
.navbar .btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    background: transparent;
    color: var(--ink-soft);
    border: none;
}
.navbar .btn-light:hover,
.navbar .btn-outline-light:hover { background: var(--bg-warm); color: var(--ink); }
.navbar .btn-light.active,
.navbar .btn-primary-custom {
    background: var(--ink);
    color: #fff;
    border: none;
}
.navbar .btn-primary-custom:hover { background: #1a1a1a; }

.navbar .btn-outline-custom {
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: transparent;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.navbar .btn-outline-custom:hover {
    border-color: var(--ink-soft);
    background: var(--bg-warm);
    color: var(--ink);
}

.navbar-toggler {
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 8px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(13,13,13,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: background var(--transition);
}
.dropdown-item:hover { background: var(--bg-warm); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary-custom {
    background: var(--ink);
    color: #fff;
    border: none;
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}
.btn-primary-custom:hover { background: #1a1a1a; color: #fff; }

.btn-outline-custom,
.btn-outline-primary {
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 15px;
}
.btn-outline-custom:hover,
.btn-outline-primary:hover {
    border-color: var(--ink-soft);
    background: var(--bg-warm);
    color: var(--ink);
}

/* ===== Hero Section (Index) ===== */
.index-hero-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 40px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-ink);
    background: var(--accent-bg);
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    padding: 4px 14px;
    margin-bottom: 28px;
}
.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.index-hero-section h1 {
    font-family: var(--sans);
    font-size: 60px;
    line-height: 1.06;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 22px;
}
.index-hero-section h1 em {
    font-style: normal;
    color: var(--accent);
}
.index-hero-section .lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 460px;
    margin-bottom: 44px;
}
.index-hero-section .lead strong { color: var(--ink); font-weight: 600; }
.hero-meta {
    display: flex;
    gap: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero-meta-item .k {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--ink);
    display: block;
    margin-bottom: 5px;
}
.hero-meta-item .v {
    font-size: 12px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hero login card */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px -4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

/* Store hero */
.store-hero-section {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
    padding: 56px 40px;
    text-align: center;
}
.store-hero-section h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 12px;
}
.store-hero-section p { color: var(--ink-muted); font-size: 16px; }

/* ===== Features Section ===== */
.features-section,
#features {
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 80px 40px;
}
.features-inner { max-width: 1160px; margin: 0 auto; }
.section-title,
.features-title {
    font-family: var(--sans);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 12px;
    text-align: center;
}
.section-title:after { display: none; }
.section-title em,
.features-title em { font-style: normal; color: var(--accent); }
.features-sub {
    font-size: 16px;
    color: var(--ink-muted);
    text-align: center;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 28px 32px;
    transition: box-shadow 0.2s;
}
.feat-card:hover { box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08); }
.feat-icon,
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-bg);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 20px;
}
.feat-card h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 10px;
}
.feat-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink-soft);
}

/* ===== Product Cards ===== */
.product-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
    transition: all var(--transition);
    margin-bottom: 0;
    overflow: hidden;
    background: var(--bg-card);
}
.product-card:hover {
    box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
    border-color: var(--line);
    transform: none;
}
.product-image {
    height: 200px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}
.product-image > img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.original-price {
    text-decoration: line-through;
    color: var(--ink-muted);
    font-size: 1rem;
}
.discount-badge {
    background: #ef4444;
    color: white;
    border-radius: 6px;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 500;
}
.feature-badge {
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 500;
}
.badge-custom {
    background: var(--ink);
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 999px;
}
.rating { color: #f59e0b; }

/* ===== Filter & Tables ===== */
.filter-section {
    background: var(--bg-warm);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--line);
}
.comparison-table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.comparison-table th {
    background: var(--ink);
    color: white;
    border: none;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 14px;
}
.comparison-table td { padding: 14px 20px; border-color: var(--line); font-size: 14px; }
.highlight-cell { background: var(--accent-bg); font-weight: 600; }

/* ===== Testimonials & FAQ ===== */
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq-header button { font-weight: 500; padding: 14px 20px; font-size: 15px; }

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink-soft);
    padding: 56px 0 0;
    font-size: 14px;
}
footer .container { max-width: 1160px; }
footer h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
footer a.text-light,
footer a { color: var(--ink-muted) !important; transition: color var(--transition); }
footer a:hover { color: var(--ink) !important; }
footer li { margin-bottom: 10px; list-style: none; }
footer ul { list-style: none; padding: 0; }
footer hr { border-color: var(--line); margin: 40px 0 0; }
footer .text-center {
    padding: 20px 0;
}
footer .text-center p {
    color: var(--ink-muted);
    font-size: 13px;
    margin: 0;
}

/* ===== Alert ===== */
.alert {
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 14px;
    box-shadow: none;
    padding: 14px 18px;
}

/* ===== Cards ===== */
.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: none;
    transition: box-shadow var(--transition);
}
.card:hover { box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08); transform: none; }
.license-key {
    background: var(--bg-warm);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .index-hero-section {
        grid-template-columns: 1fr;
        padding: 52px 24px 40px;
        gap: 44px;
    }
    .index-hero-section h1 { font-size: 44px; }
    .features-section, #features { padding: 56px 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .section-title, .features-title { font-size: 30px; }
    .navbar .container { padding: 0 24px; }
    footer .container { padding: 0 24px; }
}
@media (max-width: 767.98px) {
    .product-card[style*="flex-direction:row"],
    .product-card[style*="flex-direction: row"] {
        flex-direction: column !important;
    }
    .product-card .product-card-image {
        width: 100% !important;
        min-height: 180px !important;
    }
    .product-card .product-popular-badge,
    .product-card .product-discount-badge {
        top: 10px !important;
        max-width: calc(50% - 18px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .product-card .product-popular-badge { left: 10px !important; }
    .product-card .product-discount-badge { right: 10px !important; }
}
@media (max-width: 575.98px) {
    .index-hero-section h1 { font-size: 36px; }
    .hero-meta { flex-direction: column; gap: 16px; }
}

/* ============================================
   Backend / Dashboard
   ============================================ */

/* Sidebar */
.sidebar {
    background: var(--bg-warm);
    border-right: 1px solid var(--line-soft);
    min-height: 100vh;
    overflow-x: hidden;
}
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft) !important;
    font-size: 13.5px;
    font-weight: 400;
    padding: 9px 10px;
    margin: 1px 8px;
    border-radius: 8px;
    transition: all var(--transition);
}
.sidebar .nav-link i {
    width: 16px;
    height: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}
.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
    color: var(--ink) !important;
    background: var(--bg-card);
    transform: none;
}
.sidebar .nav-link.active {
    color: var(--ink) !important;
    background: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    font-weight: 500;
}
.sidebar h4,
.sidebar .text-white {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
}

/* Offcanvas mobile sidebar */
.offcanvas-start {
    width: 260px;
    background: var(--bg-warm);
    border-right: 1px solid var(--line-soft);
}
.offcanvas-header {
    background: var(--bg-warm) !important;
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 20px;
}
.offcanvas-header .offcanvas-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}
.offcanvas-header .btn-close { filter: none; }
.offcanvas-body { padding: 0; }
.offcanvas-body .sidebar { min-height: auto; }

/* Main content area */
main.col-md-9,
main.col-lg-10 {
    background: var(--bg);
    min-height: 100vh;
    padding: 40px 48px 80px !important;
    max-width: 1100px;
    margin: 0 auto;
}

/* Section headers */
.section .border-bottom { border-color: var(--line-soft) !important; }
.section .h2,
.section h1.h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* Dashboard stat cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 18px;
    transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08); }
.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.stat-card .stat-icon.icon-blue { background: rgba(59,130,246,0.08); color: #3b82f6; }
.stat-card .stat-icon.icon-green { background: var(--accent-bg); color: var(--accent); }
.stat-card .stat-icon.icon-red { background: rgba(239,68,68,0.08); color: #ef4444; }
.stat-card .stat-icon.icon-amber { background: rgba(245,158,11,0.08); color: #f59e0b; }
.stat-card .stat-label {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

/* Backend cards */
.section .card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: none;
    background: var(--bg-card);
}
.section .card:hover { transform: none; box-shadow: none; }
.section .card-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line-soft);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    padding: 16px 24px;
}
.section .card-body { padding: 24px; }

/* Tables */
.section .table {
    font-size: 13px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.section .table thead th {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    border-top: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    padding: 10px 16px;
    white-space: nowrap;
    text-align: left;
}
.section .table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
    vertical-align: middle;
    background: var(--bg-card);
}
.section .table tbody tr:last-child td { border-bottom: none; }
.section .table-hover tbody tr:hover td { background: var(--bg-warm); }
.section .table-striped tbody tr:nth-of-type(odd) td { background: var(--bg-card); }
.section .table-striped tbody tr:nth-of-type(even) td { background: var(--bg-warm); }
.section .table-striped tbody tr:hover td { background: #f0f0f1; }
.table-responsive {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.section .table .badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
}
.section .table .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 7px;
    gap: 4px;
}
.section .table .btn i { font-size: 11px; }

/* Buttons in backend */
.section .btn-primary {
    background: var(--ink);
    border-color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    padding: 8px 14px;
    height: auto;
    color: #fff;
}
.section .btn-primary:hover { background: #1a1a1a; border-color: #1a1a1a; }
.section .btn-outline-primary {
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
    background: var(--bg-card);
}
.section .btn-outline-primary:hover { border-color: var(--ink); background: var(--bg-warm); }
.section .btn-outline-secondary {
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 13px;
    border-radius: 9px;
}
.section .btn-success {
    background: var(--accent);
    border-color: var(--accent);
    font-size: 13px;
    border-radius: 9px;
    color: #fff;
}
.section .btn-success:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.section .btn-danger { font-size: 13px; border-radius: 9px; }
.section .btn-warning { font-size: 13px; border-radius: 9px; }

/* Forms in backend */
.section .form-control,
.section .form-select {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--bg-warm);
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    transition: all var(--transition);
}
.section .form-control:focus,
.section .form-select:focus {
    border-color: var(--ink);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.section textarea.form-control { height: auto; padding: 12px 14px; }
.section .form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.section .form-text { font-size: 12px; color: var(--ink-muted); }
.section .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Alerts in backend */
.section .alert {
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid;
    padding: 14px 18px;
    box-shadow: none;
}
.section .alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.section .alert-info { background: var(--accent-bg); border-color: #bbf7d0; color: var(--accent-ink); }

/* Modals */
.modal-backdrop { backdrop-filter: blur(4px); }
.modal-dialog { margin-top: 8vh; }
.modal-content {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 70px -10px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.04);
    background: var(--bg-card);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--line);
    padding: 20px 28px;
    background: var(--bg);
}
.modal-header .modal-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.modal-header .btn-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    opacity: 0.5;
    transition: all var(--transition);
    background-size: 10px;
    padding: 0;
}
.modal-header .btn-close:hover {
    opacity: 1;
    background-color: var(--bg-warm);
}
.modal-body {
    padding: 28px;
}
.modal-body .form-control,
.modal-body .form-select {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--bg-warm);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    transition: all var(--transition);
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--ink);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.modal-body textarea.form-control { height: auto; padding: 12px 14px; }
.modal-body .form-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.modal-body .form-text {
    font-size: 12px;
    color: var(--ink-muted);
}
.modal-body .input-group-text {
    border: 1px solid var(--line);
    background: var(--bg-warm);
    font-size: 13px;
    color: var(--ink-muted);
    border-radius: 10px;
    padding: 0 12px;
}
.modal-body .alert {
    border-radius: 10px;
    font-size: 13px;
    padding: 12px 16px;
    line-height: 1.5;
}
.modal-body .image-preview {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: var(--bg-warm);
}
.modal-body .preview-image {
    border-radius: 8px !important;
    border-color: var(--line) !important;
}
.modal-footer {
    border-top: 1px solid var(--line);
    padding: 16px 28px;
    background: var(--bg);
    gap: 8px;
}
.modal-footer .btn {
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 9px;
}
.modal-footer .btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.modal-footer .btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--ink-muted);
    color: var(--ink);
}
.modal-footer .btn-primary {
    background: var(--ink);
    border: none;
    color: #fff;
}
.modal-footer .btn-primary:hover { background: #1a1a1a; }
.modal-footer .btn-danger {
    background: #ef4444;
    border: none;
    color: #fff;
}
.modal-footer .btn-danger:hover { background: #dc2626; }
.modal-footer .btn-warning {
    background: #f59e0b;
    border: none;
    color: #fff;
}
.modal-footer .btn-warning:hover { background: #d97706; }
.modal-footer .btn-success {
    background: var(--accent);
    border: none;
    color: #fff;
}
.modal-footer .btn-success:hover { background: var(--accent-ink); }

/* Pagination */
.pagination .page-link {
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    border-radius: 8px;
    margin: 0 2px;
    padding: 6px 12px;
}
.pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Settings section headings */
.section h6.border-bottom {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 10px;
    border-color: var(--line-soft) !important;
}

/* Mobile menu button */
.d-md-none .btn-outline-primary {
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    border-radius: 8px;
}

/* Input group */
.input-group-text {
    border: 1px solid var(--line);
    background: var(--bg-warm);
    font-size: 14px;
    color: var(--ink-soft);
    border-radius: 10px;
}

/* Badge refinement */
.badge.bg-danger { font-size: 11px; font-weight: 500; border-radius: 999px; }

/* API doc code blocks */
.section pre.bg-light {
    background: #1f2937 !important;
    color: #e5e7eb;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    padding: 14px 18px;
    font-family: var(--mono);
}

/* Ticket messages area */
#utmMessages {
    border: 1px solid var(--line-soft) !important;
    border-radius: 10px !important;
    background: var(--bg-warm);
}

/* Scrollbar for sidebar (webkit) */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
