/*
  /index.css
*/


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f172a;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.header {
    text-align: center;
    padding: 2rem 1rem;
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-titles {
    text-align: center;
}

.header-auth {
    display: flex;
    justify-content: flex-end;
}

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

/* ── Auth button ── */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.auth-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* ── Main / cards ── */
main {
    flex: 1;
    padding: 1.5rem;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card {
    background: #020617;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
    flex: 1 1 calc(33.333% - 1.5rem);
}

@media (max-width: 900px) {
    .card { flex: 1 1 calc(50% - 1.5rem); }
}

@media (max-width: 600px) {
    .card { flex: 1 1 100%; }
    .header-top { grid-template-columns: 1fr; }
    .header-auth { justify-content: center; }
}

.card:hover { transform: translateY(-4px); }

.card h2 { margin-bottom: 0.5rem; font-size: 1.4rem; }

.card p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 1rem; }

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

.button {
    flex: 1;
    text-align: center;
    padding: 0.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background: #2563eb;
    color: #fff;
    transition: background 0.2s ease;
}

.button:hover { background: #1e40af; }

.button.onion { background: #7c3aed; }
.button.onion:hover { background: #5b21b6; }

footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ── Modal overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal box ── */
.modal {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.25s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

/* ── Close button ── */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover {
    color: #e5e7eb;
    background: #334155;
}

/* ── Tabs ── */
.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #334155;
}

.tab-btn {
    flex: 1;
    padding: 0.65rem;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover { color: #e5e7eb; }

.tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* ── Tab content ── */
.tab-content {
    display: none;
    flex-direction: column;
    gap: 1.1rem;
}

.tab-content.active { display: flex; }

/* ── Form elements ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: #e5e7eb;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder { color: #475569; }

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* ── Submit button ── */
.submit-btn {
    margin-top: 0.4rem;
    padding: 0.7rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover { background: #1d4ed8; }
.submit-btn:active { transform: scale(0.98); }

/* ── Feedback message ── */
.form-message {
    font-size: 0.88rem;
    text-align: center;
    min-height: 1.2em;
    margin-top: 0.25rem;
}

.form-message.success { color: #34d399; }
.form-message.error   { color: #f87171; }


/* ── Security warning ── */
.security-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.8rem;
    line-height: 1.45;
}

.security-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.security-warning strong {
    color: #fde68a;
}
