/* ADSL League Management Styles */
.adsl-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.adsl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.adsl-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.adsl-hero-icon {
    font-size: 32px;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.adsl-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.adsl-hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.adsl-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.adsl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.adsl-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.adsl-card-icon {
    font-size: 18px;
    margin-right: 8px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adsl-card-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.adsl-status-card {
    background: linear-gradient(145deg, #ff6b6b, #ee5a24);
    border: none;
}

.adsl-status-card .adsl-card-header {
    border-bottom-color: rgba(255,255,255,0.2);
}

.adsl-status-card .adsl-card-header h3 {
    color: white;
}

.adsl-toggle-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adsl-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.adsl-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.adsl-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    transition: 0.4s;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.adsl-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.adsl-toggle input:checked + .adsl-slider {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.adsl-toggle input:checked + .adsl-slider:before {
    transform: translateX(30px);
}

.adsl-toggle-label {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.adsl-disabled-message {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.adsl-disabled-message label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.adsl-disabled-message textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    resize: vertical;
}

.adsl-disabled-message textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.adsl-form-group {
    margin-bottom: 12px;
}

.adsl-form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.adsl-input, .adsl-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.adsl-input:focus, .adsl-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.adsl-teams-container {
    margin: 12px 0;
    max-height: 300px;
    overflow-y: auto;
}

.adsl-team-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    border: 1px solid #333;
}

.adsl-team-row label {
    color: #fff;
    font-weight: 500;
    min-width: 80px;
}

.adsl-team-row .adsl-select {
    flex: 1;
}

.adsl-team-row .adsl-input {
    flex: 1;
}

.adsl-logo-upload {
    text-align: center;
}

.adsl-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.adsl-file-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.adsl-file-icon {
    font-size: 20px;
}

.adsl-file-upload input {
    display: none;
}

.adsl-logo-preview {
    margin-top: 16px;
}

.adsl-logo-preview img {
    max-width: 200px;
    max-height: 100px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.adsl-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.adsl-stage-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.adsl-stage-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.adsl-stage-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adsl-stage-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.adsl-stage-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.adsl-stage-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    transition: 0.4s;
    border-radius: 25px;
}

.adsl-stage-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.adsl-stage-toggle input:checked + .adsl-stage-slider {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.adsl-stage-toggle input:checked + .adsl-stage-slider:before {
    transform: translateX(25px);
}

.adsl-stage-info {
    flex: 1;
}

.adsl-stage-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.adsl-stage-desc {
    display: block;
    color: #888;
    font-size: 14px;
}

.adsl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.adsl-btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.adsl-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.adsl-btn-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.adsl-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.adsl-btn-success {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.adsl-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.adsl-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.adsl-btn-icon {
    font-size: 16px;
}

.adsl-save-card {
    background: linear-gradient(145deg, #4ecdc4, #44a08d);
    border: none;
    text-align: center;
}

.adsl-save-card .adsl-card-content {
    padding: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Events Management Styles */
.events-hero {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.events-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="events-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23events-grain)"/></svg>');
    opacity: 0.3;
}

.events-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.events-hero-icon {
    font-size: 32px;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
}

.events-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.events-hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.events-forms {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.events-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.events-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.events-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.events-card-icon {
    font-size: 18px;
    margin-right: 8px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.events-card-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.events-card-header p {
    color: #888;
    font-size: 12px;
    margin: 0 0 0 auto;
}

.events-close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.events-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.events-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
}

.events-action-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid #333;
}

.events-gathering-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid #ff6b6b;
}

.events-tournament-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid #667eea;
}

.events-list-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border: 1px solid #4ecdc4;
}

.events-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.events-form-group {
    margin-bottom: 12px;
}

.events-form-group label {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 12px;
}

.events-input, .events-textarea, .events-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.events-input:focus, .events-textarea:focus, .events-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.1);
}

.events-textarea {
    resize: vertical;
    min-height: 60px;
}

.events-form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.events-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.events-btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.events-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.events-btn-secondary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.events-btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.events-btn-icon {
    font-size: 12px;
}

.events-items {
    min-height: 200px;
}

.events-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.events-empty-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.events-empty-state p {
    margin: 0;
    font-size: 14px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.events-table th {
    background: rgba(255,255,255,0.1);
    padding: 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border-bottom: 1px solid #333;
}

.events-table td {
    padding: 8px;
    font-size: 12px;
    border-bottom: 1px solid #333;
}

.events-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Dashboard Colorful Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #667eea, #f093fb);
}

.stat-card.users::before {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.stat-card.pro::before {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.stat-card.active::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card.blocked::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.stat-card.posts::before {
    background: linear-gradient(90deg, #f093fb, #f5576c);
}

.stat-card.pending::before {
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.stat-card.gatherings::before {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.stat-card.tournaments::before {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-card .icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.3;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-panel {
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.dashboard-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.dashboard-panel h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-panel h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #4ecdc4, #44a08d);
    border-radius: 2px;
}

.dashboard-panel.posts h3::before {
    background: linear-gradient(180deg, #f093fb, #f5576c);
}

.dashboard-panel .subtitle {
    color: #888;
    font-size: 12px;
    margin: 0 0 16px 0;
}

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

.dashboard-table th {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    border-bottom: 1px solid #333;
}

.dashboard-table td {
    padding: 12px;
    font-size: 12px;
    color: #fff;
    border-bottom: 1px solid #333;
}

.dashboard-table tr:hover {
    background: rgba(255,255,255,0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pro {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.status-badge.approved {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #15161a;
  --card: #1f2024;
  --border: #2a2c31;
  --text: #f5f6f8;
  --muted: #9aa0ad;
  --accent: #e10600;
  --accent-soft: rgba(225, 6, 0, 0.12);
  --success: #2ecc71;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  justify-content: center;
  padding: 32px;
}

.admin-app {
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px var(--shadow);
  padding: 32px;
}

.login-card {
  max-width: 420px;
  margin: 64px auto;
  text-align: center;
}

.login-card h1 {
  margin-bottom: 12px;
  font-size: 28px;
  color: var(--accent);
}

.login-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 6, 0, 0.35);
}

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

.btn-danger {
  background: var(--danger);
  color: #fff;
}

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

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

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff4f3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.brand h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.nav-tabs {
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: var(--radius-lg);
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-tab:hover {
  color: var(--text);
}

.logout-btn {
  font-size: 14px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section[data-view] {
  display: none;
}

section[data-view].active {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-card span {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-card strong {
  font-size: 24px;
}

.list-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

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

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

.list-card th,
.list-card td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.list-card tbody tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
}

.badge-pro {
  background: rgba(225, 6, 0, 0.16);
  color: var(--accent);
}

.badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.badge-pending {
  background: rgba(241, 196, 15, 0.18);
  color: var(--warning);
}

.badge-approved {
  background: rgba(46, 204, 113, 0.14);
  color: var(--success);
}

.badge-blocked {
  background: rgba(231, 76, 60, 0.18);
  color: var(--danger);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 24px;
}

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

.form-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px var(--shadow);
  min-width: 240px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-error {
  border-left-color: var(--danger);
}

.toast.fade {
  opacity: 0;
  transform: translateY(-10px);
}

.muted {
  color: var(--muted);
}

.subtle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--muted);
}

.reports-grid {
  display: grid;
  gap: 16px;
}

.report-card {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .nav-tabs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 22px;
  }

  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .list-card th,
  .list-card td {
    padding: 12px;
  }

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

  .nav-tabs {
    grid-template-columns: 1fr 1fr;
  }
}
