/* ==========================================================================
   KSMC HOST — CLIENT PORTAL v2.0
   Professional Cloud Hosting Dashboard (Vercel × Linear × Hostinger)
   ========================================================================== */

/* --- Google Fonts imported in HTML --- */

:root {
    /* Core Palette */
    --bg-root: #050506;
    --bg-surface: #0a0a0c;
    --bg-card: #0e0e11;
    --bg-elevated: #121215;
    --bg-input: #0c0c0f;

    /* Borders */
    --border-default: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-active: rgba(255, 255, 255, 0.14);

    /* Accent */
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-muted: rgba(59, 130, 246, 0.12);
    --accent-border: rgba(59, 130, 246, 0.25);

    /* Semantic */
    --green: #22c55e;
    --green-muted: rgba(34, 197, 94, 0.1);
    --green-border: rgba(34, 197, 94, 0.2);
    --red: #ef4444;
    --red-muted: rgba(239, 68, 68, 0.08);
    --red-border: rgba(239, 68, 68, 0.2);
    --amber: #f59e0b;
    --amber-muted: rgba(245, 158, 11, 0.1);
    --violet: #8b5cf6;
    --violet-muted: rgba(139, 92, 246, 0.12);
    --pink: #ec4899;
    --pink-muted: rgba(236, 72, 153, 0.12);

    /* Typography */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --text-inverse: #09090b;

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);
    --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-modal: 0 24px 64px rgba(0,0,0,0.7);
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.dashboard-body {
    background-color: var(--bg-root);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.dashboard-container {
    display: grid;
    grid-template-columns: 256px 1fr;
    min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR — Polished Vertical Nav
   ========================================================================== */

.dash-sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-default);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-y: auto;
}

.dash-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    margin-bottom: 32px;
}

.dash-sidebar-logo .logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.75px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dash-sidebar-logo .logo-sub {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Items */
.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.06);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.nav-item.highlight {
    background: var(--accent-muted);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-weight: 600;
    margin-top: auto;
}

.nav-item.highlight:hover {
    background: rgba(59, 130, 246, 0.18);
    color: #fff;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-label {
    white-space: nowrap;
}

/* User Card */
.user-profile-card {
    border: 1px solid var(--border-default);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    margin-top: 16px;
    transition: border-color 0.15s ease;
}

.user-profile-card:hover {
    border-color: var(--border-hover);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.btn-logout {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    color: var(--red);
    border-color: var(--red-border);
    background: var(--red-muted);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.dash-main-content {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    height: 100vh;
    background: var(--bg-root);
}

/* Header */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-default);
}

.header-welcome h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.header-welcome p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

/* === BUTTONS === */

.btn-primary {
    background: #fff;
    color: var(--text-inverse);
    font-weight: 600;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-weight: 500;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all 0.15s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
}

/* ==========================================================================
   GLASS PANEL (Unified Card Style)
   ========================================================================== */

.glass-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease;
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* ==========================================================================
   RESOURCE POOL OVERVIEW
   ========================================================================== */

