/* ============================================================
   Hostari Dashboard – Purple Rocket Theme
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-deep:       #080410;
    --bg-body:       #0c0818;
    --bg-surface:    #140e24;
    --bg-panel:      #1a1230;
    --bg-panel-alt:  #211840;
    --bg-hover:      #2a1f50;
    --border:        #2d2252;
    --border-light:  #3b2e6e;
    --text:          #ece8f5;
    --text-muted:    #9b8ec0;
    --text-dim:      #6e5fa0;
    --purple-50:     #f5f0ff;
    --purple-100:    #ede5ff;
    --purple-200:    #d6c5ff;
    --purple-300:    #b894ff;
    --purple-400:    #9b5fff;
    --purple-500:    #8338ec;
    --purple-600:    #6b21d4;
    --purple-700:    #5614b0;
    --purple-800:    #3f0e80;
    --purple-900:    #2a0a55;
    --accent:        #a855f7;
    --accent-glow:   rgba(168, 85, 247, 0.25);
    --success:       #34d399;
    --success-bg:    rgba(52, 211, 153, 0.12);
    --success-border:rgba(52, 211, 153, 0.3);
    --warning:       #fbbf24;
    --warning-bg:    rgba(251, 191, 36, 0.12);
    --warning-border:rgba(251, 191, 36, 0.3);
    --danger:        #f87171;
    --danger-bg:     rgba(248, 113, 113, 0.12);
    --danger-border: rgba(248, 113, 113, 0.3);
    --info:          #60a5fa;
    --info-bg:       rgba(96, 165, 250, 0.12);
    --info-border:   rgba(96, 165, 250, 0.3);
    --radius:        10px;
    --radius-lg:     14px;
    --radius-sm:     6px;
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.3);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow:   0 0 24px rgba(168, 85, 247, 0.15);
    --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-500); }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
    50%      { box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(168, 85, 247, 0.1); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes borderGlow {
    0%, 100% { border-color: var(--border); }
    50%      { border-color: var(--purple-500); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp   { animation: fadeInUp 0.5s ease-out both; }
.animate-fadeIn     { animation: fadeIn 0.4s ease-out both; }
.animate-slideInLeft { animation: slideInLeft 0.4s ease-out both; }
.animate-slideInRight{ animation: slideInRight 0.4s ease-out both; }
.animate-scaleIn    { animation: scaleIn 0.35s ease-out both; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* ---------- Layout: Shell ---------- */
.hostari-shell {
    min-height: 100vh;
    display: flex;
}

/* ---------- Sidebar ---------- */
.hostari-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    animation: slideInLeft 0.4s ease-out;
}

.sidebar-header {
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.sidebar-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
    animation: float 4s ease-in-out infinite;
}

.sidebar-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 18px 18px 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-nav a,
.sidebar-nav button[type="submit"] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.sidebar-nav a:hover,
.sidebar-nav button[type="submit"]:hover {
    color: var(--text);
    background: var(--bg-hover);
    border-color: var(--border);
}

.sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--purple-800), var(--purple-700));
    border-color: var(--purple-600);
    box-shadow: 0 0 12px var(--accent-glow);
}

.sidebar-nav a .nav-icon,
.sidebar-nav button .nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    flex-shrink: 0;
}

.sidebar-nav a.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 14px 10px;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-panel);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Main Content ---------- */
.hostari-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(12, 8, 24, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    animation: fadeIn 0.3s ease-out;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-breadcrumb {
    font-size: 13px;
    color: var(--text-dim);
}

.topbar-breadcrumb span {
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    padding: 24px;
    animation: fadeInUp 0.5s ease-out;
}

/* ---------- Page Header ---------- */
.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin: 0 0 4px;
}

.page-header .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Cards ---------- */
.hcard {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple-500), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hcard:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.hcard:hover::before {
    opacity: 1;
}

