:root {
  --bg-dark: #0f172a; /* สีกรมท่าเข้ม */
  --bg-darker: #020617;
  --primary-red: #c41e3a; /* สีแดง THAIPLUS */
  --primary-blue: #2563eb;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-family: 'Prompt', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* Topbar */
.topbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 15px; }
.brand__logo { width: 45px; height: 45px; border-radius: 10px; object-fit: contain; background: #fff; padding: 2px;}
.brand__name { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: 0.5px; }
.brand__tag { font-size: 0.75rem; color: var(--primary-red); font-weight: 500; text-transform: uppercase; letter-spacing: 1px;}

/* Main Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  flex: 1;
}

/* Hero Section */
.hero { text-align: center; margin-bottom: 50px; }
.hero__title { font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero__subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* Grid Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
}
.card-customer::before { background: var(--primary-blue); }
.card-foreman::before { background: #f59e0b; }
.card-admin::before { background: var(--primary-red); }

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.card-customer .card-icon { color: var(--primary-blue); }
.card-foreman .card-icon { color: #f59e0b; }
.card-admin .card-icon { color: var(--primary-red); }

.glass-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.glass-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 25px; flex: 1;}

.btn-action {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  transition: 0.3s;
}
.glass-card:hover .btn-action { background: #fff; color: var(--bg-dark); }

/* LINE Connect */
.line-connect {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}
.line-connect p { margin-bottom: 15px; color: var(--text-muted); }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  background: #06C755; color: #fff; padding: 14px 28px;
  border-radius: 50px; font-weight: 600; font-size: 1.1rem;
  transition: 0.3s; box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}
.btn-line:hover { background: #05b04c; transform: scale(1.05); }

/* Footer */
footer {
  text-align: center; padding: 20px; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--glass-border);
}

/* Floating Share Button */
.fab {
  position: fixed; bottom: 30px; right: 30px; width: 55px; height: 55px;
  background: linear-gradient(135deg, var(--bg-darker), var(--primary-red));
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4); z-index: 99; transition: 0.3s;
}
.fab:hover { transform: scale(1.1) rotate(10deg); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero__title { font-size: 1.8rem; }
  .grid-cards { grid-template-columns: 1fr; }
}