.resources-overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.overview-header h2 {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.badge-premium {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--violet);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-active {
    background: var(--green-muted);
    border: 1px solid var(--green-border);
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.overview-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Resource Grid — 3 Columns */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.res-item {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
}

.res-item:hover {
    border-color: var(--border-hover);
}

.res-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.res-info-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.res-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.res-values {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

/* Progress Bars */
.res-linear-track {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    overflow: hidden;
}

.res-linear-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.res-linear-bar.ram-bar {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.res-linear-bar.cpu-bar {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.res-linear-bar.disk-bar {
    background: linear-gradient(90deg, #ec4899, #f472b6);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.3);
}

.res-pct-footer {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
}

/* Warning Alert */
.res-warning {
    background-color: var(--red-muted);
    border: 1px solid var(--red-border);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

/* Feedback Toast */
.feedback-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-elevated);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    z-index: 99999;
    font-size: 13px;
    font-weight: 500;
    animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
}

@keyframes slideInToast {
    from {
        transform: translateY(16px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   SERVERS SECTION
   ========================================================================== */

.servers-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-row h2 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.servers-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* === Server Card === */
.server-dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.server-dashboard-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.card-title-meta h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.card-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge-status {
    background: var(--green-muted);
    border: 1px solid var(--green-border);
    color: var(--green);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Connection Block */
.card-conn-block {
    background-color: var(--bg-root);
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.conn-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.conn-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: -0.3px;
}

/* Hardware Sliders */
.card-limits-sliders {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    border-radius: var(--radius-md);
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.slider-value {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Modern Slider Thumb + Track */
.gamer-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    cursor: pointer;
    transition: background 0.15s;
}

.gamer-slider:hover {
    background: rgba(255, 255, 255, 0.1);
}

.gamer-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.gamer-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.gamer-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    cursor: pointer;
}

/* Card Action Buttons */
.card-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-card-primary {
    background-color: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-primary:hover:not(:disabled) {
    border-color: var(--accent-border);
    background-color: var(--accent-muted);
    color: #fff;
}

.btn-card-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-card-secondary {
    background-color: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-secondary:hover {
    color: #fff;
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.03);
}

.btn-card-danger {
    background-color: transparent;
    border: 1px solid var(--red-border);
    color: #fca5a5;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s ease;
    grid-column: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-card-danger:hover {
    background-color: var(--red-muted);
    border-color: var(--red);
    color: #fff;
}

/* ==========================================================================
   LOADER
   ========================================================================== */

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 0;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-default);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   PLANS/SUBSCRIPTIONS TABLE
   ========================================================================== */

.plans-vencimento-section {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.plans-vencimento-section .overview-header h2 {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.plans-table th {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-default);
    text-transform: uppercase;
}

.plans-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-secondary);
}

.plans-table tbody tr:last-child td {
    border-bottom: none;
}

.plans-table tbody tr {
    transition: background 0.15s ease;
}

.plans-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.plans-table td strong {
    color: #fff;
    font-weight: 600;
}

.plans-table td .status-active {
    color: var(--green);
    font-weight: 600;
}

.btn-renew {
    background-color: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-renew:hover {
    border-color: var(--accent-border);
    background: var(--accent-muted);
    color: #fff;
}

/* ==========================================================================
   MODAL — Edit Server
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    width: 460px;
    max-width: 92vw;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-modal);
    animation: zoomInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}

.btn-close-modal:hover {
    background: var(--red-muted);
    border-color: var(--red-border);
    color: var(--red);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.form-group input[type="text"] {
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input[type="text"]::placeholder {
    color: var(--text-muted);
}

.subdomain-input-group {
    display: flex;
    align-items: center;
}

.subdomain-input-group input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    border-right: none !important;
    flex: 1;
}

.subdomain-suffix {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-left: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    white-space: nowrap;
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

/* ==========================================================================
   RESPONSIVE — MOBILE & TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    .dash-main-content {
        padding: 20px 16px;
        height: auto;
    }

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

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

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .dash-main-content {
        padding: 16px 12px;
        gap: 20px;
    }

    .resources-overview-card,
    .plans-vencimento-section {
        padding: 18px;
    }

    .res-values {
        font-size: 14px;
    }

    .modal-card {
        padding: 20px;
    }

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

    .btn-card-danger {
        grid-column: span 1;
    }

    .plans-table td,
    .plans-table th {
        padding: 10px 8px;
        font-size: 11px;
    }
}

/* ==========================================================================
   SCROLLBAR STYLING (WEBKIT)
   ========================================================================== */

.dash-main-content::-webkit-scrollbar {
    width: 6px;
}

.dash-main-content::-webkit-scrollbar-track {
    background: transparent;
}

.dash-main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.dash-main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   SUBTLE ANIMATIONS
   ========================================================================== */

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

.resources-overview-card,
.servers-section,
.plans-vencimento-section {
    animation: fadeIn 0.4s ease-out;
}

.server-dashboard-card {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.server-dashboard-card:nth-child(2) { animation-delay: 0.05s; }
.server-dashboard-card:nth-child(3) { animation-delay: 0.1s; }
.server-dashboard-card:nth-child(4) { animation-delay: 0.15s; }
