/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #242424;
  --bg-card: #1e1e1e;
  --bg-hover: #2a2a2a;
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  
  --accent-primary: #5865f2;
  --accent-hover: #4752c4;
  --accent-green: #57f287;
  --accent-yellow: #fee75c;
  --accent-red: #ed4245;
  --accent-orange: #f59e0b;
  
  --discord-blurple: #5865f2;
  
  --border-color: #2d2d2d;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  
  --transition: all 0.2s ease;
  
  --header-height: 70px;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-discord {
  background: var(--discord-blurple);
  color: white;
}

.btn-discord:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon, .discord-icon {
  width: 20px;
  height: 20px;
}

/* ===== Header ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.user-menu:hover {
  background: var(--bg-hover);
}

.user-avatar img,
.user-avatar .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: white;
  font-weight: 600;
}

.avatar-placeholder.small {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

.admin-badge-small {
  font-size: 14px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
}

.user-menu:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item.logout {
  color: var(--accent-red);
}

.dropdown-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

/* ===== Main Content ===== */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 40px) 24px 40px;
  min-height: 100vh;
}

/* ===== Hero Section ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 18px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
}

.float-card .card-icon {
  font-size: 32px;
}

.float-card .card-text {
  font-weight: 600;
  font-size: 18px;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 45%;
  right: 10%;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 15%;
  left: 25%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== Features Section ===== */
.features {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Login Page ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.login-header {
  padding: 40px 32px 24px;
  text-align: center;
}

.login-header .logo {
  justify-content: center;
  margin-bottom: 24px;
}

.login-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
}

.login-body {
  padding: 0 32px 32px;
}

.login-body .btn {
  width: 100%;
}

.login-footer {
  padding: 24px 32px;
  background: var(--bg-secondary);
  text-align: center;
}

.login-footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.back-link {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Dashboard ===== */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
}

.back-btn {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.back-btn:hover {
  color: var(--text-primary);
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: 32px;
}

.profile-avatar img,
.profile-avatar .avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  font-size: 36px;
}

.profile-info h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.profile-info .username {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.profile-info .user-id {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 8px;
}

.admin-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  color: var(--text-primary);
}

.dashboard-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.dashboard-card .card-icon {
  font-size: 40px;
}

.dashboard-card .card-content h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.dashboard-card .card-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.dashboard-card .stat-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-card .card-arrow {
  margin-left: auto;
  font-size: 24px;
  color: var(--text-muted);
  transition: var(--transition);
}

.dashboard-card:hover .card-arrow {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.admin-card {
  border-color: var(--accent-orange);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
}

.admin-indicator {
  margin-left: auto;
  padding: 4px 12px;
  background: var(--accent-orange);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.quick-stats h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.stats-note {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-primary);
}

.stats-note p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Tickets Page ===== */
.tickets-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header-left .back-btn {
  display: block;
}

.ticket-count {
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
}

.tickets-list {
  display: grid;
  gap: 16px;
}

.ticket-card {
  display: block;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  color: var(--text-primary);
}

.ticket-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ticket-channel {
  font-size: 18px;
  font-weight: 600;
}

.ticket-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.status-closed {
  background: rgba(237, 66, 69, 0.2);
  color: var(--accent-red);
}

.status-open {
  background: rgba(87, 242, 135, 0.2);
  color: var(--accent-green);
}

.ticket-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
}

.info-value {
  font-size: 14px;
  color: var(--text-secondary);
}

.info-value.code {
  font-family: monospace;
  font-size: 12px;
}

.ticket-claimed {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
}

.ticket-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.view-btn {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 14px;
}

/* ===== Transcript Page ===== */
.transcript-info-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  margin-bottom: 24px;
}

.transcript-info-card h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.info-grid .info-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
}

.user-tag {
  font-weight: 600;
}

.transcript-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.transcript-content h2 {
  padding: 24px 24px 0;
  font-size: 18px;
}

