:root {
    --bg: #030712;
    --surface: #07111e;
    --surface-glass: rgba(10, 22, 38, 0.7);
    --line: rgba(56, 189, 248, 0.15);
    --line-hover: rgba(56, 189, 248, 0.45);
    --text: #f0f6fc;
    --muted: #8b9bb4;
    --cyan: #38bdf8;
    --blue: #2563eb;
    --accent-glow: rgba(56, 189, 248, 0.28);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font: inherit;
}

.public-shell {
    position: relative;
    isolation: isolate;
    max-width: 1120px;
    margin: auto;
    padding: 30px 24px;
    overflow: hidden;
}

/* Stunning Ambient Glow Backgrounds */
.ambient {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    border-radius: 50%;
    opacity: .35;
    animation: ambientFloat 10s ease-in-out infinite alternate;
}

.ambient-one {
    width: 420px;
    height: 420px;
    top: 40px;
    right: -120px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.ambient-two {
    width: 380px;
    height: 380px;
    top: 480px;
    left: -150px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    animation-delay: 5s;
}

@keyframes ambientFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.25;
    }

    100% {
        transform: translateY(-30px) scale(1.12);
        opacity: 0.4;
    }
}

.topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    font-size: 15px;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #030712;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    border: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

    .live-pill i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #34d399;
        box-shadow: 0 0 12px #34d399;
    }

/* Hero Section */
.hero-panel {
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 32px;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%), linear-gradient(145deg, rgba(7, 17, 30, 0.95), rgba(3, 7, 18, 0.98));
    padding: 60px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.eyebrow, .section-kicker {
    font-size: 11px;
    letter-spacing: .18em;
    color: var(--cyan);
    font-weight: 800;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.eyebrow-line {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan));
    border-radius: 2px;
}

.avatar-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    position: relative;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .avatar-wrap:hover {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(56, 189, 248, 0.6);
    }

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #07111e;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    background: #0f1e32;
    color: var(--cyan);
    font-size: 28px;
    font-weight: 900;
}

.avatar-status {
    position: absolute;
    bottom: 4px;
    right: 6px;
    width: 16px;
    height: 16px;
    border: 3px solid #07111e;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 10px #34d399;
}

.role-label {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 4px;
    font-weight: 600;
}

.hero-panel h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.3;
    margin: 0;
    background: linear-gradient(180deg, #ffffff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.name-dot {
    color: var(--cyan);
    -webkit-text-fill-color: var(--cyan);
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.company-line {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 6px;
}

    .company-line strong {
        color: #f8fafc;
    }

.hero-bio {
    max-width: 500px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
    margin: 16px auto 26px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary-glow, .btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 14px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary-glow {
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: white;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

    .btn-primary-glow:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(56, 189, 248, 0.5);
        background: linear-gradient(135deg, #1d4ed8, #0284c7);
    }

.btn-quiet {
    border: 1px solid var(--line);
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    color: #cbd5e1;
}

    .btn-quiet:hover {
        border-color: rgba(56, 189, 248, 0.5);
        color: white;
        background: rgba(15, 28, 45, 0.9);
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image: linear-gradient(rgba(56, 189, 248, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

.panel-index {
    position: absolute;
    bottom: 18px;
    right: 24px;
    color: #64748b;
    font-size: 9px;
    letter-spacing: .15em;
    font-weight: 700;
}

    .panel-index span {
        color: var(--cyan);
    }

/* Links & Categories */
.links-section {
    padding: 60px 4px 40px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

    .section-heading h2 {
        font-size: clamp(26px, 4vw, 36px);
        font-weight: 900;
        line-height: 1.4;
        margin: 6px 0 0;
    }

        .section-heading h2 span {
            color: var(--cyan);
            text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
        }

    .section-heading p {
        font-size: 13px;
        color: var(--muted);
        margin: 0;
    }

.link-count {
    font-size: 26px;
    color: var(--cyan);
    font-weight: 900;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

    .link-count small {
        font-size: 11px;
        color: var(--muted);
        font-weight: 600;
    }

.category-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #e2e8f0;
    margin: 32px 0 14px;
    letter-spacing: .02em;
}

.category-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 3px;
    box-shadow: 0 0 15px var(--cyan);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Elite Interactive Link Cards with Mouse Spotlight Effect */
.link-card {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(7, 17, 30, 0.85), rgba(4, 11, 20, 0.9));
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .link-card:before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.15), transparent 50%);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
    }

    .link-card:hover:before {
        opacity: 1;
    }

    .link-card:hover {
        transform: translateY(-5px);
        border-color: var(--line-hover);
        background: linear-gradient(135deg, rgba(13, 29, 51, 0.95), rgba(7, 17, 30, 0.95));
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.12);
    }

.link-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--cyan);
    font-size: 20px;
    font-weight: 900;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.1);
}

