@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #eef1f4;
    --panel: #ffffff;
    --line: #e3e7ee;
    --text: #1a2233;
    --muted: #7f8a9b;
    --accent: #54c6d8;
    --accent-2: #6dd9ca;
    --shadow: 0 10px 30px rgba(25, 35, 58, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 0% 0%, #d8edf5, transparent 35%),
                radial-gradient(circle at 100% 100%, #dde9f1, transparent 35%),
                var(--bg);
    min-height: 100vh;
}

.app-bg {
    position: fixed;
    inset: -25%;
    pointer-events: none;
    background: conic-gradient(from 0deg, rgba(84,198,216,0.08), rgba(110,217,202,0.08), rgba(84,198,216,0.08));
    filter: blur(80px);
    animation: rotateAura 24s linear infinite;
    z-index: -1;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .9);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #ccebf1;
    border-top-color: #48bbcd;
    animation: spinLoader .8s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

@keyframes rotateAura {
    from { transform: rotate(0deg) scale(1.05); }
    to { transform: rotate(360deg) scale(1.05); }
}

.layout-shell {
    display: grid;
    grid-template-columns: 88px 1fr;
    min-height: 100vh;
}

.sidebar-rail {
    border-right: 1px solid var(--line);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0;
    gap: 1.25rem;
    animation: fadeUp .45s ease;
}

.rail-brand {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .4px;
    box-shadow: 0 10px 18px rgba(84,198,216,.35);
}

.rail-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.rail-link {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #688197;
    text-decoration: none;
    border: 1px solid transparent;
    background: #fff;
    box-shadow: 0 4px 14px rgba(30,43,66,.07);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.rail-link:hover,
.rail-link.active {
    transform: translateY(-2px);
    background: linear-gradient(140deg, rgba(84,198,216,.2), rgba(109,217,202,.2));
    color: #14515e;
    border-color: rgba(84,198,216,.25);
}

.content-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-shell {
    height: 86px;
    padding: 0 1.6rem;
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: #202c43;
}

.top-search {
    flex: 1;
    max-width: 680px;
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .7rem .95rem;
}

.top-search i { color: #6f7d90; }
.top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.lang-pill,
.profile-pill {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: .5rem .9rem;
    font-weight: 600;
    color: #253248;
}

.page-shell {
    padding: 1.25rem 1.4rem 1.6rem;
    position: relative;
}

.page-head {
    margin-bottom: 1rem;
}

.page-head h4 {
    font-weight: 800;
    letter-spacing: .2px;
}

.page-head small { color: var(--muted); }

.glass-card,
.login-card,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 20px;
    color: var(--text);
}

.card-header {
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-weight: 700;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}

.stat-card:hover { transform: translateY(-3px); }
.stat-card p { color: var(--muted); margin-bottom: .35rem; }
.stat-card h3 { font-weight: 800; }

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #d8dfe8;
    color: #172338;
    background: #fdfefe;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(84,198,216,.65);
    box-shadow: 0 0 0 .2rem rgba(84,198,216,.2);
}

.btn-glow {
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 18px rgba(84,198,216,.34);
}

.btn-glow:hover { filter: brightness(1.04); }

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #243349;
}

.table thead th { color: #6e7f92; font-weight: 700; }

.list-group-item {
    border: 1px solid var(--line);
    border-radius: 12px !important;
    margin-bottom: .55rem;
}

.hero-banner {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(120deg, #f8fcff, #f1fbf8);
}

.news-box,
.request-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafcfe;
    padding: .8rem;
}

.report-grid {
    display: grid;
    gap: .75rem;
}

.report-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff;
    padding: .85rem;
    animation: fadeUp .28s ease;
}

.dev-zone-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(84,198,216,.35);
    border-radius: 20px;
    padding: 1.1rem;
    background: linear-gradient(130deg, #e6f8ff 0%, #f4fffb 50%, #ebf6ff 100%);
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(36, 80, 106, .14);
    transition: transform .22s ease, box-shadow .22s ease;
}