.transcript-note {
  padding: 0 24px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.discord-transcript {
  margin: 0 16px 16px;
  background: #36393f;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.transcript-header {
  padding: 16px 20px;
  background: #2f3136;
  border-bottom: 1px solid #202225;
}

.server-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-name {
  font-weight: 700;
  font-size: 16px;
}

.channel-name {
  color: #72767d;
  font-size: 14px;
}

.ticket-opener {
  font-size: 12px;
  color: #72767d;
  margin-top: 4px;
}

.messages-container {
  max-height: 600px;
  overflow-y: auto;
  padding: 16px 0;
}

.message {
  display: flex;
  gap: 16px;
  padding: 8px 20px;
  margin: 4px 0;
}

.message:hover {
  background: #32353b;
}

.message-avatar img,
.message-avatar .avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.author-name {
  font-weight: 600;
  color: #fff;
}

.author-name.bot-tag {
  color: #5865f2;
}

.bot-badge {
  display: inline-block;
  padding: 1px 4px;
  background: var(--accent-primary);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

.message-time {
  font-size: 11px;
  color: #72767d;
}

.message-text {
  color: #dcddde;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.attachment {
  display: block;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.attachment img {
  display: block;
  max-width: 100%;
  max-height: 300px;
}

.no-messages {
  text-align: center;
  padding: 40px;
  color: #72767d;
}

/* ===== Expenses Page ===== */
.expenses-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.total-card {
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-green));
  border-radius: var(--border-radius);
}

.total-label {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.total-amount {
  font-size: 24px;
  font-weight: 700;
}

.expenses-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.summary-icon {
  font-size: 32px;
}

.summary-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
}

.summary-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.expenses-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.expenses-table {
  width: 100%;
  border-collapse: collapse;
}

.expenses-table th,
.expenses-table td {
  padding: 16px 20px;
  text-align: left;
}

.expenses-table th {
  background: var(--bg-secondary);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.expenses-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-color);
}

.expenses-table tr:hover td {
  background: var(--bg-hover);
}

.date-cell {
  white-space: nowrap;
}

.date-cell .date {
  display: block;
  font-weight: 500;
}

.date-cell .time {
  font-size: 12px;
  color: var(--text-muted);
}

.description-cell {
  max-width: 300px;
}

.category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-tertiary);
}

.category-netflix { background: #e50914; }
.category-spotify { background: #1db954; }
.category-youtube { background: #ff0000; }
.category-game { background: #7289da; }
.category-khác { background: var(--bg-tertiary); }

.user-cell .username {
  display: block;
  font-weight: 500;
}

.user-cell .user-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.amount-cell .amount {
  font-weight: 600;
  color: var(--accent-green);
}

.code-cell code {
  padding: 4px 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 12px;
}

.no-code {
  color: var(--text-muted);
}

.expenses-list-mobile {
  display: none;
}

/* ===== Error Page ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 100px);
}

.error-container {
  text-align: center;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.error-message {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand p {
  margin-left: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .subtitle {
    font-size: 24px;
  }
  
  .user-profile-card {
    flex-direction: column;
    text-align: center;
  }
  
  .expenses-table-container {
    display: none;
  }
  
  .expenses-list-mobile {
    display: grid;
    gap: 16px;
  }
  
  .expense-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
  }
  
  .expense-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  
  .expense-date {
    color: var(--text-muted);
    font-size: 14px;
  }
  
  .expense-amount {
    font-weight: 600;
    color: var(--accent-green);
  }
  
  .expense-description {
    margin-bottom: 8px;
  }
  
  .expense-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
  }
  
  .expense-user {
    font-size: 13px;
    color: var(--text-secondary);
  }
  
  .tickets-page .page-header,
  .expenses-page .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-right {
    width: 100%;
  }
  
  .total-card {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 16px;
  }
  
  .main-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .user-name {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}