.link-card:hover .link-icon {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.link-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

    .link-copy strong {
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #f8fafc;
    }

    .link-copy small {
        font-size: 11px;
        color: #94a3b8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 3px;
    }

.link-arrow {
    font-size: 18px;
    color: #64748b;
    transition: color 0.25s ease, transform 0.25s ease;
}

.link-card:hover .link-arrow {
    color: var(--cyan);
    transform: translate(-3px, -3px);
}

.will-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .will-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Contact Strip */
.contact-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 24px;
    background: radial-gradient(circle at 0 50%, rgba(37, 99, 235, 0.15), transparent 60%), #07111e;
    margin: 16px 0 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .contact-strip:hover {
        border-color: rgba(56, 189, 248, 0.45);
        box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(56, 189, 248, 0.15);
    }

.contact-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan);
    font-size: 26px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.2);
}

.contact-copy {
    flex: 1;
}

    .contact-copy h3 {
        font-size: 16px;
        font-weight: 900;
        margin: 0 0 4px;
        color: #f8fafc;
    }

    .contact-copy p {
        font-size: 12px;
        color: var(--muted);
        margin: 0;
    }

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .contact-actions a {
        font-size: 11px;
        padding: 9px 14px;
        border-radius: 10px;
        border: 1px solid var(--line);
        color: #cbd5e1;
        background: rgba(3, 7, 18, 0.5);
        transition: all 0.25s ease;
    }

        .contact-actions a:hover {
            border-color: var(--cyan);
            background: rgba(56, 189, 248, 0.15);
            color: var(--cyan);
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
        }

/* Footer */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 10px;
    padding: 16px 4px 6px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}

    .site-footer b {
        font-size: 9px;
        color: var(--cyan);
    }

    .site-footer a {
        color: #94a3b8;
        transition: color 0.2s;
    }

        .site-footer a:hover {
            color: var(--cyan);
        }

/* Dashboard / Admin Panels Styling */
.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #030712;
}

.admin-sidebar {
    padding: 28px 16px;
    border-left: 1px solid var(--line);
    background: #050d18;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .admin-sidebar .brand-mark {
        padding: 0 12px 28px;
        font-size: 13px;
    }

