/* ===== SERVERS PAGE ===== */
.servers-page { padding: 100px 0 60px; min-height: 100vh; }
.servers-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.servers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.servers-title { font-size: 1.8rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 12px; }
.servers-title svg { color: #7c3aed; }
.servers-admin-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff;
    border: none; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.servers-admin-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124, 58, 237, .4); }

/* ===== GRID ===== */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.srv-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: rgba(255,255,255,.4); }
.srv-empty svg { margin-bottom: 16px; color: rgba(255,255,255,.15); }
.srv-empty h3 { font-size: 1.3rem; color: rgba(255,255,255,.5); margin-bottom: 8px; }

/* ===== CARD ===== */
.srv-card {
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; overflow: hidden; transition: all .3s ease;
    display: flex; flex-direction: column; position: relative;
}
.srv-card:hover { transform: translateY(-4px); border-color: rgba(124, 58, 237, .3); box-shadow: 0 12px 40px rgba(0,0,0,.3); }

.srv-card-image {
    width: 100%; height: 180px; object-fit: cover; display: block;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(6,182,212,.1));
}
.srv-card-image-placeholder {
    width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,.12) 0%, rgba(6,182,212,.08) 100%);
    color: rgba(255,255,255,.15);
}
.srv-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.srv-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.srv-card-title { font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.3; }

