* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Tahoma, sans-serif; background: #0b1220; color: #e2e8f0; }
a { color: #93c5fd; text-decoration: none; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: linear-gradient(135deg, #0b1220 0%, #1e1b4b 100%); }
.login-box { width: 100%; max-width: 400px; }
.login-brand { text-align: center; margin-bottom: 1.25rem; }
.login-brand strong { display: block; font-size: 1.35rem; color: #ffffff; }
.login-brand small { color: #e2e8f0; }

/* App shell */
.platform-app { display: flex; min-height: 100vh; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.sidebar-overlay.show { display: block; }
.sidebar {
    width: 260px; flex-shrink: 0; background: #111827; border-right: 1px solid #1f2937;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 50;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem 1rem; border-bottom: 1px solid #1f2937; }
.brand-icon { font-size: 1.5rem; }
.sidebar-brand strong { display: block; font-size: 0.95rem; }
.sidebar-brand small { color: #64748b; font-size: 0.75rem; }
.sidebar-nav { flex: 1; padding: 0.75rem 0.5rem; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0.85rem; margin-bottom: 0.2rem;
    border-radius: 10px; color: #cbd5e1; font-size: 0.9rem; transition: background .15s;
}
.nav-item:hover { background: #1f2937; color: #fff; }
.nav-item.active { background: #4f46e5; color: #fff; }
.nav-badge {
    margin-left: auto; min-width: 18px; height: 18px; padding: 0 0.35rem; border-radius: 999px;
    background: #ef4444; color: #fff; font-size: 0.62rem; font-weight: 700; display: inline-flex;
    align-items: center; justify-content: center;
}
.btn-danger-solid { background: #b91c1c; border: 1px solid #991b1b; color: #fff !important; }
.btn-danger-solid:hover { background: #991b1b; }
.bin-note { margin: 0.25rem 0 0; font-size: 0.76rem; color: #94a3b8; line-height: 1.45; max-width: 520px; }
.bin-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bin-modal-backdrop {
    position: fixed; inset: 0; z-index: 30000; background: rgba(2, 6, 23, 0.78);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.bin-modal-backdrop[hidden] { display: none !important; }
.bin-modal {
    width: 100%; max-width: 440px; background: #111827; border: 1px solid #334155;
    border-radius: 14px; padding: 1.2rem 1.25rem; color: #e2e8f0;
}
.bin-modal h3 { margin: 0 0 0.5rem; color: #f8fafc; font-size: 1.05rem; }
.bin-modal-site { margin: 0 0 0.5rem; font-weight: 600; color: #fde68a; font-size: 0.9rem; }
.bin-modal-warn { margin: 0 0 0.65rem; font-size: 0.82rem; color: #fca5a5; line-height: 1.45; }
.bin-modal-otp-hint { margin: 0 0 0.75rem; font-size: 0.78rem; color: #94a3b8; }
.bin-modal-steps { display: grid; gap: 0.65rem; margin-bottom: 0.65rem; }
.bin-otp-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; }
.bin-otp-label input { margin-top: 0; }
.bin-modal-msg { min-height: 1.2rem; font-size: 0.8rem; margin: 0 0 0.75rem; }
.bin-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.nav-icon { width: 1.25rem; text-align: center; opacity: .9; }
.sidebar-foot { padding: 0.75rem; border-top: 1px solid #1f2937; }
.user-chip { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem; margin-bottom: 0.35rem; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: #4f46e5; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.user-meta strong { display: block; font-size: 0.8rem; word-break: break-all; color: #ffffff; }
.user-meta small { color: #cbd5e1; font-size: 0.72rem; word-break: break-all; }
.logout-link { color: #f87171 !important; }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top-header {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem;
    background: #111827; border-bottom: 1px solid #1f2937; position: sticky; top: 0; z-index: 30;
}
.menu-toggle {
    display: none; background: #1f2937; border: 1px solid #374151; color: #f8fafc;
    border-radius: 8px; padding: 0.4rem 0.65rem; cursor: pointer; font-size: 1.1rem;
}
.page-title { margin: 0; font-size: 1.15rem; flex: 1; color: #ffffff; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Notifications */
.notif-wrap { position: relative; }
.notif-btn {
    position: relative; background: #1f2937; border: 1px solid #374151; color: #e2e8f0;
    border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.notif-badge {
    position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 0.65rem;
    min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.notif-panel {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, 90vw);
    max-height: min(420px, 70vh);
    background: #1e293b; border: 1px solid #334155; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.4); z-index: 60;
    overflow: hidden; flex-direction: column;
}
.notif-panel.open { display: flex; }
.notif-scroll {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: #475569 #1e293b;
}
.notif-scroll::-webkit-scrollbar { width: 8px; }
.notif-scroll::-webkit-scrollbar-track { background: #1e293b; }
.notif-scroll::-webkit-scrollbar-thumb { background: #475569; border-radius: 999px; }
.notif-scroll::-webkit-scrollbar-thumb:hover { background: #64748b; }
.notif-head {
    flex: 0 0 auto;
    padding: 0.75rem 1rem; font-weight: 700; border-bottom: 1px solid #334155; font-size: 0.9rem; color: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.notif-head-count { font-size: 0.72rem; font-weight: 600; color: #fca5a5; }
.notif-view-all {
    flex: 0 0 auto; display: block; padding: 0.7rem 1rem; text-align: center; font-size: 0.82rem; font-weight: 600;
    color: #93c5fd; border-top: 1px solid #334155; background: #0f172a;
}
.notif-view-all:hover { background: #111827; color: #bfdbfe; }
.notif-empty { padding: 1rem; color: #94a3b8; font-size: 0.85rem; }
.notif-item { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid #334155; color: inherit; }
.notif-item:hover { background: #0f172a; }
.notif-item strong { display: block; font-size: 0.82rem; margin-bottom: 0.15rem; }
.notif-item span { font-size: 0.75rem; color: #94a3b8; }
.notif-danger strong { color: #fca5a5; }
.notif-warn strong { color: #fde68a; }
.notif-info strong { color: #93c5fd; }

/* Notification history page */
.plat-notif-page { max-width: 920px; }
.plat-notif-head { margin-bottom: 0.85rem; }
.plat-notif-tabs-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem;
}
.plat-notif-tabs { display: inline-flex; gap: 0.35rem; background: #111827; border: 1px solid #334155; border-radius: 999px; padding: 4px; }
.plat-notif-tab {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border-radius: 999px;
    font-size: 0.84rem; font-weight: 600; color: #94a3b8;
}
.plat-notif-tab.active { background: #4f46e5; color: #fff; }
.plat-notif-badge {
    min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; padding: 0 0.3rem;
}
.plat-notif-badge.unread { background: #ef4444; color: #fff; }
.plat-notif-badge.read { background: #475569; color: #e2e8f0; }
.btn-danger-outline { background: transparent; border: 1px solid #b91c1c; color: #fca5a5; }
.btn-danger-outline:hover { background: #450a0a; }
.plat-notif-card { padding: 0; overflow: hidden; }
.plat-notif-empty { padding: 2rem 1rem; text-align: center; color: #94a3b8; margin: 0; }
.plat-notif-list { display: flex; flex-direction: column; }
.plat-notif-row {
    display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border-bottom: 1px solid #334155;
}
.plat-notif-row:last-child { border-bottom: 0; }
.plat-notif-row.is-unread { background: rgba(79, 70, 229, 0.06); }
.plat-notif-sno {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; background: #334155; color: #e2e8f0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
}
.plat-notif-body { flex: 1; min-width: 0; }
.plat-notif-title { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; color: #f8fafc; }
.plat-notif-meta { display: block; font-size: 0.8rem; color: #94a3b8; }
.plat-notif-link { display: inline-block; margin-top: 0.35rem; font-size: 0.78rem; color: #93c5fd; }
.plat-notif-actions { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.plat-notif-time { color: #64748b; font-size: 0.74rem; }
.plat-notif-readed-pill {
    font-size: 0.72rem; font-weight: 600; color: #86efac; background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35); border-radius: 999px; padding: 0.2rem 0.55rem;
}
.notif-danger-text { color: #fca5a5; }
.notif-warn-text { color: #fde68a; }
.notif-info-text { color: #93c5fd; }
.plat-notif-pager {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem; border-top: 1px solid #334155; background: #111827;
}
.plat-notif-pager small { color: #94a3b8; }
.plat-notif-pager-btns { display: flex; gap: 0.4rem; }

/* Sites list pagination */
.detail-hero-range { color: #64748b; font-weight: 500; }
.sites-pager {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
    padding: 0.85rem 0 0; margin-top: 0.85rem; border-top: 1px solid #334155;
}
.sites-pager small { color: #94a3b8; }
.sites-pager-btns { display: flex; gap: 0.4rem; }
@media (max-width: 640px) {
    .plat-notif-row { flex-wrap: wrap; }
    .plat-notif-actions { flex: 0 0 100%; flex-direction: row; justify-content: space-between; align-items: center; }
}

.page-content { padding: 1.25rem; flex: 1; }

/* Cards & stats */
.card { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 1.25rem; margin-bottom: 1rem; }
.card-narrow { max-width: 480px; }
.card-title { margin: 0 0 0.35rem; font-size: 1.1rem; color: #f8fafc; }
.card-sub { margin: 0 0 1rem; color: #94a3b8; font-size: 0.88rem; }
.card-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-earnings { margin-bottom: 0.75rem; }
.stats-sites { margin-bottom: 0.5rem; }
.stat-money { border-color: #059669; background: linear-gradient(180deg, #1e293b 0%, #0f2a22 100%); }
.stat-money strong { color: #6ee7b7; }
.stat-card-link {
    display: block; text-align: center; color: inherit; text-decoration: none;
    transition: transform .15s, border-color .15s, box-shadow .15s; cursor: pointer;
}
.stat-card-link:hover { transform: translateY(-2px); border-color: #4f46e5; box-shadow: 0 8px 20px rgba(0,0,0,.25); color: inherit; }
.stat-card-active { border-color: #4f46e5 !important; box-shadow: 0 0 0 2px rgba(79,70,229,.35); }
.stat-card-hint { display: block; font-size: 0.68rem; color: #64748b; font-style: normal; margin-top: 0.35rem; }
.stat-card-blue { border-color: #1e3a5f; }
.stat-card-blue:hover { border-color: #3b82f6; }
.stat-card-green { border-color: #14532d; background: linear-gradient(180deg, #1e293b 0%, #0f2418 100%); }
.stat-card-green strong { color: #bbf7d0; }
.stat-card-warn { border-color: #713f12; background: linear-gradient(180deg, #1e293b 0%, #2a1f0f 100%); }
.stat-card-warn strong { color: #fde68a; }
.filters-wrap { max-width: 100%; }
.tag-inline { display: inline-block; margin-top: 0.2rem; }
.tag-free { background: #1e3a5f; color: #93c5fd; padding: 0.1rem 0.4rem; border-radius: 999px; font-size: 0.68rem; }
.history-table { min-width: 520px; }
.stat { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 1rem; text-align: center; }
.stat strong { display: block; font-size: 1.6rem; color: #f8fafc; }
.stat span { font-size: 0.78rem; color: #94a3b8; }

/* Dashboard detail pages */
.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.85rem; color: #94a3b8; }
.back-link:hover { color: #93c5fd; }
.page-content:has(.sites-list-page) { padding-top: 0.55rem; }
.sites-list-head {
    align-items: flex-end; gap: 0.75rem; flex-wrap: wrap;
}
.sites-list-title-wrap { min-width: 0; }
.back-link-inline {
    display: inline-block; margin-bottom: 0.2rem; font-size: 0.72rem; font-weight: 600; color: #64748b;
}
.back-link-inline:hover { color: #93c5fd; }
.sites-list-title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem; }
.sites-list-count {
    font-size: 0.72rem; font-weight: 600; color: #64748b; background: #0f172a;
    border: 1px solid #334155; border-radius: 999px; padding: 0.12rem 0.5rem;
}
.sites-filter-dropdowns {
    display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: flex-end; margin-left: auto;
}
.sites-filter-field {
    display: flex; flex-direction: column; gap: 0.22rem; min-width: 148px;
}
.sites-filter-field > span {
    font-size: 0.66rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em;
}
.sites-filter-select {
    width: 100%; margin: 0; padding: 0.45rem 2rem 0.45rem 0.65rem; border-radius: 8px;
    border: 1px solid #475569; background: #0f172a; color: #f8fafc; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.55rem center;
}
.sites-filter-select:hover { border-color: #6366f1; }
.sites-filter-select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25); }
@media (max-width: 640px) {
    .sites-list-head { flex-direction: column; align-items: stretch; }
    .sites-filter-dropdowns { margin-left: 0; width: 100%; }
    .sites-filter-field { flex: 1 1 calc(50% - 0.3rem); min-width: 130px; }
}
.detail-hero {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
    background: #1e293b; border: 1px solid #334155; border-radius: 14px;
}
.detail-hero-money { border-color: #059669; background: linear-gradient(135deg, #1e293b 0%, #0f2a22 100%); }
.detail-hero-dashboard { border-color: #4f46e5; }
.detail-hero-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; width: 48px; text-align: center; }
.detail-hero-title { margin: 0 0 0.35rem; font-size: 1.15rem; color: #ffffff; }
.detail-hero-desc { margin: 0; color: #94a3b8; font-size: 0.86rem; line-height: 1.55; max-width: 640px; }
.detail-hero-count { margin: 0.5rem 0 0; font-size: 0.82rem; color: #64748b; }
.detail-hero-count strong { color: #93c5fd; }
.dash-section { margin-bottom: 1.25rem; }
.dash-section-title { margin: 0 0 0.65rem; font-size: 0.88rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.quick-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick-links a { font-size: 0.8rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: #0f172a; color: #94a3b8; border: 1px solid #334155; }
.quick-links a:hover { color: #fff; border-color: #4f46e5; }
.dash-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.preview-list { list-style: none; margin: 0; padding: 0; }
.preview-item {
    display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0; border-bottom: 1px solid #334155;
}
.preview-item:last-child { border-bottom: none; }
.preview-main strong { display: block; font-size: 0.88rem; color: #f8fafc; }
.preview-main span { font-size: 0.75rem; color: #64748b; }
.preview-meta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.preview-action { font-size: 0.78rem; font-weight: 600; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
.btn-ghost { background: transparent; border: 1px solid #475569; color: #cbd5e1 !important; }
.btn-ghost:hover { background: #1f2937; border-color: #4f46e5; }
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem; }
.month-chip { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 0.75rem; text-align: center; }
.month-chip-label { display: block; font-size: 0.75rem; color: #94a3b8; margin-bottom: 0.25rem; }
.month-chip-amount { display: block; font-size: 1rem; color: #6ee7b7; }
.month-chip small { font-size: 0.68rem; color: #64748b; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 720px; }
th, td { padding: 0.7rem 0.55rem; border-bottom: 1px solid #334155; text-align: left; vertical-align: top; color: #e2e8f0; }
th { color: #94a3b8; font-weight: 600; white-space: nowrap; }

/* Sites list — full L↔R scroll, words stay readable */
.sites-table-wrap {
    overflow-x: scroll; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: #64748b #1e293b;
    border: 1px solid #334155; border-radius: 10px; background: #0f172a;
    max-width: 100%;
}
.sites-table-wrap::-webkit-scrollbar { height: 12px; }
.sites-table-wrap::-webkit-scrollbar-track { background: #1e293b; border-radius: 0 0 10px 10px; }
.sites-table-wrap::-webkit-scrollbar-thumb { background: #64748b; border-radius: 999px; border: 2px solid #1e293b; }
.sites-table-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.sites-table-scroll-hint {
    display: block; font-size: 0.74rem; color: #64748b; margin: 0 0 0.55rem; text-align: center;
}
.sites-table {
    width: max-content; min-width: 100%; table-layout: auto; margin: 0; border-collapse: separate; border-spacing: 0;
}
.sites-table th,
.sites-table td {
    padding: 0.7rem 0.75rem; font-size: 0.84rem; line-height: 1.5;
    white-space: normal; word-break: normal; overflow-wrap: break-word; hyphens: none;
    vertical-align: top;
}
.sites-table thead th {
    background: #1e293b; position: sticky; top: 0; z-index: 1;
    white-space: nowrap;
}
.sites-table tbody tr:hover td { background: rgba(15, 23, 42, 0.55); }
.sites-table .col-sno { min-width: 58px; text-align: center; }
.sites-table .sno-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 30px; padding: 0 0.4rem; border-radius: 8px;
    background: #334155; color: #e2e8f0; font-size: 0.8rem; font-weight: 700;
}
.sites-table .col-domain { min-width: 190px; }
.sites-table .col-status { min-width: 150px; }
.sites-table .col-db { min-width: 120px; }
.sites-table .col-customer { min-width: 220px; }
.sites-table .col-urls { min-width: 90px; }
.sites-table .col-expiry { min-width: 118px; }
.sites-table .col-site-status { min-width: 100px; }
.sites-table .col-actions { min-width: 250px; }
.sites-table .domain-link,
.sites-table .paper-name-text,
.sites-table .cell-sub,
.sites-table .db-pill,
.sites-table .badge,
.sites-table .expiry-pill {
    white-space: normal; word-break: normal; overflow-wrap: break-word;
}
.sites-table .paper-name-text { display: block; font-weight: 700; color: #f8fafc; margin-bottom: 0.15rem; }
.sites-table .domain-link { line-height: 1.4; font-weight: 600; }
.sites-table .cell-sub { line-height: 1.45; margin-top: 0.2rem; }
.sites-table .db-pill { display: inline-block; }
.sites-table .badge { line-height: 1.35; text-align: left; }
.sites-table .actions-cell { white-space: normal; }
.badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-active { background: #14532d; color: #bbf7d0; }
.badge-expired { background: #713f12; color: #fde68a; }
.badge-blocked { background: #7f1d1d; color: #fecaca; }
.badge-domain-temp { background: #1e3a5f; color: #93c5fd; }
.badge-domain-pending { background: #713f12; color: #fde68a; }
.badge-domain-live { background: #14532d; color: #6ee7b7; }
.detail-hero-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filters a { padding: 0.3rem 0.65rem; border-radius: 999px; background: #0f172a; color: #94a3b8; font-size: 0.8rem; }
.filters a.active { background: #4f46e5; color: #fff; }
.filters-group { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-end; }
.filters-label { font-size: 0.68rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; align-self: flex-start; }
.card-head-stack { align-items: flex-start; flex-wrap: wrap; gap: 0.75rem; }
.stats-domain { grid-template-columns: repeat(3, 1fr); }

.btn {
    display: inline-block; padding: 0.6rem 1rem; border-radius: 10px; background: #4f46e5; color: #fff !important;
    border: none; cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.btn:hover { background: #4338ca; }
.form-stack label { display: block; margin-bottom: 0.85rem; font-size: 0.88rem; font-weight: 600; color: #f1f5f9; }
input[type=email], input[type=password], input[type=text], input[type=number], select {
    width: 100%; margin-top: 0.35rem; padding: 0.65rem 0.75rem; border-radius: 10px;
    border: 1px solid #475569; background: #0f172a; color: #f8fafc; font-size: 0.9rem;
}
.field-hint { display: block; margin-top: 0.25rem; font-weight: 400; color: #64748b; font-size: 0.78rem; }
.msg { padding: 0.75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.88rem; }
.msg-error { background: #450a0a; color: #fecaca; }
.msg-ok { background: #14532d; color: #bbf7d0; }
.empty-msg { color: #94a3b8; margin: 0; }
.foot-note { color: #64748b; font-size: 0.78rem; margin-top: 0.5rem; }
code { background: #0f172a; padding: 0.1rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* Mobile */
@media (max-width: 900px) {
    .sidebar { position: fixed; left: -280px; transition: left .25s ease; }
    .sidebar.open { left: 0; }
    .menu-toggle { display: inline-flex; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stats-3 { grid-template-columns: 1fr; }
    .dash-preview-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1rem; }
}
/* Guide page */
.guide-grid { display: grid; gap: 1rem; }
.guide-links-card { border-color: #4f46e5; }
.link-block { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #334155; }
.link-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.link-block.highlight { background: #0f172a; border-radius: 10px; padding: 0.85rem; border: 1px solid #4f46e5; }
.link-label { display: block; font-size: 0.78rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.link-url { flex: 1; min-width: 180px; background: #0f172a; padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.82rem; word-break: break-all; border: 1px solid #334155; }
.link-hint { display: block; margin-top: 0.45rem; color: #94a3b8; font-size: 0.78rem; }
.guide-steps { display: grid; gap: 0.75rem; }
.guide-step { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.75rem; background: #0f172a; border-radius: 10px; border: 1px solid #334155; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: #4f46e5; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.guide-step strong { display: block; margin-bottom: 0.2rem; font-size: 0.92rem; color: #f8fafc; }
.guide-step p { margin: 0; color: #94a3b8; font-size: 0.84rem; line-height: 1.5; }
.email-template { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 1rem; font-size: 0.8rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; margin-bottom: 0.75rem; color: #cbd5e1; }
.notes-list { margin: 0; padding-left: 1.2rem; color: #94a3b8; font-size: 0.88rem; line-height: 1.65; }
.notes-list li { margin-bottom: 0.45rem; }
.copy-toast { position: fixed; bottom: 1.25rem; right: 1.25rem; background: #14532d; color: #bbf7d0; padding: 0.6rem 1rem; border-radius: 10px; font-size: 0.85rem; z-index: 100; opacity: 0; transition: opacity .2s; pointer-events: none; }
.copy-toast.show { opacity: 1; }
.platform-toast {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 25000;
    background: #14532d; color: #bbf7d0; padding: 0.7rem 1.1rem; border-radius: 10px;
    font-size: 0.86rem; font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(8px); transition: opacity .22s, transform .22s; pointer-events: none;
}
.platform-toast.show { opacity: 1; transform: translateY(0); }
.platform-toast-error { background: #7f1d1d; color: #fecaca; }
.actions-more-wrap { position: relative; display: inline-block; vertical-align: middle; }
.actions-more-btn { min-width: 34px; padding: 0.35rem 0.5rem; line-height: 1; }
.actions-more-menu {
    position: absolute; right: 0; top: calc(100% + 4px); min-width: 148px;
    background: #1e293b; border: 1px solid #475569; border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,.4); z-index: 40; padding: 0.35rem 0; overflow: hidden;
}
.actions-more-menu[hidden] { display: none; }
.actions-more-item {
    display: block; width: 100%; text-align: left; border: 0; background: transparent;
    color: #e2e8f0; font: inherit; font-size: 0.8rem; padding: 0.5rem 0.85rem; cursor: pointer;
}
.actions-more-item:hover { background: #0f172a; }
.actions-more-delete { color: #fca5a5; font-weight: 600; }
.actions-more-delete:hover { background: #450a0a; color: #fecaca; }

/* Renewal */
.sites-table .cell-sub { display: block; color: #64748b; font-size: 0.72rem; margin-top: 0.15rem; }
.domain-link { font-weight: 600; }
.amount-pill { display: inline-block; background: #14532d; color: #bbf7d0; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.expiry-pill { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.expiry-ok { background: #1e3a5f; color: #93c5fd; }
.expiry-soon { background: #713f12; color: #fde68a; }
.expiry-past { background: #7f1d1d; color: #fecaca; }
.muted-val { color: #64748b; font-size: 0.82rem; }
.actions-cell { white-space: nowrap; }
.actions-cell .status-form { display: inline-block; margin-left: 0.35rem; vertical-align: middle; }
.actions-cell select { width: auto; min-width: 88px; padding: 0.35rem 0.45rem; font-size: 0.78rem; }
.renew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.site-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.site-summary div { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 0.65rem 0.75rem; }
.site-summary span { display: block; font-size: 0.72rem; color: #64748b; margin-bottom: 0.15rem; }
.site-summary strong { font-size: 0.9rem; word-break: break-all; color: #f8fafc; }
.expiry-highlight { color: #93c5fd !important; }
.extend-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.extend-opt { display: inline-flex; align-items: center; gap: 0.35rem; background: #0f172a; border: 1px solid #334155; border-radius: 999px; padding: 0.35rem 0.7rem; font-size: 0.8rem; font-weight: 500; cursor: pointer; }
.form-actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.renew-guide-card { border-color: #059669; margin-bottom: 1rem; }
.renew-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.guide-box { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 0.85rem; }
.guide-box strong { display: block; font-size: 0.88rem; margin-bottom: 0.35rem; color: #f8fafc; }
.guide-box p { margin: 0; font-size: 0.82rem; color: #94a3b8; line-height: 1.55; }
.guide-ol { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; color: #94a3b8; line-height: 1.6; }
.guide-foot { margin: 0.85rem 0 0; font-size: 0.8rem; color: #64748b; }
.tag { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.tag-admin { background: #4f46e5; color: #fff; }
.db-pill { background: #0f172a; color: #93c5fd; padding: 0.15rem 0.45rem; border-radius: 6px; font-size: 0.78rem; }
.cred-card { border-color: #059669; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.cred-item { background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 0.75rem; }
.cred-item span { display: block; font-size: 0.72rem; color: #64748b; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }
.cred-item strong { font-size: 0.9rem; word-break: break-all; color: #f8fafc; }
.cred-item.cred-full { grid-column: 1 / -1; }
.cred-secret { color: #fde68a; }

@media (max-width: 900px) {
    .renew-grid { grid-template-columns: 1fr; }
    .renew-guide-grid { grid-template-columns: 1fr; }
    .cred-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-summary { grid-template-columns: 1fr; }
    table:not(.sites-table) { min-width: 0; }
    table:not(.sites-table) thead { display: none; }
    table:not(.sites-table) tr { display: block; margin-bottom: 0.85rem; background: #0f172a; border-radius: 10px; padding: 0.5rem; border: 1px solid #334155; }
    table:not(.sites-table) td { display: flex; justify-content: space-between; gap: 0.5rem; border: none; padding: 0.4rem 0.5rem; font-size: 0.82rem; color: #e2e8f0; }
    table:not(.sites-table) td::before { content: attr(data-label); color: #94a3b8; font-weight: 600; flex-shrink: 0; }
    .card-head-row { flex-direction: column; align-items: flex-start; }
    .sites-table-wrap .sites-table { width: max-content; min-width: 100%; display: table; }
    .sites-table-wrap .sites-table thead { display: table-header-group; }
    .sites-table-wrap .sites-table tbody { display: table-row-group; }
    .sites-table-wrap .sites-table tr { display: table-row; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
    .sites-table-wrap .sites-table th,
    .sites-table-wrap .sites-table td { display: table-cell; border-bottom: 1px solid #334155; }
    .sites-table-wrap .sites-table td::before { content: none; display: none; }
}

/* Keep platform shell readable when Bootstrap loads on inner pages */
.platform-app .sidebar,
.platform-app .main-area {
    color: #e2e8f0;
}
.platform-app .sidebar strong,
.platform-app .page-content strong,
.platform-app .page-content h1,
.platform-app .page-content h2,
.platform-app .page-content h3,
.platform-app .page-content h4,
.platform-app .page-content h5,
.platform-app .page-content h6 {
    color: #f8fafc;
}
.platform-app .sidebar small {
    color: #cbd5e1;
}
.platform-app .domain-link {
    color: #93c5fd;
}