.admin-label {
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    padding: 8px 12px;
    letter-spacing: .08em;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    text-align: right;
    width: 100%;
    transition: all 0.2s ease;
}

    .admin-nav:hover, .admin-nav.active {
        color: #f8fafc;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(7, 17, 30, 0.5));
        border-color: rgba(56, 189, 248, 0.2);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .admin-nav.active {
        box-shadow: inset -3px 0 0 var(--cyan), 0 4px 20px rgba(0,0,0,0.2);
        color: #ffffff;
    }

.logout-form {
    margin-top: auto;
}

.admin-main {
    min-width: 0;
    padding: 40px clamp(20px, 4vw, 60px);
    max-width: 1500px;
    width: 100%;
    margin: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

    .admin-topbar h1 {
        font-size: clamp(26px, 3vw, 34px);
        font-weight: 900;
        margin: 6px 0 4px;
    }

    .admin-topbar p {
        font-size: 13px;
        color: var(--muted);
        margin: 0;
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card, .admin-panel {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(12, 25, 41, 0.9), rgba(7, 17, 30, 0.95));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .stat-card span {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 600;
    }

    .stat-card strong {
        font-size: 34px;
        color: #f8fafc;
        line-height: 1.3;
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    }

    .stat-card small {
        font-size: 11px;
        color: #64748b;
    }

.admin-panel {
    margin-bottom: 20px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

    .admin-panel h2, .panel-heading h2 {
        font-size: 17px;
        font-weight: 900;
        margin: 0 0 4px;
    }

    .admin-panel p, .panel-heading p {
        font-size: 12px;
        color: var(--muted);
        margin: 0;
    }

    .panel-heading > a {
        font-size: 12px;
        color: var(--cyan);
        font-weight: 700;
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

    .admin-table th {
        text-align: right;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        padding: 14px 12px;
        border-bottom: 1px solid var(--line);
    }

    .admin-table td {
        font-size: 12px;
        color: #cbd5e1;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    }

    .admin-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .admin-table td strong, .admin-table td small {
        display: block;
    }

    .admin-table td strong {
        color: #f1f5f9;
        font-size: 13px;
    }

    .admin-table td small {
        color: #64748b;
        font-size: 11px;
        max-width: 280px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        direction: ltr;
        text-align: right;
        margin-top: 2px;
    }

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
}

.is-active {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.is-off {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .table-actions a, .table-actions button, .delete-category button {
        border: 0;
        background: none;
        color: var(--cyan);
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        padding: 0;
    }

    .table-actions button, .delete-category button {
        color: #f87171;
    }

.empty-admin {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    padding: 35px;
}

.quick-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.edit-form {
    padding: clamp(20px, 3vw, 35px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.field {
    min-width: 0;
}

    .field.full {
        grid-column: 1 / -1;
    }

    .field textarea {
        resize: vertical;
        min-height: 100px;
    }

    .field small {
        display: block;
        color: #64748b;
        font-size: 11px;
        margin-top: 6px;
    }

.check-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

    .check-field label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 4px 0;
        cursor: pointer;
    }

    .check-field input, .category-row input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: var(--cyan);
        cursor: pointer;
    }

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.success-msg {
    padding: 14px 18px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

.login-card {
    width: min(100%, 440px);
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(7, 17, 30, 0.95);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

    .login-card h1 {
        font-size: 28px;
        font-weight: 900;
        margin: 8px 0;
    }

    .login-card p {
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 26px;
    }

    .login-card label, .field label, .category-row label {
        display: block;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 700;
        margin: 14px 0 8px;
    }

    .login-card input, .field input, .field textarea, .field select, .category-add input, .category-row input:not([type=hidden]) {
        width: 100%;
        background: #030712;
        color: var(--text);
        border: 1px solid rgba(56, 189, 248, 0.2);
        border-radius: 12px;
        padding: 12px 16px;
        outline: none;
        font-size: 13px;
        transition: all 0.25s ease;
    }

        .login-card input:focus, .field input:focus, .field textarea:focus, .field select:focus, .category-add input:focus {
            border-color: var(--cyan);
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
            background: #050d18;
        }

.category-add, .category-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr .6fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.category-row {
    grid-template-columns: 1.5fr 1.2fr .6fr auto auto;
}

    .category-row label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #cbd5e1;
        margin: 0;
    }

.mini-action {
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    background: rgba(7, 17, 30, 0.8);
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

    .mini-action:hover {
        background: rgba(56, 189, 248, 0.2);
        border-color: var(--cyan);
    }

.delete-category {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Profile image upload controls */
.upload-field {
    padding: 18px;
    margin: 10px 0;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 18px;
    background: rgba(3, 7, 18, 0.6);
}

.image-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0 6px;
}

.image-preview-wrap {
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.1));
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0f1e32;
    color: var(--cyan);
    font-size: 24px;
    font-weight: 900;
}

.logo-preview-wrap {
    border-radius: 18px;
}

.logo-preview {
    border-radius: 12px;
}

.logo-placeholder {
    border-radius: 12px;
    font-size: 15px;
}

.upload-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 200px;
    flex: 1;
}

.file-input {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-button {
    cursor: pointer;
    margin: 0;
}

.upload-controls small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.8;
}

.selected-file {
    color: #34d399;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Responsive Queries */
@media(max-width: 760px) {
    .public-shell {
        padding: 20px 16px;
    }

    .topline {
        margin-bottom: 20px;
    }

    .hero-panel {
        min-height: 440px;
        padding: 50px 20px;
    }

        .hero-panel h1 {
            font-size: 40px;
        }

    .links-section {
        padding-top: 45px;
    }

    .link-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .link-card {
        min-height: 80px;
    }

    .section-heading {
        align-items: center;
    }

        .section-heading h2 {
            font-size: 26px;
        }

    .contact-strip {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .contact-copy {
        min-width: calc(100% - 75px);
    }

    .contact-actions {
        width: 100%;
    }

    .site-footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px 16px;
    }

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

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 12px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        gap: 6px;
    }

        .admin-sidebar .brand-mark {
            padding: 0 8px;
            flex: 0 0 auto;
        }

            .admin-sidebar .brand-mark > span:last-child {
                display: none;
            }

        .admin-sidebar .brand-symbol {
            width: 34px;
            height: 34px;
        }

    .admin-label, .logout-form {
        display: none;
    }

    .admin-nav {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 12px;
        white-space: nowrap;
        font-size: 11px;
    }

    .admin-main {
        padding: 24px 16px;
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .stats-grid {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

        .stat-card strong {
            font-size: 28px;
        }

    .admin-panel {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .category-add {
        grid-template-columns: 1fr;
    }

    .category-row {
        grid-template-columns: 1fr;
    }

    .quick-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-card {
        padding: 26px;
    }
}

@media(max-width: 390px) {
    .public-shell {
        padding: 14px 12px;
    }

    .brand-mark {
        font-size: 12px;
    }

    .hero-panel h1 {
        font-size: 34px;
    }

    .eyebrow {
        font-size: 9px;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .stat-card {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

        .stat-card small {
            grid-column: 1 / -1;
        }

    .admin-nav span {
        display: none;
    }

    .admin-nav {
        font-size: 16px;
        padding: 9px 12px;
    }

    .admin-topbar {
        flex-direction: column;
    }

        .admin-topbar .btn-primary-glow {
            width: 100%;
        }
}

@media(max-width: 480px) {
    .image-upload-row {
        align-items: flex-start;
    }

    .upload-controls {
        min-width: 150px;
    }

    .image-preview-wrap {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }
}

.admin-sidebar .brand-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    flex-shrink: 0;
}

/* =========================================================
   BregoLinkHub — Mobile-first Admin UX refinements
   Appended overrides: preserve desktop styling, improve mobile
   ========================================================= */

/* Keep layout widths predictable and avoid accidental overflow */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.admin-layout,
.admin-main,
.admin-sidebar,
.admin-panel,
.admin-topbar,
.admin-table,
.edit-form,
.form-grid {
    min-width: 0;
}

.admin-layout {
    grid-template-columns: 260px minmax(0, 1fr);
}

/* Better tap targets and keyboard focus */
.admin-nav,
.admin-nav button,
.admin-main button,
.admin-main a,
.admin-main input,
.admin-main select,
.admin-main textarea {
    -webkit-tap-highlight-color: transparent;
}

    .admin-nav:focus-visible,
    .admin-main a:focus-visible,
    .admin-main button:focus-visible,
    .admin-main input:focus-visible,
    .admin-main select:focus-visible,
    .admin-main textarea:focus-visible {
        outline: 2px solid var(--cyan);
        outline-offset: 3px;
    }

/* Form controls: readable on mobile and avoid iOS zoom */
.admin-main input,
.admin-main select,
.admin-main textarea,
.login-card input,
.category-add input,
.category-row input:not([type=hidden]) {
    min-width: 0;
    max-width: 100%;
}

.admin-main input,
.admin-main select,
.admin-main textarea {
    scroll-margin-top: 90px;
}

/* Tables remain usable without forcing the entire page wider */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
}

/* Mobile navigation: compact, horizontally scrollable app bar */
@media (max-width: 760px) {
    .admin-layout {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 50;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 9px 10px;
        gap: 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        background: rgba(5, 13, 24, 0.97);
        backdrop-filter: blur(18px);
        border: 0;
        border-bottom: 1px solid var(--line);
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

        .admin-sidebar .brand-mark {
            flex: 0 0 auto;
            gap: 0;
            padding: 0 5px;
            margin: 0 0 0 3px;
        }

            .admin-sidebar .brand-mark > span:last-child {
                display: none;
            }

        .admin-sidebar .brand-symbol,
        .admin-sidebar .brand-logo {
            width: 36px;
            height: 36px;
            flex: 0 0 36px;
            border-radius: 11px;
        }

        .admin-label,
        .admin-sidebar .logout-form {
            display: none !important;
        }

        .admin-sidebar .admin-nav {
            flex: 0 0 auto;
            width: auto;
            min-height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 8px 11px;
            border-radius: 11px;
            font-size: 11px;
            line-height: 1.4;
            white-space: nowrap;
        }

            .admin-sidebar .admin-nav span {
                display: inline;
            }

            .admin-sidebar .admin-nav.active {
                box-shadow: inset 0 -2px 0 var(--cyan);
            }

    .admin-main {
        width: 100%;
        max-width: none;
        padding: 22px 14px calc(28px + env(safe-area-inset-bottom));
        margin: 0;
    }

    .admin-topbar {
        width: 100%;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 20px;
    }

        .admin-topbar h1 {
            font-size: clamp(23px, 6vw, 30px);
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .admin-topbar p {
            max-width: 100%;
            font-size: 12px;
            line-height: 1.8;
        }

    .section-kicker {
        font-size: 9px;
        letter-spacing: .12em;
        overflow-wrap: anywhere;
    }

    .admin-panel,
    .stat-card {
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 14px;
    }

        .admin-panel h2,
        .panel-heading h2 {
            font-size: 16px;
            line-height: 1.5;
        }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .stat-card {
        min-width: 0;
        gap: 5px;
        padding: 14px;
    }

        .stat-card span {
            font-size: 11px;
            line-height: 1.6;
        }

        .stat-card strong {
            font-size: clamp(23px, 6vw, 29px);
            overflow-wrap: anywhere;
        }

        .stat-card small {
            font-size: 10px;
            line-height: 1.6;
        }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .field.full {
        grid-column: auto;
    }

    .field label,
    .login-card label {
        font-size: 12px;
        line-height: 1.7;
    }

    .field input,
    .field select,
    .field textarea,
    .category-add input,
    .category-row input:not([type=hidden]),
    .login-card input {
        width: 100%;
        min-height: 45px;
        padding: 11px 12px;
        font-size: 16px;
        border-radius: 11px;
    }

    .field textarea {
        min-height: 110px;
    }

    .form-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 22px;
        padding-top: 18px;
    }

        .form-actions .btn-primary-glow,
        .form-actions .btn-quiet,
        .admin-topbar > .btn-primary-glow,
        .admin-topbar > a {
            width: 100%;
            min-height: 45px;
        }

    .btn-primary-glow,
    .btn-quiet {
        min-height: 44px;
        padding: 11px 15px;
        border-radius: 12px;
    }

    .quick-panel {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .category-add {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .category-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 12px 0;
    }

        .category-row label {
            min-height: 36px;
        }

        .category-row .mini-action {
            min-height: 40px;
        }

    .delete-category {
        justify-content: flex-start;
        margin-top: 10px;
    }

        .delete-category button {
            min-height: 38px;
            padding: 7px 12px;
        }

    .admin-table {
        min-width: 620px;
    }

        .admin-table th,
        .admin-table td {
            padding: 12px 10px;
        }

    .table-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .upload-field {
        padding: 13px;
        margin: 4px 0;
    }

    .image-upload-row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
    }

    .image-preview-wrap {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .upload-controls {
        min-width: 0;
        width: 100%;
        gap: 8px;
    }

        .upload-controls .upload-button {
            width: 100%;
            white-space: normal;
            text-align: center;
            line-height: 1.6;
        }

        .upload-controls small {
            font-size: 10px;
            overflow-wrap: anywhere;
        }

    .login-card {
        width: 100%;
        padding: 22px 18px;
        border-radius: 20px;
    }
}

/* Narrow phones: prioritize content width and thumb-friendly controls */
@media (max-width: 420px) {
    .admin-sidebar {
        padding: 8px;
        gap: 5px;
    }

        .admin-sidebar .brand-mark {
            padding: 0 2px;
        }

        .admin-sidebar .admin-nav {
            min-height: 38px;
            padding: 8px 9px;
            gap: 5px;
            font-size: 10px;
        }

    .admin-main {
        padding: 18px 11px calc(24px + env(safe-area-inset-bottom));
    }

    .admin-topbar {
        margin-bottom: 16px;
    }

    .admin-panel,
    .stat-card {
        padding: 13px;
        border-radius: 14px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card strong {
        font-size: 23px;
    }

    .admin-topbar .section-kicker {
        font-size: 8px;
    }

    .form-actions {
        gap: 8px;
    }

    .image-upload-row {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .image-preview-wrap {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   BregoTech Login — premium split-screen refresh
   Scoped to the login page so other screens keep their design
   ========================================================= */

.admin-login-page {
    --login-ink: #f4f8ff;
    --login-muted: #8ea1ba;
    --login-blue: #2563eb;
    --login-cyan: #38bdf8;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(18px, 3vw, 38px) clamp(18px, 5vw, 76px) 20px;
    background: radial-gradient(ellipse at 78% 45%, rgba(13, 57, 111, .22), transparent 43%), radial-gradient(ellipse at 12% 12%, rgba(37, 99, 235, .12), transparent 36%), linear-gradient(135deg, #030712 0%, #050c18 52%, #07111e 100%);
    color: var(--login-ink);
}

    .admin-login-page *,
    .admin-login-page *::before,
    .admin-login-page *::after {
        box-sizing: border-box;
    }

.login-ambient {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .24;
}

.login-ambient-one {
    width: 380px;
    height: 380px;
    top: 15%;
    left: 7%;
    background: #0759d5;
}

.login-ambient-two {
    width: 300px;
    height: 300px;
    right: 18%;
    bottom: -160px;
    background: #0284c7;
    opacity: .13;
}

.login-grid-pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: .13;
    background-image: linear-gradient(rgba(56, 189, 248, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .09) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.login-brandbar {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f8fbff;
    text-decoration: none;
}

.login-brand-symbol {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 14px;
    color: #04101f;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(145deg, #60d4ff, #2670f5 72%);
    box-shadow: 0 8px 28px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255,255,255,.5);
}

.login-brand-name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.03em;
}

    .login-brand-name span {
        color: var(--login-cyan);
    }

.login-home-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 12px;
    color: #b9c7d9;
    font-size: 12px;
    font-weight: 700;
    background: rgba(8, 20, 36, .58);
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

    .login-home-link:hover {
        color: #fff;
        border-color: rgba(56, 189, 248, .42);
        background: rgba(14, 35, 59, .8);
    }

    .login-home-link span {
        color: var(--login-cyan);
        font-size: 16px;
    }

.login-main {
    width: 100%;
    max-width: 1240px;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr);
    align-items: center;
    gap: clamp(40px, 8vw, 130px);
    margin: 0 auto;
    padding: clamp(32px, 5vh, 64px) 0;
}

.login-intro {
    position: relative;
    max-width: 590px;
    padding: 20px 0;
}

.login-overline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8ddcff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.login-overline-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, .85);
}

.login-visual-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    margin: 34px 0 30px;
}

.login-visual-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(56, 189, 248, .19);
    border-radius: 50%;
}

.login-visual-ring-one {
    transform: rotate(-24deg) scaleX(.72);
    border-color: rgba(56, 189, 248, .36);
}

.login-visual-ring-two {
    inset: 15px -13px;
    transform: rotate(42deg) scaleX(.8);
    border-color: rgba(37, 99, 235, .5);
}

.login-visual-core {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border: 1px solid rgba(125, 211, 252, .6);
    border-radius: 29px;
    color: #e8f8ff;
    font-size: 53px;
    font-weight: 900;
    background: linear-gradient(145deg, rgba(15, 55, 100, .95), rgba(7, 17, 30, .96));
    box-shadow: 0 0 55px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255,255,255,.13);
}

.login-orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #07111e;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 17px rgba(56, 189, 248, .8);
}

.login-orbit-dot-one {
    top: 17px;
    right: 27px;
}

.login-orbit-dot-two {
    left: 7px;
    top: 83px;
    background: #60a5fa;
}

.login-orbit-dot-three {
    bottom: 14px;
    right: 44px;
    width: 7px;
    height: 7px;
}

.login-intro h2 {
    margin: 0;
    color: #f5f9ff;
    font-size: clamp(30px, 3.3vw, 48px);
    font-weight: 900;
    line-height: 1.55;
    letter-spacing: -.04em;
}

    .login-intro h2 span {
        color: #60cfff;
        text-shadow: 0 0 35px rgba(56, 189, 248, .18);
    }

.login-intro > p {
    max-width: 440px;
    margin: 12px 0 26px;
    color: #91a3bb;
    font-size: 14px;
    line-height: 2;
}

.login-feature-list {
    display: grid;
    gap: 12px;
    max-width: 430px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid rgba(100, 145, 190, .12);
    border-radius: 15px;
    background: linear-gradient(110deg, rgba(10, 26, 45, .68), rgba(7, 17, 30, .35));
}

.login-feature-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid rgba(56, 189, 248, .19);
    border-radius: 12px;
    color: #67d4ff;
    background: rgba(37, 99, 235, .13);
    font-size: 20px;
    font-weight: 800;
}

.login-feature strong,
.login-feature small {
    display: block;
}

.login-feature strong {
    color: #e5edf8;
    font-size: 12px;
    font-weight: 800;
}

.login-feature small {
    margin-top: 2px;
    color: #8194ad;
    font-size: 10px;
}

.login-visual-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 34px;
    color: #5e718a;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.login-footer-line {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, #38bdf8, transparent);
}

.login-form-side {
    width: 100%;
    max-width: 470px;
    justify-self: start;
}

.login-card-premium {
    position: relative;
    width: 100%;
    padding: clamp(28px, 3.2vw, 43px);
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 28px;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .12), transparent 36%), linear-gradient(145deg, rgba(9, 21, 37, .98), rgba(5, 13, 24, .98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(24px);
}

    .login-card-premium::before {
        content: "";
        position: absolute;
        top: 0;
        right: 32px;
        left: 32px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .7), transparent);
    }

.login-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.login-card-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 14px;
    color: #65d3ff;
    background: rgba(37, 99, 235, .14);
}

    .login-card-icon svg {
        width: 23px;
        height: 23px;
    }

.login-card-premium .section-kicker {
    color: #6bd5ff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .16em;
}

.login-card-premium h1 {
    margin: 0;
    color: #f5f8ff;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 900;
    line-height: 1.45;
}

.login-card-premium .login-subtitle {
    margin: 7px 0 25px;
    color: #8ea1ba;
    font-size: 12px;
    line-height: 1.9;
}

.login-card-premium .login-field {
    margin-top: 18px;
}

    .login-card-premium .login-field label {
        display: block;
        margin: 0 0 9px;
        color: #d1dceb;
        font-size: 12px;
        font-weight: 800;
    }

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-secure-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f8ba8;
    font-size: 10px;
    white-space: nowrap;
}

    .login-secure-label span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #34d399;
        box-shadow: 0 0 9px rgba(52, 211, 153, .55);
    }

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    border: 1px solid rgba(124, 158, 194, .2);
    border-radius: 13px;
    background: rgba(3, 9, 18, .72);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .login-input-wrap:focus-within {
        border-color: rgba(56, 189, 248, .75);
        background: rgba(5, 15, 28, .96);
        box-shadow: 0 0 0 4px rgba(56, 189, 248, .09);
    }

.login-input-icon {
    display: grid;
    place-items: center;
    width: 48px;
    flex: 0 0 48px;
    color: #6f89a7;
}

    .login-input-icon svg {
        width: 20px;
        height: 20px;
    }

.login-input-wrap input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 0 0 15px;
    border: 0;
    outline: 0;
    border-radius: 13px;
    background: transparent;
    color: #f4f8ff;
    font-size: 13px;
    box-shadow: none;
    direction: rtl;
}

    .login-input-wrap input::placeholder {
        color: #5d7189;
        opacity: 1;
    }

    .login-input-wrap input:focus {
        border: 0;
        outline: 0;
        box-shadow: none;
        background: transparent;
    }