.srv-status {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    border-radius: 20px; font-size: .75rem; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.srv-status--available { color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); }
.srv-status--unavailable { color: #6b7280; background: rgba(107,114,128,.1); border: 1px solid rgba(107,114,128,.2); }
.srv-status-dot { width: 6px; height: 6px; border-radius: 50%; }
.srv-status--available .srv-status-dot { background: #22c55e; }
.srv-status--unavailable .srv-status-dot { background: #6b7280; }

.srv-card-specs { margin-bottom: 16px; flex: 1; }
.srv-spec { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.04); font-size: .88rem; gap: 12px; }
.srv-spec:last-child { border-bottom: none; }
.srv-spec-label { color: rgba(255,255,255,.45); white-space: nowrap; }
.srv-spec-value { color: rgba(255,255,255,.85); font-weight: 500; text-align: right; }

.srv-card-price {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 16px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

.srv-card-actions { display: flex; gap: 8px; }
.srv-btn-rent {
    flex: 1; padding: 10px 16px; text-align: center;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); color: #fff;
    border: none; border-radius: 10px; font-size: .88rem; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.srv-btn-rent:hover { box-shadow: 0 4px 20px rgba(124,58,237,.4); transform: translateY(-1px); }
.srv-btn-rent:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.srv-btn-detail {
    padding: 10px 16px;
    background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-size: .88rem; font-weight: 500;
    cursor: pointer; transition: all .2s;
}
.srv-btn-detail:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ===== DETAIL MODAL ===== */
.srv-modal-overlay {
    position: fixed; inset: 0; z-index: 1000; background: rgba(5,5,16,.85);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden; transition: all .3s;
}
.srv-modal-overlay.active { opacity: 1; visibility: visible; }

.srv-modal {
    background: #0d0d1a; border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
    max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto;
    transform: translateY(20px); transition: transform .3s;
}
.srv-modal-overlay.active .srv-modal { transform: translateY(0); }

.srv-modal-image { width: 100%; height: 240px; object-fit: cover; border-radius: 20px 20px 0 0; }
.srv-modal-image-placeholder {
    width: 100%; height: 200px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(6,182,212,.08));
    border-radius: 20px 20px 0 0; color: rgba(255,255,255,.12);
}

.srv-modal-body { padding: 28px; }
.srv-modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%; color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .2s; z-index: 1;
}
.srv-modal-close:hover { background: rgba(255,255,255,.15); }

.srv-modal-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.srv-modal-title { font-size: 1.5rem; font-weight: 700; color: #fff; }

.srv-modal-section { margin-bottom: 24px; }
.srv-modal-section-title { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.35); margin-bottom: 12px; }

.srv-modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.srv-modal-spec {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.04); border-right: 1px solid rgba(255,255,255,.04);
}
.srv-modal-spec:nth-child(2n) { border-right: none; }
.srv-modal-spec-label { font-size: .8rem; color: rgba(255,255,255,.4); }
.srv-modal-spec-value { font-size: .95rem; color: #fff; font-weight: 500; }

.srv-modal-desc { color: rgba(255,255,255,.65); line-height: 1.7; font-size: .95rem; white-space: pre-wrap; }

.srv-modal-price {
    font-size: 1.6rem; font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.srv-modal-rent { margin-top: 20px; }
.srv-modal-rent .srv-btn-rent { width: 100%; padding: 14px; font-size: 1rem; border-radius: 12px; }

/* ===== ADMIN PANEL ===== */
.adm-overlay {
    position: fixed; inset: 0; z-index: 1100; background: rgba(5,5,16,.9);
    backdrop-filter: blur(8px); display: flex; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden; transition: all .3s; overflow-y: auto;
}
.adm-overlay.active { opacity: 1; visibility: visible; }

.adm-panel {
    background: #0d0d1a; border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
    max-width: 900px; width: 100%; max-height: fit-content; margin: auto;
    transform: translateY(20px); transition: transform .3s;
}
.adm-overlay.active .adm-panel { transform: translateY(0); }

.adm-header {
    display: flex; align-items: center; justify-content: space-between; padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.adm-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.adm-close {
    width: 36px; height: 36px; background: rgba(255,255,255,.06); border: none;
    border-radius: 10px; color: rgba(255,255,255,.6); font-size: 1.1rem; cursor: pointer; transition: all .2s;
}
.adm-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.adm-body { padding: 24px; }

.adm-add-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
    border: none; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: all .2s; margin-bottom: 20px;
}
.adm-add-btn:hover { box-shadow: 0 4px 15px rgba(34,197,94,.3); }

/* Admin server list */
.adm-list { margin-bottom: 24px; }
.adm-item {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px; margin-bottom: 8px; gap: 12px; flex-wrap: wrap;
}
.adm-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.adm-item-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: rgba(255,255,255,.05); }
.adm-item-info { min-width: 0; }
.adm-item-title { font-weight: 600; color: #fff; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-item-meta { font-size: .8rem; color: rgba(255,255,255,.4); }
.adm-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

.adm-btn {
    padding: 6px 14px; border-radius: 8px; font-size: .82rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: all .2s;
    background: rgba(255,255,255,.05); color: rgba(255,255,255,.7);
}
.adm-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-btn--toggle { border-color: rgba(124,58,237,.3); color: #a78bfa; }
.adm-btn--toggle:hover { background: rgba(124,58,237,.15); }
.adm-btn--edit { border-color: rgba(59,130,246,.3); color: #60a5fa; }
.adm-btn--edit:hover { background: rgba(59,130,246,.15); }
.adm-btn--del { border-color: rgba(239,68,68,.3); color: #f87171; }
.adm-btn--del:hover { background: rgba(239,68,68,.15); }

/* Admin form */
.adm-form { display: none; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 24px; }
.adm-form.active { display: block; }
.adm-form-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 20px; }

.adm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.adm-row--full { grid-template-columns: 1fr; }

.adm-field { display: flex; flex-direction: column; gap: 6px; }
.adm-label { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .03em; }
.adm-input, .adm-textarea, .adm-select {
    padding: 10px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; color: #fff; font-size: .92rem; font-family: inherit; transition: border-color .2s;
}
.adm-input:focus, .adm-textarea:focus, .adm-select:focus { outline: none; border-color: #7c3aed; }
.adm-textarea { min-height: 100px; resize: vertical; }
.adm-select { cursor: pointer; }
.adm-select option { background: #0d0d1a; }

/* Specs editor */
.adm-specs { margin-bottom: 16px; }
.adm-specs-title { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }

.adm-spec-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    padding: 8px 12px; background: rgba(255,255,255,.03); border-radius: 10px;
}
.adm-spec-row input[type="text"] {
    flex: 1; padding: 8px 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; color: #fff; font-size: .88rem; font-family: inherit;
}
.adm-spec-row input[type="text"]:focus { outline: none; border-color: #7c3aed; }
.adm-spec-row input[type="text"]:first-of-type { max-width: 160px; }
.adm-spec-check { display: flex; align-items: center; gap: 4px; font-size: .75rem; color: rgba(255,255,255,.4); white-space: nowrap; cursor: pointer; }
.adm-spec-check input { accent-color: #7c3aed; cursor: pointer; }
.adm-spec-del {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: rgba(255,255,255,.3); cursor: pointer; font-size: 1rem;
    border-radius: 6px; transition: all .2s; flex-shrink: 0;
}
.adm-spec-del:hover { background: rgba(239,68,68,.15); color: #f87171; }

.adm-add-spec {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: none; border: 1px dashed rgba(255,255,255,.15); border-radius: 8px;
    color: rgba(255,255,255,.4); font-size: .82rem; cursor: pointer; transition: all .2s;
}
.adm-add-spec:hover { border-color: #7c3aed; color: #a78bfa; }

/* Image upload area */
.adm-upload-area {
    border: 2px dashed rgba(255,255,255,.1); border-radius: 12px; padding: 20px;
    text-align: center; cursor: pointer; transition: all .2s; position: relative;
}
.adm-upload-area:hover { border-color: rgba(124,58,237,.4); }
.adm-upload-area.has-preview { border-style: solid; }
.adm-upload-hint { color: rgba(255,255,255,.35); font-size: .85rem; }
.adm-upload-preview { max-width: 100%; max-height: 180px; border-radius: 8px; margin-top: 8px; }
.adm-upload-remove {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
    background: rgba(0,0,0,.7); border: none; border-radius: 50%; color: #fff;
    font-size: .9rem; cursor: pointer; display: none;
}
.adm-upload-area.has-preview .adm-upload-remove { display: flex; align-items: center; justify-content: center; }

.adm-form-actions { display: flex; gap: 10px; margin-top: 20px; }
.adm-save {
    padding: 12px 28px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff;
    border: none; border-radius: 10px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s;
}
.adm-save:hover { box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.adm-save:disabled { opacity: .5; cursor: not-allowed; }
.adm-cancel {
    padding: 12px 28px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; font-size: .95rem; font-weight: 500; cursor: pointer;
    transition: all .2s;
}
.adm-cancel:hover { background: rgba(255,255,255,.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .servers-page { padding: 80px 0 40px; }
    .servers-title { font-size: 1.3rem; }
    .srv-grid { grid-template-columns: 1fr; gap: 16px; }
    .srv-modal { max-width: 100%; border-radius: 16px; }
    .srv-modal-specs { grid-template-columns: 1fr; }
    .srv-modal-spec { border-right: none !important; }
    .adm-panel { border-radius: 16px; }
    .adm-row { grid-template-columns: 1fr; }
    .adm-spec-row { flex-wrap: wrap; }
    .adm-spec-row input[type="text"]:first-of-type { max-width: 100%; }
    .adm-item { flex-direction: column; align-items: flex-start; }
    .adm-item-actions { width: 100%; justify-content: flex-end; }
}


/* ===== Custom Order CTA ===== */
.srv-custom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.10) 100%);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.srv-custom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 10% 50%, rgba(124,58,237,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.srv-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}
.srv-cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,0.15);
    border-radius: 12px;
    color: #7c3aed;
}
.srv-cta-text h3 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
}
.srv-cta-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.4;
}
.srv-cta-btn {
    text-decoration: none;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    z-index: 1;
}
.srv-cta-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