/* Stat cards */
.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    border-color: var(--purple-600);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.stat-card .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.stat-card .stat-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* ---------- Grid layouts ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Tables ---------- */
.htable-wrap {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.htable {
    width: 100%;
    border-collapse: collapse;
}

.htable th {
    background: var(--bg-panel-alt);
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.htable td {
    padding: 12px 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(45, 34, 82, 0.4);
    transition: background 0.15s;
}

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

.htable tbody tr:hover td {
    background: rgba(168, 85, 247, 0.04);
    color: var(--text);
}

.htable td strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Status Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-default {
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge-default::before { background: var(--text-dim); }

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}
.badge-success::before { background: var(--success); }

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}
.badge-warning::before { background: var(--warning); }

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}
.badge-danger::before { background: var(--danger); }

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}
.badge-info::before { background: var(--info); }

.badge-purple {
    background: rgba(168, 85, 247, 0.12);
    color: var(--purple-300);
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-purple::before { background: var(--purple-400); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
    color: #fff;
    border-color: var(--purple-500);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-panel-alt);
    border-color: var(--border-light);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border-color: var(--danger-border);
}
.btn-danger:hover {
    background: rgba(248, 113, 113, 0.2);
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.2);
}

.btn-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border-color: var(--success-border);
}
.btn-success:hover {
    background: rgba(52, 211, 153, 0.2);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.2);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-block { width: 100%; }

/* ---------- Form Elements ---------- */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    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='%239b8ec0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 14px;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--purple-500);
    cursor: pointer;
}

/* ---------- Filter bar ---------- */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    animation: fadeIn 0.3s ease-out;
}

.filter-bar .form-input,
.filter-bar .form-select {
    width: auto;
    min-width: 200px;
}

/* ---------- Notices / Alerts ---------- */
.notice {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease-out;
}

.notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.notice.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.notice.warn {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.notice.info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.notice ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Auth Pages ---------- */
.auth-body {
    background: var(--bg-deep);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.auth-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(600px circle at 20% 30%, rgba(168, 85, 247, 0.04), transparent),
        radial-gradient(800px circle at 80% 60%, rgba(86, 20, 176, 0.03), transparent);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: scaleIn 0.5s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-700), var(--purple-400), var(--purple-700));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.5));
    animation: float 4s ease-in-out infinite;
}

.auth-logo-title {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple-200), var(--purple-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 13.5px;
    margin-bottom: 24px;
}

.auth-link {
    color: var(--purple-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--purple-200);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--text-dim);
}

/* ---------- Welcome Page ---------- */
.welcome-body {
    background: var(--bg-deep);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.welcome-body::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.welcome-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 10;
    background: rgba(8, 4, 16, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out;
}

.welcome-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.7s ease-out;
}

.welcome-content h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--purple-100), var(--purple-400), var(--purple-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ---------- Plan Cards ---------- */
.plan-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.plan-card:hover {
    border-color: var(--purple-600);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card .plan-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.plan-card .plan-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--purple-300);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 16px;
}

.plan-card .plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dim);
}

.plan-card .plan-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.plan-card .plan-specs li {
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(45, 34, 82, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-card .plan-specs li:last-child { border-bottom: 0; }

.plan-card .plan-specs li svg {
    width: 14px;
    height: 14px;
    color: var(--purple-400);
    flex-shrink: 0;
}

/* ---------- Mobile Hamburger ---------- */
.mobile-toggle {
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text);
    cursor: pointer;
}

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

.sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.sidebar-close svg {
    width: 20px;
    height: 20px;
}

/* ---------- Pagination ---------- */
.pagination-wrap {
    margin-top: 14px;
}

.pagination-wrap nav {
    display: flex;
    gap: 4px;
}

.pagination-wrap nav a,
.pagination-wrap nav span {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.pagination-wrap nav a:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-2, .row-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .sidebar-close { display: block; }

    .hostari-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }

    .hostari-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .hostari-main {
        margin-left: 0;
    }

    .main-content { padding: 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .welcome-content h1 { font-size: 32px; }
}

/* ---------- Utility ---------- */
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 14px; }
.mb-lg { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-mono { font-family: 'JetBrains Mono', monospace; }
.text-purple { color: var(--purple-300); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 14px; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

/* Dimmed fields */
.field-dimmed { opacity: 0.45; transition: opacity 0.2s; }

/* Section title inside cards */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}