.login-password-toggle {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    margin-left: 5px;
    border: 0;
    border-radius: 10px;
    color: #8198b4;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

    .login-password-toggle:hover,
    .login-password-toggle:focus-visible {
        color: #7ddcff;
        background: rgba(56, 189, 248, .08);
        outline: none;
    }

    .login-password-toggle svg {
        width: 20px;
        height: 20px;
    }

.login-card-premium .login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 25px;
    padding: 0 18px 0 16px;
    border: 1px solid rgba(96, 207, 255, .45);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(110deg, #2563eb, #087fca);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .23), inset 0 1px 0 rgba(255,255,255,.13);
    font-size: 13px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

    .login-card-premium .login-submit:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: 0 16px 32px rgba(37, 99, 235, .32);
    }

.login-submit-arrow {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 9px;
    background: rgba(255,255,255,.1);
    font-size: 17px;
}

.login-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #7d91aa;
    font-size: 10px;
    line-height: 1.8;
}

.login-security-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(52, 211, 153, .3);
    border-radius: 50%;
    color: #34d399;
    background: rgba(52, 211, 153, .08);
    font-size: 11px;
    font-weight: 900;
}

.login-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .11);
    color: #a6b6ca;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease;
}

    .login-back-link:hover {
        color: #7ddcff;
    }

    .login-back-link span {
        color: #60cfff;
        font-size: 16px;
    }

