@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');
:root {
    --bg: #edf8ff;
    --surface: #ffffff;
    --surface-soft: #f7fcff;
    --ink: #0f2740;
    --muted: #2e5678;
    --primary: #1ea7ff;
    --accent: #0b86dc;
    --accent-deep: #066ab0;
    --danger: #c1121f;
    --radius: 10px;
    --stroke: #d7ebfb;
    --shadow: 0 10px 24px rgba(19, 92, 145, 0.14);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at 8% 12%, rgba(56, 180, 255, 0.22) 0%, rgba(56, 180, 255, 0) 40%), radial-gradient(circle at 88% 14%, rgba(16, 144, 224, 0.22) 0%, rgba(16, 144, 224, 0) 35%), linear-gradient(180deg, #f4fbff 0%, #ecf8ff 46%, #eaf6ff 100%);
    color: var(--ink);
    line-height: 1.35;
    font-weight: 600;
}

h1,
h2,
h3,
p {
    margin: 0 0 8px;
}

h1,
h2 {
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.24);
}

h3 {
    font-weight: 700;
}

p,
label,
td,
th,
span,
a {
    font-weight: 600;
}

.wrap {
    width: min(1150px, 92%);
    margin-inline: auto;
}

.hero {
    background: linear-gradient(125deg, #0a4d82 0%, #0f75bf 55%, #1ea7ff 100%);
    color: #f5fbff;
    padding-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 8%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 42%), linear-gradient(110deg, rgba(255, 255, 255, 0.08) 10%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 14px rgba(7, 62, 104, 0.35);
}

.links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.links a {
    color: #eaf7ff;
    text-decoration: none;
    padding: 3px 7px;
    border-radius: 999px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.links a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-content {
    padding: 14px 0 6px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.4vw, 2.1rem);
    line-height: 1.2;
}

.hero-content p {
    color: #dbf1ff;
    max-width: 760px;
    font-weight: 700;
}

.hero-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.btn {
    border: none;
    background: linear-gradient(180deg, #1ea7ff 0%, var(--accent) 65%, var(--accent-deep) 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(11, 134, 220, 0.32);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 9px 18px rgba(11, 134, 220, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.btn-small {
    padding: 6px 10px;
}

.section {
    padding: 16px 0;
}

.section h2 {
    margin-bottom: 10px;
}

.grid {
    display: grid;
    gap: 10px;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(18, 97, 154, 0.16);
}

.card h3 {
    margin: 0 0 6px;
}

.product .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.status.on {
    color: var(--primary);
    font-weight: 700;
}

.status.off {
    color: var(--danger);
    font-weight: 700;
}

.form-grid {
    display: grid;
    gap: 6px;
}

label {
    display: grid;
    gap: 4px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #c8deef;
    background: #ffffff;
    border-radius: 8px;
    padding: 7px 8px;
    font: inherit;
    font-weight: 600;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #59b9ff;
    box-shadow: 0 0 0 3px rgba(30, 167, 255, 0.18);
}

pre {
    margin: 0;
    white-space: pre-wrap;
    background: #0f1720;
    color: #bde8ff;
    border-radius: 8px;
    padding: 8px;
    min-height: 44px;
    font-weight: 700;
}

.footer {
    padding: 14px 0 18px;
    color: var(--muted);
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid #bfe2fc;
    background: linear-gradient(180deg, #ffffff 0%, #edf8ff 100%);
    box-shadow: 0 8px 18px rgba(19, 92, 145, 0.08);
}

.admin-nav strong {
    color: #0f5d96;
    font-weight: 800;
}

.admin-nav a {
    color: #0b72b8;
    text-decoration: none;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.admin-nav a:hover {
    background: #e0f1ff;
}

.stack-top {
    margin-top: 10px;
}

.span-full {
    grid-column: 1 / -1;
}

.notice {
    margin: 0;
    padding: 7px 9px;
    border-radius: 10px;
    background: linear-gradient(180deg, #eef9ff 0%, #e2f4ff 100%);
    color: #0f5d96;
    border: 1px solid #c8e8ff;
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #d9ecfb;
    text-align: right;
}

.data-table th {
    background: linear-gradient(180deg, #f2faff 0%, #e7f4ff 100%);
    color: #165b8d;
    font-weight: 800;
}

.data-table tbody tr:nth-child(even) {
    background: rgba(231, 245, 255, 0.45);
}

.ticket-item {
    margin-bottom: 8px;
    border: 1px solid #d5ebfb;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.ticket-meta {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.type-free {
    color: #067647;
    background: #ecfdf3;
    border-color: #abefc6;
}

.type-paid {
    color: #0b72b8;
    background: #e6f4ff;
    border-color: #b2ddff;
}

.type-premium {
    color: #93370d;
    background: #fff6ed;
    border-color: #f9dbaf;
}

.type-private {
    color: #5925dc;
    background: #f4f3ff;
    border-color: #d9d6fe;
}

.tech-web {
    color: #0b72b8;
    background: #eaf5ff;
    border-color: #c4e1ff;
}

.tech-platform {
    color: #155eef;
    background: #eef4ff;
    border-color: #c7d7fe;
}

.tech-android {
    color: #027a48;
    background: #ecfdf3;
    border-color: #abefc6;
}

.tech-desktop {
    color: #344054;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

.tech-multi {
    color: #b93815;
    background: #fff4ed;
    border-color: #f9dbaf;
}

.mode-online {
    color: #027a48;
    background: #ecfdf3;
    border-color: #abefc6;
}

.mode-offline {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fdba74;
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .links a,
    .admin-nav a,
    input,
    select,
    textarea {
        transition: none;
    }
}

@media (max-width: 900px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }
    .nav,
    .links,
    .hero-actions {
        flex-wrap: wrap;
    }
}