/* Pterodactyl Billing - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-alt: #334155;
    --bg-input: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: #334155;
    --border-light: #475569;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);

    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.logo i {
    color: var(--primary);
    font-size: 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav a:hover, .nav a.active {
    background: var(--bg-card-alt);
    color: var(--text-primary) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Sections ===== */
.section {
    padding: 60px 0;
}

.section-alt {
    background: rgba(30, 41, 59, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.highlight {
    color: var(--primary);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== Plans Grid ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-popular {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.plan-discount-badge .icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    animation: discount-pulse 2s ease-in-out infinite;
    cursor: pointer;
}

.plan-discount-badge .icon i {
    color: white;
    font-size: 16px;
}

.plan-discount-badge .text {
    position: absolute;
    top: 50%;
    left: 44px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.plan-discount-badge:hover .text {
    opacity: 1;
}

.plan-discount-badge span {
    display: none;
    margin-left: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-discount-badge:hover {
    width: auto;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.6);
}

.plan-discount-badge:hover::before {
    margin-right: 0;
}

.plan-discount-badge:hover span {
    display: inline;
}

@keyframes discount-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(249, 115, 22, 0.7);
    }
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.plan-price .old-price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.plan-price .new-price {
    font-size: 2rem;
    font-weight: 800;
    color: #ef4444;
}

.plan-header {
    padding: 24px 24px 0;
    text-align: center;
}

.plan-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.plan-nest {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.plan-features {
    padding: 16px 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.plan-actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.plan-actions .btn {
    flex: 1;
}

/* ===== Nodes ===== */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.node-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

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

.node-header h3 {
    font-size: 1.1rem;
}

.node-location {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.node-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.node-status.online {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

.node-status.offline {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.node-status.online .status-dot {
    background: #16a34a;
    box-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
    animation: pulse-dot 2s infinite;
}

.node-status.offline .status-dot {
    background: #dc2626;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.node-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.node-stat {
    flex: 1;
}

.node-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.node-stat .value {
    font-weight: 600;
    font-size: 0.95rem;
}

.node-bar {
    height: 6px;
    background: var(--bg-card-alt);
    border-radius: 3px;
    overflow: hidden;
}

.node-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* ===== Auth ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
}

/* ===== Forms ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* ===== Flash Messages ===== */
.flash {
    padding: 14px 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.status-terminated {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-muted);
}

/* ===== Orders Table ===== */
.orders-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.orders-table th,
.orders-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.orders-table th {
    background: var(--bg-card-alt);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    font-size: 0.9rem;
}

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

.orders-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

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

.inline-form select {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

/* ===== User Info ===== */
.user-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-details h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.user-details p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.user-stats {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

/* ===== Password Change ===== */
.password-change-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
}

.password-form {
    max-width: 500px;
}

.password-form .form-group {
    margin-bottom: 16px;
}

/* ===== Quick Links ===== */
.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.quick-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    transition: var(--transition);
}

.quick-link-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-link-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ===== Server Cards ===== */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.server-card-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.server-card-body {
    padding: 20px 24px;
}

.server-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.server-info-row:last-child {
    border-bottom: none;
}

.server-info-row .label {
    color: var(--text-muted);
}

.server-connections {
    margin-top: 16px;
}

/* ===== Cashback ===== */
.cashback-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 24px;
}

.cashback-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #16a34a;
    font-weight: 600;
}

.cashback-info i {
    font-size: 1.2rem;
}

.renewal-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.renewal-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.renewal-info i {
    color: var(--primary);
}

.cashback-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.cashback-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cashback-option span {
    font-size: 0.9rem;
    color: #16a34a;
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #15803d, #166534);
}

/* ===== Plan Detail ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--primary);
}

.plan-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.plan-detail-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.plan-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.plan-detail-nest {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.plan-detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-detail-price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-detail-description {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.8;
}

.plan-detail-specs h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

.spec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card-alt);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
}

.spec-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.plan-detail-actions {
    margin-top: 32px;
}

/* ===== Order Page ===== */
.order-page {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.order-page h2 {
    text-align: center;
    margin-bottom: 32px;
}

.order-summary {
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.order-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.order-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.order-price .old-price-order {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.order-price .new-price-order {
    font-size: 2rem;
    font-weight: 800;
    color: #ef4444;
}

.order-price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-specs {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.order-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.order-spec i {
    color: var(--primary);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.order-note {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-note i {
    color: var(--info);
    margin-top: 2px;
}

/* ===== Order Page (Modern) ===== */
.order-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 0;
}

/* Header */
.order-header {
    text-align: center;
    margin-bottom: 40px;
}

.back-to-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.back-to-catalog:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.order-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 16px 0 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Plan Hero Card */
.plan-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.plan-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.plan-hero-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.plan-hero-left { flex: 1; }

.plan-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.plan-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.plan-hero-discount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-hero-price-block { text-align: right; flex-shrink: 0; }

.plan-hero-price-old {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.plan-hero-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.plan-hero-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.plan-hero-specs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.spec-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.spec-chip:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.spec-chip-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    border-radius: 7px;
    font-size: 0.85rem;
}

.spec-chip-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sections */
.order-section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
    color: var(--primary);
    border-radius: 10px;
    font-size: 1rem;
}

.section-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Custom Select */
.custom-select-wrapper { position: relative; }

.custom-select {
    width: 100%;
    padding: 16px 48px 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
}

.custom-select:hover { border-color: var(--border-light); }

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.custom-select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 1rem;
}

/* Duration Cards */
.duration-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.duration-option { cursor: pointer; }

.duration-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.duration-card-inner {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.25s ease;
    position: relative;
}

.duration-option:hover .duration-card-inner {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.duration-option input:checked + .duration-card-inner {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 8px 24px rgba(99, 102, 241, 0.12);
}

.duration-option.popular .duration-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 16px 16px 0 0;
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.duration-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.duration-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.2rem;
}

.duration-option.popular .duration-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.duration-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.duration-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.duration-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.duration-price-block { text-align: center; }

.duration-old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 3px;
}

.duration-new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Upsells */
.upsell-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.upsell-option { cursor: pointer; }

.upsell-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.upsell-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.upsell-option:hover .upsell-card-inner {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.upsell-option input:checked + .upsell-card-inner {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 6px 20px rgba(16, 185, 129, 0.1);
}

.upsell-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.upsell-icon.green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.upsell-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

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

.upsell-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.upsell-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.upsell-price-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.upsell-price-tag small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Locked state */
.upsell-option.locked {
    opacity: 0.45;
    pointer-events: none;
}

.upsell-option.locked .upsell-card-inner {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.locked-icon {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    color: #ef4444;
    font-size: 1rem;
}

.upsell-option.locked .locked-icon { display: block; }

/* Toggle Switch */
.toggle {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upsell-option input:checked + .upsell-card-inner .toggle {
    background: #10b981;
}

.upsell-option input:checked + .upsell-card-inner .toggle::after {
    left: 23px;
}

/* Auto Renew */
.autorenew-option { cursor: pointer; }

.autorenew-option input { display: none; }

.autorenew-card-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.autorenew-option:hover .autorenew-card-inner {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.autorenew-option input:checked + .autorenew-card-inner {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.autorenew-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.2rem;
}

.autorenew-info { flex: 1; }

.autorenew-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.autorenew-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Discount Badges */
.discount-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.discount-pill.bundle {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.discount-pill.vip {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Total Card */
.total-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    margin-bottom: 22px;
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.total-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.total-period {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.3);
}

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

.submit-btn:active:not(:disabled) { transform: translateY(0); }

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

/* Warning & Info */
.balance-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.88rem;
    margin-top: 14px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    margin-top: 22px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-box i {
    color: #3b82f6;
    font-size: 1rem;
    margin-top: 1px;
}

/* Location add info */
.location-add-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #3b82f6;
}

/* Server name input */
.server-name-input {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.server-name-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.server-name-input::placeholder {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .order-title { font-size: 1.7rem; }

    .plan-hero-content { flex-direction: column; }

    .plan-hero-price-block { text-align: left; }

    .duration-options,
    .upsell-options { grid-template-columns: 1fr; }

    .plan-hero-specs { flex-direction: column; }

    .total-amount { font-size: 2rem; }
}

/* ===== Admin Stats ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-stat-icon.orders { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.admin-stat-icon.active { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.admin-stat-icon.revenue { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.admin-stat-icon.nodes { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.admin-stat-icon.eggs { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.admin-stat-icon.locations { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.admin-stat-info {
    text-align: left;
}

.admin-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

/* ===== Filter Tabs ===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* ===== Error Page ===== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.error-page code {
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Admin-specific additions ===== */
.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.settings-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-row .value {
    font-weight: 600;
    font-size: 0.9rem;
}

.node-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-card-alt);
    border-radius: var(--radius-sm);
}

.node-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.node-info-row .label {
    color: var(--text-muted);
}

.node-info-row .value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

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

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

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
    }

    .nav.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .plans-grid,
    .nodes-grid,
    .servers-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .user-info-card {
        flex-direction: column;
        text-align: center;
    }

    .user-stats {
        margin-left: 0;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .orders-table {
        overflow-x: auto;
    }
}