.login-card-premium .login-validation {
    margin: 0 0 14px;
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.8;
}

    .login-card-premium .login-validation:empty {
        display: none;
    }

.login-copyright {
    margin: 18px 0 0;
    color: #596d85;
    text-align: center;
    font-size: 10px;
}

    .login-copyright span {
        padding: 0 5px;
        color: #38bdf8;
    }

@media (max-width: 900px) {
    .admin-login-page {
        padding: 20px 24px;
    }

    .login-main {
        grid-template-columns: minmax(0, .9fr) minmax(340px, 1fr);
        gap: 35px;
    }

    .login-visual-mark {
        width: 145px;
        height: 145px;
        margin: 26px 0;
    }

    .login-visual-core {
        width: 78px;
        height: 78px;
        border-radius: 24px;
        font-size: 43px;
    }

    .login-intro h2 {
        font-size: clamp(28px, 3.5vw, 38px);
    }

    .login-intro > p {
        font-size: 12px;
    }

    .login-feature-list {
        gap: 8px;
    }

    .login-feature {
        padding: 10px;
    }
}

@media (max-width: 680px) {
    .admin-login-page {
        padding: 16px 16px 22px;
    }

    .login-brand-symbol {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
        font-size: 21px;
    }

    .login-brand-name {
        font-size: 15px;
    }

    .login-home-link {
        padding: 8px 10px;
        font-size: 11px;
    }

    .login-main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 22px;
        padding: 30px 0 12px;
    }

    .login-intro {
        width: 100%;
        max-width: 470px;
        padding: 0;
        text-align: center;
    }

    .login-visual-mark {
        width: 94px;
        height: 94px;
        margin: 18px auto 17px;
    }

    .login-visual-core {
        width: 57px;
        height: 57px;
        border-radius: 18px;
        font-size: 32px;
    }

    .login-orbit-dot-one {
        top: 8px;
        right: 14px;
    }

    .login-orbit-dot-two {
        left: 2px;
        top: 43px;
    }

    .login-orbit-dot-three {
        bottom: 6px;
        right: 22px;
    }

    .login-intro h2 {
        font-size: 25px;
        line-height: 1.45;
    }

    .login-intro > p {
        max-width: 370px;
        margin: 8px auto 0;
        font-size: 11px;
    }

    .login-feature-list,
    .login-visual-footer {
        display: none;
    }

    .login-form-side {
        max-width: 470px;
        margin: 0 auto;
    }

    .login-card-premium {
        padding: 25px 21px;
        border-radius: 23px;
    }

    .login-card-heading {
        margin-bottom: 16px;
    }

    .login-card-premium h1 {
        font-size: 27px;
    }

    .login-card-premium .login-subtitle {
        margin-bottom: 20px;
    }

    .login-card-premium .login-field {
        margin-top: 15px;
    }

    .login-card-premium .login-submit {
        margin-top: 21px;
    }

    .login-copyright {
        margin-top: 13px;
    }
}

@media (max-width: 380px) {
    .login-brand-name {
        font-size: 13px;
    }

    .login-home-link {
        gap: 5px;
        padding: 7px 8px;
        font-size: 10px;
    }

    .login-main {
        padding-top: 23px;
    }

    .login-intro h2 {
        font-size: 23px;
    }

    .login-card-premium {
        padding: 22px 16px;
    }

    .login-input-icon {
        width: 40px;
        flex-basis: 40px;
    }

    .login-input-wrap input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-login-page *,
    .admin-login-page *::before,
    .admin-login-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