.dev-zone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(36, 80, 106, .2);
}

.dev-zone-card::before {
    content: "";
    position: absolute;
    inset: -50% auto auto -30%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84,198,216,.3), transparent 70%);
    animation: floatOrb 5s ease-in-out infinite;
}

.dev-zone-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,217,202,.22), transparent 70%);
}

.dev-zone-card .zone-body {
    position: relative;
    z-index: 2;
}

.dev-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #1d5c6c;
}

.dev-zone-pulse {
    animation: devPulse .55s ease;
}

@keyframes devPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.developer-photo {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid rgba(84,198,216,.4);
    box-shadow: 0 10px 20px rgba(37, 89, 116, .2);
}

.dev-modal .modal-content {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(22, 40, 64, .2);
}

.dev-modal .modal-header {
    background: linear-gradient(120deg, #f2fbff, #f5fffb);
}

.live-time-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: .85rem;
}

.live-time-card .time {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a2b43;
}

.live-time-card .date {
    color: #6f7d90;
    font-size: .9rem;
}

.website-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .55rem .7rem;
    background: #fff;
}

.website-row a {
    color: #1b3f5d;
    text-decoration: none;
    max-width: 72%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(130deg, #f7fcff 0%, #eef8ff 55%, #f4fffa 100%);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    overflow: hidden;
}

.client-hero-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84,198,216,.28), rgba(109,217,202,.05));
    animation: floatOrb 6s ease-in-out infinite;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.client-hero-label {
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #5a7f95;
    font-weight: 700;
}

.client-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.metric-chip {
    background: rgba(255,255,255,.8);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .6rem .7rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .87rem;
    color: #2b445d;
}

.metric-chip i {
    color: #2c9ab0;
}

.client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(140deg, #49bfd1, #58dbc6);
    box-shadow: 0 10px 20px rgba(84,198,216,.3);
}

.client-timeline {
    display: grid;
    gap: .45rem;
    font-size: .92rem;
    color: #4e6277;
}

.client-chat-card .chat-body {
    height: 52vh;
}

.social-float {
    position: fixed;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    z-index: 50;
}

.social-float a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    text-decoration: none;
    display: grid;
    place-items: center;
    color: #24506a;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 6px 16px rgba(22, 40, 64, .1);
}

.social-float a:hover {
    background: linear-gradient(120deg, rgba(84,198,216,.2), rgba(109,217,202,.2));
}

.chat-shell { overflow: hidden; }
.chat-body {
    height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 1rem;
    background: #f8fafd;
}

.msg {
    max-width: 74%;
    border-radius: 14px;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    background: #fff;
    animation: fadeUp .24s ease;
}

.msg.mine {
    align-self: flex-end;
    color: #114f5a;
    background: linear-gradient(110deg, rgba(84,198,216,.25), rgba(109,217,202,.3));
}

.msg.theirs { align-self: flex-start; }
.msg small { display: block; margin-top: .3rem; color: #7f8b99; font-size: .72rem; }

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.login-card {
    width: min(94vw, 520px);
    padding: 2rem;
}

.text-soft { color: #607186; }
.link-light-opacity { color: #4586a0; text-decoration: none; }
.link-light-opacity:hover { text-decoration: underline; }

.fade-in-up { animation: fadeUp .5s ease both; }
.slide-in { animation: slideIn .55s ease both; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991px) {
    .layout-shell { grid-template-columns: 74px 1fr; }
    .top-search { max-width: none; }
    .client-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .topbar-shell { padding: .8rem; gap: .5rem; }
    .topbar-right { display: none; }
    .page-shell { padding: 1rem; }
    .chat-body { height: 56vh; }
    .client-chat-card .chat-body { height: 48vh; }
    .social-float { display: none; }
    .client-metric-grid { grid-template-columns: 1fr; }
}
