@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    --header-h: 120px;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d0f17;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes mouseFade {
    to { transform: scale(0.4); opacity: 0; }
}

@keyframes floatUp {
    from { transform: translateY(110%) scale(0.5); opacity: 0; }
    to { transform: translateY(-10%) scale(1); opacity: 0.45; }
}

@keyframes particleColorShift {
    0%, 100% { background: rgba(96, 165, 250, 0.8); box-shadow: 0 0 6px rgba(96, 165, 250, 0.9); }
    33% { background: rgba(167, 139, 250, 0.8); box-shadow: 0 0 6px rgba(167, 139, 250, 0.9); }
    66% { background: rgba(52, 211, 153, 0.8); box-shadow: 0 0 6px rgba(52, 211, 153, 0.9); }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 6px #60a5fa40); }
    50% { filter: drop-shadow(0 0 15px #60a5fa80); }
}

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

@keyframes langSlide {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes particle-float {
    to { transform: translate3d(var(--drift), -130vh, 0); }
}

/* ==================== BACKGROUND & PARTICLES ==================== */
.bg-anim {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0f1f, #111827, #0f172a);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
    z-index: -4;
}

.particles-main {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.particle {
    position: absolute;
    will-change: transform;
    transform: translateZ(0);
}

.particle-circle { border-radius: 50%; }
.particle-square { border-radius: 3px; }
.particle-diamond { transform: rotate(45deg); }

.particle-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid currentColor;
    filter: blur(0.3px);
}

.particle-glow {
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.25;
}

.particle-animate {
    animation-name: particle-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.particles-modal span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatUp linear infinite;
    will-change: transform;
}

.mouse-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    opacity: 1;
    animation: mouseFade 0.35s ease-out forwards;
    filter: blur(0.5px);
    z-index: 25;
    will-change: transform, opacity;
}

.no-mouse-trail .mouse-particle {
    display: none;
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8vw;
    z-index: 1000;
    gap: 20px;
    pointer-events: none;
    background: transparent;
    transform: translateZ(0);
}

.header-right {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    z-index: 1200;
}

.corner-logo-link {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
}

.corner-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.corner-logo-link:hover .corner-logo {
    opacity: 1;
    transform: scale(1.02);
}

.top-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-login .site-header .top-actions {
    display: none;
}

/* ==================== SIDEBAR ==================== */
.left-pane {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    width: 260px;
    background: rgba(15, 23, 42, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-header h3 {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border-left: 3px solid #6366f1;
    padding-left: calc(1.5rem - 3px);
}

.sidebar-icon {
    font-size: 1.25rem;
    min-width: 1.5rem;
    text-align: center;
}

.sidebar-text {
    flex: 1;
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding-bottom: 2rem;
}

.sidebar-link.logout {
    color: #ef4444;
}

.sidebar-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

/* Sidebar States */
.left-pane.pinned {
    left: 0 !important;
}

.left-pane.pinned ~ .sidebar-pin-btn {
    left: 260px;
}

.left-pane.pinned ~ .menu-toggle,
body:has(.left-pane.pinned) .menu-toggle {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Sidebar Pages */
/* Sidebar Pages */
.page-dashboard .left-pane.open,
.page-control-panel .left-pane.open,
.page-admin-users .left-pane.open,
.page-admin-containers .left-pane.open,
.page-admin-logs .left-pane.open,
.page-admin-health .left-pane.open,
.page-contact .left-pane.open,
.page-privacy-policy .left-pane.open,
.page-cookie-policy .left-pane.open,
.page-terms .left-pane.open {
    left: 0;
}
/* ==================== MENU CONTROLS ==================== */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 250;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.menu-toggle.hidden {
    visibility: hidden;
    pointer-events: none;
}

.sidebar-pin-btn {
    position: fixed;
    left: 0;
    top: 80%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    padding: 0;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #d1d5db;
    cursor: pointer;
    transition: left 0.3s ease, background 0.2s ease, border-color 0.2s ease;
    z-index: 150;
}

.sidebar-pin-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
}

.sidebar-pin-btn.active {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.sidebar-pin-btn .pin-icon::before {
    content: '‹';
    font-weight: bold;
    font-size: 1.4rem;
    transform: scaleX(1.3);
}

.sidebar-pin-btn.active .pin-icon::before {
    content: '›';
    transform: scaleX(-1.3);
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.lang-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 90px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 2500;
    transform-origin: bottom right;
    animation: langSlide 0.18s ease;
}

.lang-menu.open {
    display: flex;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    color: #fff;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    margin-top: 0;
}

.btn-sm:hover {
    transform: translateY(-2px);
}

.btn-top {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 0;
    transform: none;
}

.btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* ==================== MAIN CONTENT ==================== */
.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100vw;
}

.center p {
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glowPulse 2.5s ease-in-out infinite;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
}

.page-home h1 {
    font-size: 3.6rem;
}

p {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: #d1d5db;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards 0.5s;
    text-align: center;
    width: 100%;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-wide {
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #bbb;
}

.modal-close:hover {
    color: #fff;
}

.modal input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 1rem;
}

.modal button:not(.modal-close) {
    width: 100%;
    padding: 14px;
    margin-top: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal button:hover {
    opacity: 0.85;
}

.modal-field {
    margin-top: 12px;
}

.modal-field label {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #d1d5db;
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

.field-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-msg {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.modal-msg.show {
    display: block;
}

.modal-msg.error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.modal-msg.success {
    background: rgba(61, 220, 132, 0.1);
    color: #3ddc84;
}

/* Password Input */
.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px !important;
    margin-top: 0 !important;
    width: auto !important;
    filter: grayscale(100%) brightness(0.3);
}

.password-toggle:hover {
    filter: grayscale(100%) brightness(0);
    transform: translateY(-50%) !important;
    box-shadow: none !important;
}

/* ==================== LOGIN PAGE ==================== */
.login-card {
    margin-top: 3.6rem;
    padding: 30px 32px 34px;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.login-card input {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

.login-card input::placeholder {
    color: #6b7280;
}

.login-btn {
    margin-top: 18px;
    width: auto;
    padding: 14px 34px;
    align-self: center;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
}

.login-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
}

.login-links {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.login-links a {
    color: #60a5fa;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* ==================== DASHBOARD ==================== */
.center.dashboard {
    justify-content: flex-start;
    padding-top: 20px;
    padding-bottom: 40px;
}

.dashboard-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    max-width: 500px;
    color: #d1d5db;
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.dashboard-card p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.services-card p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.services-card {
    flex: 1;
    min-width: 360px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
}

.card-top h2 {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

.services-table-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.services-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.services-table thead {
    background: rgba(15, 23, 42, 0.9);
}

.services-table th,
.services-table td {
    text-align: center;
    padding: 10px 12px;
    white-space: nowrap;
}

.services-table th {
    font-weight: 600;
    color: #e5e7eb;
}

.services-table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-table tbody tr {
    background: rgba(15, 23, 42, 0.7);
}

.services-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.85);
}

.services-table th:last-child,
.services-table td:last-child {
    width: 240px;
}

.services-table td:last-child .action-buttons {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* Action Buttons */
.action-buttons {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Status Colors */
.status-ok { color: #3ddc84; font-weight: 600; }
.status-warn { color: #f6c177; font-weight: 600; }
.status-bad { color: #ff6b6b; font-weight: 600; }
.status-unknown { color: #aaa; font-weight: 600; }

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.status-pending {
    background: rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.status-disabled {
    color: #f87171;
    background: rgba(248, 113, 113, .1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85em;
}

/* User States */
tr.user-disabled td:not(:last-child) {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

tr.user-disabled td:not(:last-child) span {
    opacity: 0.5;
}

/* ==================== SETTINGS PAGE ==================== */
main.settings-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 48px;
    position: relative;
    z-index: 5;
}

.settings-header {
    text-align: center;
    margin-bottom: 48px;
}

.settings-header h1 {
    font-size: 2rem;
    margin: 0 0 14px 0;
    background: linear-gradient(135deg, #a78bfa, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.settings-header p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.settings-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 26px;
    text-align: center;
}

.settings-card h2 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.settings-card > p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0 0 22px 0;
}

.site-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.site-row:last-child {
    margin-bottom: 0;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-info strong {
    color: #fff;
    font-size: 0.95rem;
}

.site-info span {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

/* ==================== PHP SETTINGS MODAL ==================== */
.php-modal {
    max-width: 520px !important;
    width: 95% !important;
}

.php-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
}

.php-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.php-group {
    display: grid;
    grid-template-rows: 18px 44px 14px;
    row-gap: 4px;
    align-content: start;
}

.php-group.span-2 {
    grid-column: 1 / -1;
}

.php-group label {
    font-size: 0.8rem;
    line-height: 18px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
}

.php-group input,
.php-group select {
    display: block;
    height: 44px;
    padding: 10px 12px;
    line-height: 1.2;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
}

.php-group select {
    cursor: pointer;
}

.php-group input:focus,
.php-group select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.php-group select option {
    background: #1e1e2e;
}

.php-group small {
    font-size: 0.7rem;
    line-height: 14px;
    height: 14px;
    color: rgba(255,255,255,0.4);
}

/* Remove number spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.php-warn {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: #fbbf24;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 22px;
}

.php-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.php-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.php-btn:hover {
    opacity: 0.9;
}

.php-btn-cancel {
    background: #374151;
    color: #fff;
}

.php-btn-save {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

/* ==================== PLANS PAGE ==================== */
.plans-page-main {
    padding: 1.5rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.plans-header {
    margin-bottom: 2rem;
}

.plans-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.plans-header p {
    max-width: 640px;
    margin: 0.5rem auto 0;
    text-align: center;
    line-height: 1.6;
}
.plans-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.plans-main {
    min-width: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plans-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.plans-sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.plans-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #fff;
}

.plans-sidebar-card p {
    margin-bottom: 1.25rem;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.plans-sidebar-card .included-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.plans-sidebar-card .included-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

/* Plan Cards */
.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.plan-card.recommended {
    border-color: #00d4aa;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.1);
}

.plan-card.current {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #00d4aa;
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-badge.current-badge {
    background: #3b82f6;
    color: #fff;
}

.plan-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1rem;
}

.price-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    align-self: flex-start;
    margin-top: 0.2rem;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.plan-specs {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.spec-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.spec-value {
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.feature-check {
    color: #00d4aa;
    font-weight: bold;
    flex-shrink: 0;
}

.plan-action .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 0;
}

.plan-action .btn-select,
.plan-action .btn-upgrade {
    background: #00d4aa;
    color: #000;
    border: none;
}

.plan-action .btn-select:hover,
.plan-action .btn-upgrade:hover {
    background: #00b894;
}

.plan-action .btn-current {
    background: #3b82f6;
    color: #fff;
    border: none;
    cursor: default;
    opacity: 0.7;
}

.plan-action .btn-disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.plan-action .btn-edit {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
}

.plan-action .btn-edit:hover {
    background: linear-gradient(135deg, #7c7ff0, #9d7ef7);
}

/* ==================== CONTACT PAGE ==================== */
.contact-form {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

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

.alert {
    width: 100%;
    max-width: 480px;
    margin: 1.5rem auto;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    text-align: center;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ==================== FOOTER ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.5rem 20px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer .lang-switcher {
    position: absolute;
    bottom: 1.5rem;
    right: 20px;
}

/* ==================== MAIN LAYOUT STRUCTURE ==================== */
#main-content {
    min-height: 100;
    display: flex;
    flex-direction: column;
}

#main-content > main {
    flex: 1;
}

#main-content > .footer {
    margin-top: auto;
}

.page-scroll-container {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 60px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-scroll-container::-webkit-scrollbar {
    display: none;
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablet */
@media (max-width: 1024px) {
    .left-pane {
        width: 220px;
    }

    .sidebar-text {
        display: none;
    }

    .sidebar-link {
        justify-content: center;
        padding: 0.875rem;
    }

    .sidebar-header {
        display: none;
    }

    .plans-layout {
        grid-template-columns: 1fr 240px;
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .page-home h1 {
        font-size: 2.8rem;
    }

    p {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .center {
        padding: 40px 15px;
        padding-bottom: 80px;
    }

    .center.dashboard {
        padding-bottom: 100px;
    }

    .btn {
        width: 100%;
        padding: 14px 0;
        font-size: 1rem;
    }

    .btn-sm {
        width: auto;
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .header-right {
        flex-direction: column;
        height: auto;
        gap: 6px;
    }

    .top-actions {
        flex-direction: column;
        gap: 6px;
    }

    .modal {
        width: 92%;
        padding: 22px;
    }

    .modal input,
    .modal button {
        font-size: 1rem;
        padding: 12px;
    }

    .modal-backdrop {
        backdrop-filter: none;
        background: rgba(0, 0, 0, 0.75);
    }

    .particles-modal span {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .left-pane {
        left: -100%;
        width: 150px;
        height: 100%;
    }

    .left-pane.open {
        left: 0;
    }

    .sidebar-text {
        display: block;
    }

    .sidebar-link {
        justify-content: flex-start;
        padding: 0.875rem 1.5rem;
    }

    .sidebar-header {
        display: block;
    }

    .sidebar-pin-btn {
        width: 22px;
        height: 32px;
        left: 0;
    }

    .left-pane.pinned ~ .sidebar-pin-btn,
    .left-pane.open ~ .sidebar-pin-btn {
        left: 150px;
    }

    .sidebar-footer {
        padding-bottom: 3rem;
    }

    .lang-toggle {
        height: 32px;
        padding: 0 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .lang-menu {
        min-width: 70px;
        padding: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }

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

    .plans-sidebar {
        flex-direction: row;
        position: static;
    }

    .plans-sidebar-card {
        flex: 1;
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .php-row,
    .php-btns {
        grid-template-columns: 1fr;
    }

    .php-group.span-2 {
        grid-column: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .page-home h1 {
        font-size: 2.2rem;
    }

    .center {
        padding: 30px 15px;
    }

    .btn {
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .modal {
        width: 94%;
        padding: 20px;
        max-width: 350px;
    }

    .modal h2 {
        font-size: 1.3rem;
    }

    .dashboard-header h1 {
        font-size: 1.9rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .left-pane {
        width: 150px;
        max-width: 150px;
    }

    .sidebar-link {
        padding: 0.75rem 1.25rem;
    }

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

    .plans-page-main {
        padding: 1rem;
    }

    .plans-header h1 {
        font-size: 1.5rem;
    }

    .plans-sidebar {
        flex-direction: column;
    }

    .contact-form {
        padding: 0 1rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .mouse-particle {
        display: none !important;
    }

    .btn:hover,
    .modal button:hover {
        transform: scale(1.02);
        box-shadow: none;
    }
}

#contactMessage {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    line-height: 1.5;
}

/* Legal Pages Styles - Add to global.css or create separate file */

.page-legal .legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #fff);
}

.legal-content .legal-updated {
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary, #fff);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.9));
}

.legal-content p {
    line-height: 1.7;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Cookie Table */
.legal-content .cookie-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-content .cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-content .cookie-table th,
.legal-content .cookie-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content .cookie-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    font-weight: 600;
}

.legal-content .cookie-table td {
    color: var(--text-secondary, rgba(255, 255, 255, 0.8));
}

.legal-content .cookie-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Sidebar Legal Section */
.sidebar-legal {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-menu-legal .sidebar-link {
    font-size: 0.85rem;
    opacity: 0.8;
}

.sidebar-menu-legal .sidebar-link:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .page-legal .legal-content {
        padding: 1rem;
    }

    .legal-content h1 {
        font-size: 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }
}

/* Minimal Sidebar (non-logged-in users) - Add to global.css */

.left-pane-minimal .sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*
.left-pane-minimal .sidebar-legal {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.left-pane-minimal .sidebar-menu-legal .sidebar-link {
    font-size: 0.85rem;
    opacity: 0.8;
}

.left-pane-minimal .sidebar-menu-legal .sidebar-link:hover {
    opacity: 1;
}
*/

/* Cookie Consent Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(13, 15, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.cookie-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1em;
    height: 1em;
}

.cookie-banner-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cookie-banner-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.btn-cookie-settings,
.btn-cookie-reject,
.btn-cookie-accept,
.btn-cookie-save {
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cookie-settings {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-cookie-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.btn-cookie-reject:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-cookie-accept,
.btn-cookie-save {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.btn-cookie-accept:hover,
.btn-cookie-save:hover {
    background: linear-gradient(135deg, #7c7ff2 0%, #9d6ff7 100%);
    transform: translateY(-1px);
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 90%;
    max-width: 500px;
    background: rgba(20, 22, 30, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.cookie-settings-close:hover {
    color: #fff;
}

.cookie-settings-body {
    padding: 1rem 1.25rem;
    max-height: 300px;
    overflow-y: auto;
}

.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-category-info h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider {
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.cookie-policy-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.cookie-policy-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-text {
        display: flex;
        flex-direction: column;
        align-items: center;     /* horizontal */
        justify-content: center; /* vertical */
        text-align: center;
        gap: 0.5rem;
    }

    .cookie-banner-actions {
        justify-content: center;
    }

    .cookie-settings-panel {
        width: 95%;
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        position: fixed;
        margin: 0;
    }

    .cookie-settings-panel.active {
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn-cookie-settings,
    .cookie-banner-actions .btn-cookie-reject,
    .cookie-banner-actions .btn-cookie-accept {
        width: 100%;
    }
}

/* Footer Cookie Button */
.cookie-settings-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 0.25rem;
}

.cookie-settings-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cookie Modal Overlay (for reopening settings) */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.cookie-modal {
    background: rgba(20, 22, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Services Page Styles - Add to global.css */

.page-services .services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.services-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.services-content section {
    margin-bottom: 4rem;
}

.services-content section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.plan-card.plan-featured {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.plan-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.plan-specs {
    flex: 1;
    margin-bottom: 1.5rem;
}

.plan-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-specs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

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

.spec-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.plan-specs strong {
    color: #fff;
    font-weight: 600;
}

.plan-footer {
    text-align: center;
}

.btn-plan {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    text-align: center;
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
}

.feature-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* Tech Stack Grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    min-width: 120px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.tech-logo {
    font-size: 2rem;
}

.tech-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.tech-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
}

.cta-section h2 {
    margin-bottom: 0.75rem !important;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 1.5rem auto;
    text-align: center;
    max-width: 600px;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .services-header h1 {
        font-size: 1.75rem;
    }

    .services-header p {
        font-size: 1rem;
    }

    .page-services .services-content {
        padding: 1rem;
    }

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

    .plan-card.plan-featured {
        order: -1;
    }

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

    .tech-grid {
        gap: 1rem;
    }

    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* Setup Steps Section - Add to global.css */

.setup-section,
.email-section {
    margin-bottom: 4rem;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Setup Steps */
.setup-steps {
    max-width: 800px;
    margin: 0 auto;
}

.setup-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.setup-step:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}no implement it in my existing code

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.step-content h4 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}
/* DNS Record Boxes */
.dns-record-box {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow-x: auto;
}

.dns-table td code {
    white-space: nowrap;
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dns-table th,
.dns-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dns-table th {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dns-table td {
    color: rgba(255, 255, 255, 0.8);
}

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

.dns-table code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #a5b4fc;
}

.dns-table-compact {
    font-size: 0.8rem;
}

.dns-table-compact th,
.dns-table-compact td {
    padding: 0.5rem 0.75rem;
}

.dns-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
}

/* Email Section */
.email-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.email-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    justify: center;
}

.email-info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.email-info-card h4 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
}

.email-info-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 1rem;
    text-align: center;
    opacity: 1;
    animation: none;
    max-width: none;
}

.email-info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.7);
}

.email-info-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.email-info-card li::before {
    content: "•";
    margin-right: 0.5rem;
    color: #6366f1;
}

/* Email Client Settings */
.email-client-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.email-client-info h4 {
    text-align: center;
    margin: 0 0 1.25rem;
    color: #fff;
}

.client-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.client-setting {
    text-align: center;
}

.client-setting strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 0.95rem;
}

.client-setting p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.client-setting code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: #a5b4fc;
}

/* Responsive */
@media (max-width: 768px) {
    .setup-step {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .dns-table {
        font-size: 0.75rem;
    }

    .dns-table th,
    .dns-table td {
        padding: 0.5rem;
    }

    .dns-table code {
        font-size: 0.7rem;
        word-break: break-all;
    }

    .email-info-grid {
        grid-template-columns: 1fr;
    }

    .client-settings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Backup Management Page Styles - Add to global.css */

.page-backups .backups-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.backups-header {
    text-align: center;
    margin-bottom: 2rem;
}

.backups-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.backups-header p {
    color: rgba(255, 255, 255, 0.6);
}

/* Loading State */
.backups-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Empty State */
.backups-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.backups-empty h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.backups-empty p {
    color: rgba(255, 255, 255, 0.5);
}

/* Domain Cards */
.backup-domain-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.domain-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.backup-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-backups {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Backups Table */
.backups-table-wrapper {
    overflow-x: auto;
}

.backups-table {
    width: 100%;
    border-collapse: collapse;
}

.backups-table th,
.backups-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.backups-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.backups-table td {
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

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

.backup-date {
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.badge-new {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Action Buttons */
.backup-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    margin-right: 0.25rem;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff !important;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
}

.warning-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fca5a5;
}

.warning-icon {
    font-size: 1.25rem;
}

.restore-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
}

.restore-details p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.restore-details strong {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

/* Toast Notifications */
.backup-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.backup-toast.success {
    border-color: rgba(34, 197, 94, 0.3);
}

.backup-toast.success .toast-icon {
    color: #22c55e;
}

.backup-toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.backup-toast.error .toast-icon {
    color: #ef4444;
}

.backup-toast.info {
    border-color: rgba(99, 102, 241, 0.3);
}

.backup-toast.info .toast-icon {
    color: #6366f1;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .page-backups .backups-content {
        padding: 1rem;
    }

    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .backups-table th,
    .backups-table td {
        padding: 0.75rem 1rem;
    }

    .backup-actions {
        flex-direction: column;
    }

    .backup-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ==================== SERVICES PAGE MOBILE FIXES v3 ==================== */
/* REMOVE any previous mobile fixes before adding this */

/* ==================== FIX 1: Page scroll container needs more bottom space ==================== */
/* The footer is ~80-100px tall on mobile, but bottom is only 60px */
@media (max-width: 768px) {
    .page-services .page-scroll-container,
    .page-services.page-scroll-container {
        bottom: 100px !important;
    }
}

@media (max-width: 480px) {
    .page-services .page-scroll-container,
    .page-services.page-scroll-container {
        bottom: 120px !important;
    }
}

/* ==================== FIX 2: Tech grid - use flex properly ==================== */
/* Don't use CSS grid - keep flex but make items smaller */
.tech-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem;
    max-width: 100%;
    overflow: visible;
}

.tech-item {
    flex: 0 1 auto;
    min-width: 100px;
}

@media (max-width: 768px) {
    .tech-grid {
        gap: 0.5rem;
        padding: 0 0.25rem;
    }

    .tech-item {
        min-width: 90px;
        max-width: 100px;
        padding: 0.75rem 0.5rem;
    }

    .tech-logo {
        font-size: 1.4rem;
    }

    .tech-name {
        font-size: 0.75rem;
    }

    .tech-desc {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        gap: 0.4rem;
    }

    .tech-item {
        min-width: 80px;
        max-width: 90px;
        padding: 0.6rem 0.4rem;
    }

    .tech-logo {
        font-size: 1.2rem;
    }

    .tech-name {
        font-size: 0.7rem;
    }

    .tech-desc {
        font-size: 0.55rem;
    }
}

@media (max-width: 360px) {
    .tech-item {
        min-width: 70px;
        max-width: 80px;
        padding: 0.5rem 0.3rem;
    }

    .tech-logo {
        font-size: 1.1rem;
    }

    .tech-name {
        font-size: 0.65rem;
    }
}

/* ==================== FIX 3: Plans grid responsive ==================== */
@media (max-width: 992px) {
    .page-services .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .plan-card.plan-featured {
        order: -1;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .page-services .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .plan-card.plan-featured {
        grid-column: auto;
    }

    .btn-plan {
        width: 100%;
    }
}

/* ==================== FIX 4: Features grid responsive ==================== */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==================== FIX 5: General mobile adjustments ==================== */
@media (max-width: 768px) {
    .page-services .services-content {
        padding: 1rem 0.75rem;
    }

    .services-header h1 {
        font-size: 1.5rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .services-content section h2 {
        font-size: 1.35rem;
    }

    /* Setup steps */
    .setup-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-content {
        text-align: center;
    }

    /* DNS tables */
    .dns-record-box {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dns-table {
        min-width: 400px;
    }

    /* Email settings */
    .client-settings-grid {
        grid-template-columns: 1fr;
    }

    .email-info-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 1.5rem 1rem;
    }

    .btn-cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-services .services-content {
        padding: 0.75rem 0.5rem;
    }

    .services-header h1 {
        font-size: 1.3rem;
    }

    .services-content section h2 {
        font-size: 1.15rem;
    }

    .plan-card {
        padding: 1.25rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.1rem !important;
    }
}

/* Log Viewer Modal */
.log-viewer {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.85);
}

.badge-view-only {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: default;
}

/* ==================== BACKUPS PAGE ==================== */
.upload-area {
    margin-top: 1rem;
}

.upload-dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(99, 102, 241, 0.05);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.upload-dropzone .upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-dropzone p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    animation: none;
    max-width: none;
}

.upload-dropzone .upload-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.upload-dropzone .upload-limit {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.selected-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
}

.selected-file .file-icon {
    font-size: 1.5rem;
}

.selected-file .file-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
    word-break: break-all;
}

.selected-file .file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.btn-remove-file {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.btn-remove-file:hover {
    color: #ef4444;
}

.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    animation: none;
    max-width: none;
}

.domain-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.domains-list {
    display: grid;
    gap: 0.5rem;
}

.domain-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.domain-list-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.domain-list-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.domain-list-info .domain-icon {
    font-size: 1.5rem;
}

.domain-list-info .domain-details {
    display: flex;
    flex-direction: column;
}

.domain-list-info .domain-name {
    font-weight: 500;
    color: #fff;
}

.domain-list-info .domain-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.domain-list-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
}

.modal-lg {
    max-width: 800px;
    width: 95%;
}

.modal-lg .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-header-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-backups-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-backups-table th,
.modal-backups-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-backups-table th {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.85rem;
}

.modal-backups-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.modal-backups-empty {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.modal-backups-empty .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
