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

:root {
  --navy: #0a1628;
  --navy-light: #132244;
  --gold: #d4a843;
  --gold-light: #f0d080;
  --gold-dark: #b8922e;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #c4c9d0;
  --gray-500: #88929e;
  --gray-700: #4a525e;
  --gray-900: #1a1d23;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --red: #e74c3c;
  --red-dark: #c0392b;
  --blue: #3498db;
  --amber: #f39c12;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.15);
  --transition: all 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.main-content {
  flex: 1;
}

/* Navbar */
.navbar {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  font-size: 1.6rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-user {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.nav-logout {
  color: var(--gray-500);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--gray-500);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-text {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-small {
  font-size: 0.75rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Auth Pages */
.auth-page {
  min-height: calc(100vh - 64px - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 50%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212, 168, 67, 0.03) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(212, 168, 67, 0.02) 0%, transparent 60%);
  animation: bgShift 20s ease-in-out infinite;
}

@keyframes bgShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -1%); }
}

.auth-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.auth-header p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}

.form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.15);
  background: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.btn-full {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(212, 168, 67, 0.05);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.btn-danger:hover {
  background: var(--red);
  color: var(--white);
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-500);
}

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

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

.auth-demo {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 0.6rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
}

/* Alert */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: #fdeaea;
  color: var(--red-dark);
  border: 1px solid #f5c6cb;
}

/* Dashboard */
.dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dashboard-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 168, 67, 0.2);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: '⚽';
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 12rem;
  opacity: 0.04;
  transform: rotate(15deg);
}

.hero-content h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.hero-content p {
  color: var(--gray-300);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-300);
  margin-top: 0.2rem;
}

.stat-collected .stat-value { color: var(--green); }
.stat-duplicate .stat-value { color: var(--amber); }

.hero-progress {
  margin-top: 0.5rem;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 10px;
  transition: width 0.8s ease;
  min-width: 0;
}

.progress-text {
  color: var(--gray-300);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  text-align: right;
}

/* Toolbar */
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input {
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  width: 280px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388929e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 0.7rem center / 1.2rem no-repeat;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.1);
}

.export-actions {
  display: flex;
  gap: 0.5rem;
}

/* Share Status */
.share-status {
  background: #eefbf3;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.share-status p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.share-url-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.share-url-container input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  font-family: monospace;
}

/* Team Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.team-card:hover::before {
  opacity: 1;
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.team-flag {
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  text-align: center;
}

.team-info {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-group {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.team-card-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.team-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
}

.team-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  border-radius: 6px;
  transition: width 0.6s ease;
}

.team-progress-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Sticker Detail Modal */
.sticker-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sticker-detail-modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0 0.4rem;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.sticker-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  min-height: 95px;
}

.sticker-item:hover {
  border-color: var(--gold);
}

.sticker-item.collected {
  border-color: var(--green);
  background: #f0fdf4;
}

.sticker-item.duplicate {
  border-color: var(--amber);
  background: #fffbeb;
}

.sticker-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
}

.sticker-type-icon {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.sticker-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.sticker-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: var(--transition);
}

.sticker-item.collected .sticker-check {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.sticker-item.duplicate .sticker-check {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

.sticker-duplicate-btn {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  margin-top: 0.3rem;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.sticker-duplicate-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.sticker-item.duplicate .sticker-duplicate-btn {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(243, 156, 18, 0.1);
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}

/* Shared Banner */
.shared-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 0.8rem 1rem;
  text-align: center;
  color: var(--white);
}

.shared-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shared-banner-content p {
  font-size: 0.9rem;
}

.shared-banner-content small {
  font-size: 0.75rem;
  opacity: 0.8;
  width: 100%;
}

/* Legal Pages */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.legal-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.legal-container h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.legal-subtitle {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.legal-section p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.legal-section ul {
  list-style: none;
  padding: 0;
}

.legal-section ul li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.legal-section ul li::before {
  content: '•';
  color: var(--gold);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.legal-section a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Error page */
.error-page {
  min-height: calc(100vh - 64px - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.error-card {
  text-align: center;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 420px;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.error-card p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* Shared View */
.share-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.share-section {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.share-section-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.share-section-empty {
  width: 100%;
  color: var(--gray-500);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-needed {
  background: #fdeaea;
  color: var(--red-dark);
  border: 1px solid #f5c6cb;
}

.badge-duplicate {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.share-section-header.share-section-needed {
  border-bottom: 2px solid #f5c6cb;
  background: #fff5f5;
}

.share-section-header.share-section-duplicate {
  border-bottom: 2px solid #fde68a;
  background: #fffbeb;
}

.share-team-list {
  padding: 0.5rem 1.5rem 1rem;
}

.share-team-group {
  margin: 0.5rem 0;
}

.share-team-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  margin-bottom: 0.3rem;
}

.share-team-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.share-team-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.share-team-count {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: auto;
}

.share-sticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-left: 1.8rem;
}

.share-sticker-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: monospace;
  letter-spacing: -0.02em;
}

.tag-needed {
  background: #fdeaea;
  color: var(--red-dark);
  border: 1px solid #f5c6cb;
}

.tag-duplicate {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Share Tabs */
.share-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.share-tab {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: none;
  background: var(--white);
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.share-tab:not(:last-child) {
  border-right: 1px solid var(--gray-200);
}

.share-tab:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}

.share-tab.active {
  background: var(--navy);
  color: var(--white);
}

.share-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

.share-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
}

.tab-content {
  display: none;
}

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

.match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .match-columns {
    grid-template-columns: 1fr;
  }
}

.match-column-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.match-column-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
  color: var(--navy);
}

.match-column-header.match-need {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
}

.match-column-header.match-dup {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--gold);
    gap: 0.8rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .dashboard-hero {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

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

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

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

  .sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .legal-container {
    padding: 1.5rem;
  }

  .sticker-detail-modal {
    max-height: 90vh;
    margin: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-card {
    padding: 0.6rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .nav-logo-text {
    font-size: 1rem;
  }
}
