* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
}
a { color: #2a6ebb; text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
  background: #2c3e50;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar .brand {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
.navbar .brand span { color: #5dade2; }
.navbar .nav-links a {
  color: #ecf0f1;
  margin-left: 16px;
  font-size: 14px;
}
.navbar .nav-links a:hover { color: #5dade2; text-decoration: none; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

.hero {
  background: #34495e;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0; color: #cfd8e0; }

.panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.panel h2 {
  margin-top: 0;
  font-size: 21px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}
th {
  background: #f0f2f5;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}
tr:hover td { background: #fafcff; }

.category-row td {
  background: #eef2f6;
  font-weight: bold;
  color: #2c3e50;
  padding: 8px 10px;
  border-bottom: 1px solid #dde5ed;
}

.section-spacer td {
  padding: 0;
  border: none;
  height: 14px;
  background: transparent;
}

.category-label {
  display: inline-block;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1.6;
}

.actions-cell {
  white-space: nowrap;
  text-align: right;
}
.actions-cell .btn { margin-left: 6px; }

.btn-info { background: #7f8c8d; }
.btn-info:hover { background: #6c7a7a; }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}
.filter-tab {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #ccd6e0;
  border-radius: 3px;
  color: #34495e;
  background: #f8fafc;
  font-size: 13px;
}
.filter-tab:hover { background: #eef3f8; text-decoration: none; }
.filter-tab.active {
  background: #2a6ebb;
  border-color: #2a6ebb;
  color: #fff;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid #dde3ea;
  border-radius: 24px;
  color: #34495e;
  background: #fff;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.platform-tab svg { flex-shrink: 0; }
.platform-tab:hover {
  border-color: #c7d0da;
  background: #f8fafc;
  text-decoration: none;
}
.platform-tab.active {
  background: #eaf2fc;
  border-color: #2a6ebb;
  color: #1f5a9e;
  box-shadow: 0 1px 3px rgba(42,110,187,0.25);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-box {
  background: #fff;
  border-radius: 4px;
  padding: 20px 24px;
  width: 90%;
  max-width: 420px;
  position: relative;
}
.modal-box h3 { margin: 0 0 2px; padding-right: 24px; font-size: 16px; }
.modal-sub { color: #888; font-size: 12px; margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.modal-close:hover { color: #333; }

.modal-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin: 16px 0 8px;
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.modal-box .modal-section-title:first-of-type { border-top: none; padding-top: 0; }

.modal-list {
  display: flex;
  flex-direction: column;
}
.modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #f0f2f5;
}
.modal-row:last-child { border-bottom: none; }
.modal-row-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.modal-row-label { flex: 1; font-size: 13px; color: #666; }
.modal-row-value { font-size: 14px; font-weight: bold; color: #2c3e50; text-align: right; }

.feature-yes { color: #1e8449; font-weight: bold; }
.feature-no { color: #999; }

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: #2a6ebb;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}
.btn:hover { background: #1f5a9e; text-decoration: none; }
.btn-small { padding: 3px 10px; font-size: 12px; }
.btn-green { background: #27ae60; }
.btn-green:hover { background: #1e8449; }
.btn-red { background: #c0392b; }
.btn-red:hover { background: #922b21; }

form.inline { display: inline; }

input[type=text], input[type=email], input[type=password], input[type=number] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  width: 100%;
  max-width: 320px;
}
label { display: block; margin: 10px 0 4px; font-weight: bold; font-size: 13px; }

.alert {
  padding: 10px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-error { background: #fdecea; color: #922b21; border: 1px solid #f5c6cb; }
.alert-success { background: #e9f7ef; color: #1e7e34; border: 1px solid #c3e6cb; }

.balance {
  font-size: 22px;
  font-weight: bold;
  color: #27ae60;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
}
.badge-pending { background: #e67e22; }
.badge-completed { background: #27ae60; }
.badge-processing, .badge-in_progress { background: #2980b9; }
.badge-canceled, .badge-rejected { background: #c0392b; }
.badge-approved { background: #27ae60; }

footer {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
}
