/* Secure Member System - Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-input: #2a2a2a;
    --border-color: #444;
    --border-focus: #d4af37;
    --text-primary: #ffffff;
    --text-secondary: #aaa;
    --accent-gold: #d4af37;
    --accent-green: #25d366;
    --accent-blue: #0088cc;
    --accent-orange: #ff9800;
    --error: #ff4444;
    --success: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.form-title {
    text-align: center;
    margin-bottom: 24px;
}

.form-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo img {
    max-width: 120px;
    height: auto;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #8b0000, #d4af37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23aaa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
}

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

.btn-whatsapp {
    background: var(--accent-green);
    color: #fff;
    margin-bottom: 10px;
}

.btn-telegram {
    background: var(--accent-blue);
    color: #fff;
    margin-bottom: 10px;
}

.btn-livechat {
    background: var(--accent-orange);
    color: #fff;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-error {
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-link a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.footer-link a:hover {
    text-decoration: underline;
}

/* Success page */
.success-image {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
}

.success-title {
    text-align: center;
    color: var(--accent-gold);
    font-size: 22px;
    margin-bottom: 20px;
}

.info-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}

.info-box strong {
    color: var(--accent-gold);
}

.contact-buttons {
    margin-top: 10px;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Honeypot - hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Admin styles */
.admin-body {
    background: #2c3e50;
}

.admin-card {
    background: #fff;
    color: #333;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.admin-card h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #000;
}

.admin-card .form-group label {
    color: #555;
}

.admin-card .form-control {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

.admin-card .btn-primary {
    margin-top: 10px;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h1 {
    color: var(--accent-gold);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 8px;
}

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

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    background: var(--bg-input);
    color: var(--accent-gold);
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.badge-pending { background: #ff9800; color: #000; }
.badge-approved { background: #4caf50; color: #fff; }
.badge-rejected { background: #f44336; color: #fff; }

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
    display: inline-block;
}

.btn-logout {
    background: #e74c3c;
    color: #fff;
    width: auto;
    padding: 8px 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.filter-tabs a.active,
.filter-tabs a:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.filter-bar {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-row + .filter-row {
    margin-top: 12px;
}

.filter-group {
    flex: 1;
    min-width: 140px;
}

.filter-group--search {
    flex: 2;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 2px;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.table-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, border-color 0.15s;
}

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

.page-link--active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 700;
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 4px;
}

@media (max-width: 480px) {
    .card { padding: 20px; }
    .admin-card { padding: 25px; }
}
