/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

a {
    text-decoration: none;
    color: #2563eb;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 16px;
}

header {
    background: #111827;
    color: #fff;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-weight: 700;
    font-size: 18px;
}

.header-nav a {
    color: #fff;
    margin-left: 16px;
    font-size: 14px;
}

/* =========================
   FORMS
========================= */

.form-box {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1e40af;
}

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

.btn-outline {
    background: #fff;
    border: 1px solid #d1d5db;
}

/* =========================
   ALERTS
========================= */

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

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* =========================
   TABLE
========================= */

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

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

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

.table th {
    background: #f9fafb;
}

/* =========================
   STATUS BADGES
========================= */

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fef3c7;
    color: #92400e;
}

.status-banned {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #e0e7ff;
    color: #3730a3;
}

/* =========================
   INFO BOX GRID
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.info-box {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #e5e7eb;
}

/* =========================
   CLUB CARD
========================= */

.club-card {
    position: relative;
    background: linear-gradient(135deg,#2563eb,#1e3a8a);
    color: #fff;
    padding: 28px;
    border-radius: 16px;
    max-width: 380px;
    margin: 0 auto;
}

.card-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.card-brand {
    font-weight: 700;
}

.card-status {
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 6px;
}

.member-code {
    font-size: 14px;
    opacity: 0.95;
}

.qr-box img {
    border-radius: 10px;
}

/* =========================
   CARD VIEW SWITCH
========================= */

.card-toggle-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.card-toggle-btn:hover {
    background: rgba(255,255,255,0.3);
}

.card-view {
    display: none;
    margin-top: 18px;
}

.card-view.is-active {
    display: block;
}

/* =========================
   DAILY PATTERN
========================= */

.daily-pattern {
    text-align: center;
    margin-top: 14px;
}

.pattern-visual {
    position: relative;
    height: 70px;
}

.pattern-dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.dot-1 {
    left: 10%;
    top: 20px;
}

.dot-2 {
    left: 40%;
    top: 35px;
}

.dot-3 {
    left: 70%;
    top: 10px;
}

/* =========================
   UTIL
========================= */

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .form-box {
        padding: 20px;
    }

    .club-card {
        padding: 22px;
    }

}