/* ============================================
   George's Rigs — Light/Clean Theme
   ============================================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
  color: var(--text);
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:active {
  transform: scale(0.9);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.nav-toggle.open svg {
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s ease;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links.open {
    max-height: 300px;
    opacity: 1;
    padding: 0.5rem;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.25s ease;
  }

  .nav-links.open a {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links.open li:nth-child(1) a { transition-delay: 0.05s; }
  .nav-links.open li:nth-child(2) a { transition-delay: 0.1s; }
  .nav-links.open li:nth-child(3) a { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(4) a { transition-delay: 0.2s; }

  .nav-links a::after {
    display: none;
  }
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-section {
  padding: 3rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: headerFadeIn 0.6s ease-out both;
}

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

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 50%, #38bdf8 100%);
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
  color: white;
  padding: 5rem 1rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.1;
  animation: heroFadeUp 0.7s ease-out both;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: heroFadeUp 0.7s 0.15s ease-out both;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: heroFadeUp 0.7s 0.3s ease-out both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 0.9; transform: translateY(0); }
}

.hero h1 { animation-name: heroFadeUpFull; }

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

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,255,255,0.15);
}

.btn-danger {
  background: #ef4444;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   Cards
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.2);
}

/* Scroll-triggered fade-in for cards and sections */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}

.card:hover .card-image {
  background: linear-gradient(135deg, #bae6fd 0%, var(--primary-light) 100%);
}

.card:hover .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  animation: shimmer 0.7s ease-out;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-rate {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

/* ============================================
   Services Grid (Home)
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.2);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   Availability Badge
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-available {
  background: #dcfce7;
  color: #166534;
}

.badge-unavailable {
  background: #fee2e2;
  color: #991b1b;
}

.badge-partial {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================
   Specs List
   ============================================ */

.specs {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.specs span {
  display: inline-block;
  margin-right: 0.5rem;
}

.specs span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ============================================
   Blocked Dates Display
   ============================================ */

.blocked-dates {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.blocked-dates h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blocked-date-item {
  font-size: 0.8rem;
  color: #991b1b;
  padding: 0.2rem 0;
}

/* ============================================
   Tutorial Cards
   ============================================ */

.tutorial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.tutorial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.15);
}

.tutorial-card.open {
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.25);
}

.tutorial-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tutorial-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.tutorial-header p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.tutorial-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
}

.tutorial-card.open .tutorial-toggle {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}

.tutorial-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  line-height: 1.7;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.4s ease;
}

.tutorial-card.open .tutorial-content {
  max-height: 2000px;
  opacity: 1;
  padding: 0 1.5rem 1.5rem;
}

.tutorial-content h3,
.tutorial-content h4,
.tutorial-content h5 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.tutorial-content h3 { font-size: 1.15rem; }
.tutorial-content h4 { font-size: 1rem; }
.tutorial-content h5 { font-size: 0.9rem; }

.tutorial-content p {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

.tutorial-content ul,
.tutorial-content ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.tutorial-content li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.tutorial-content em {
  color: var(--text-light);
}

.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================
   Admin App Layout
   ============================================ */

.admin-body {
  background: var(--bg);
}

.admin-pin-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
}

.pin-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.pin-form {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.pin-form h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.pin-form p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pin-input {
  width: 100%;
  padding: 1rem;
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

.pin-input:focus {
  border-color: var(--primary);
}

.pin-input.error {
  border-color: #ef4444;
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.pin-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Admin App Shell */

.admin-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Top Bar */

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-topbar-title span {
  color: var(--primary);
}

.admin-topbar-right {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.admin-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.15s;
}

.admin-icon-btn:hover {
  background: var(--bg);
}

.admin-icon-btn.notif-on {
  color: #16a34a;
}

.admin-icon-btn.notif-blocked {
  color: #ef4444;
}

/* Tab Content */

.admin-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  position: relative;
}

.admin-tab-content {
  display: none;
  animation-fill-mode: both;
}

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

/* Tab content enter/exit animations */
.admin-tab-content.tab-enter-right {
  animation: tabSlideInRight 0.25s ease-out;
}

.admin-tab-content.tab-enter-left {
  animation: tabSlideInLeft 0.25s ease-out;
}

.admin-tab-content.tab-exit {
  animation: tabFadeOut 0.15s ease-in forwards;
  pointer-events: none;
}

@keyframes tabSlideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes tabSlideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* Bottom Tab Bar */

.admin-tabbar {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  position: relative;
}

/* Sliding indicator line */
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.admin-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.6rem 0 0.5rem;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.admin-tab:active {
  transform: scale(0.92);
}

.admin-tab.active {
  color: var(--primary);
}

.admin-tab span {
  transition: opacity 0.2s ease;
}

.admin-tab.active span {
  opacity: 1;
}

.admin-tab:not(.active) span {
  opacity: 0.7;
}

.admin-tab svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.admin-tab.active svg {
  transform: scale(1.1);
  filter: drop-shadow(0 1px 2px rgba(14, 165, 233, 0.3));
}

/* Icon bounce on tap */
@keyframes tabIconBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1.1); }
}

.tab-icon-bounce {
  animation: tabIconBounce 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 2s infinite;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Empty State */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}

.empty-state p {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  color: var(--text);
}

.empty-state span {
  font-size: 0.85rem;
}

/* Rig Cards + Block Form */

.admin-rig-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-rig-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-rig-header {
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.admin-rig-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.rig-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.rig-add-form .block-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.rig-mgmt-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-light);
  transition: background 0.15s, color 0.15s;
}

.rig-mgmt-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.rig-mgmt-delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.rig-file-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.rig-current-image {
  position: relative;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rig-current-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.rig-remove-img {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.rig-edit-form {
  padding: 0 1rem;
}

.rig-edit-form .block-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.admin-rig-body {
  display: none;
  padding: 0 1rem 1rem;
}

.admin-rig-card.open .admin-rig-body {
  display: block;
}

.block-form {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  margin-bottom: 0.75rem;
}

.block-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.block-form input,
.block-form select {
  width: 100%;
  padding: 0.65rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  -webkit-appearance: none;
  background: var(--white);
}

.block-form input:focus,
.block-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.block-form .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

.existing-blocks {
  margin-top: 0.75rem;
}

.existing-blocks h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.4rem;
}

.block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  gap: 0.4rem;
}

.block-item-info {
  font-size: 0.85rem;
  font-weight: 500;
}

.block-item-dates {
  font-size: 0.75rem;
  color: var(--text-light);
}

.block-item .btn-sm {
  flex-shrink: 0;
}

/* ============================================
   Mobile Schedule Cards
   ============================================ */

.sched-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.sched-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.sched-card-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Mini 14-day bar */

.mini-bar {
  margin-bottom: 0.5rem;
}

.mini-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mini-bar-days {
  display: flex;
  gap: 2px;
  height: 20px;
}

.mini-day {
  flex: 1;
  background: var(--bg);
  border-radius: 2px;
  border: 1px solid var(--border);
}

.mini-day.mini-booked {
  background: var(--primary);
  border-color: var(--primary-dark);
  cursor: pointer;
}

.mini-day.mini-pending {
  background: #fbbf24;
  border-color: #f59e0b;
  cursor: pointer;
}

/* Schedule block list */

.sched-card-blocks {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.sched-block-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  cursor: pointer;
}

.sched-block-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-confirmed { background: var(--primary); }
.dot-pending { background: #fbbf24; }

.sched-block-name {
  font-weight: 500;
  flex: 1;
}

.sched-block-dates {
  color: var(--text-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.sched-card-empty {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  padding-top: 0.25rem;
}

/* ============================================
   Today Tab
   ============================================ */

.today-date {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.today-summary {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.today-stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.today-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.today-stat-num.stat-active {
  color: var(--primary);
}

.today-stat-num.stat-available {
  color: #16a34a;
}

.today-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.today-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.today-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.today-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  gap: 0.5rem;
}

.today-card-rented {
  border-left: 4px solid var(--primary);
}

.today-card-return {
  border-left: 4px solid #f59e0b;
}

.today-card-available {
  cursor: default;
}

.today-card-left {
  flex: 1;
  min-width: 0;
}

.today-card-rig {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.today-card-customer {
  font-size: 0.85rem;
  color: var(--text-light);
}

.today-card-dates {
  font-size: 0.75rem;
  color: var(--text-light);
}

.today-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.today-call-btn:hover,
.today-call-btn:active {
  background: #16a34a;
  color: white;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* ============================================
   Filter Tabs
   ============================================ */

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-tab {
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.filter-tab:active {
  transform: scale(0.95);
}

.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
  transform: scale(1.05);
}

/* ============================================
   Toast Notification
   ============================================ */

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px) scale(0.9);
  background: var(--text);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(8px);
  max-width: calc(100vw - 2rem);
}

.toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.toast.success {
  background: rgba(22, 101, 52, 0.95);
}

.toast.error {
  background: rgba(153, 27, 27, 0.95);
}

/* ============================================
   PWA Install Banner
   ============================================ */

.install-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%);
  color: white;
  font-size: 0.85rem;
}

.install-banner-text {
  flex: 1;
}

/* ============================================
   Notification Status
   ============================================ */

.notif-status {
  padding: 0.6rem 1rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ============================================
   Block Info Popup (Admin)
   ============================================ */

.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.info-overlay.show {
  display: flex;
}

.info-popup {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  animation: popup-in 0.15s ease-out;
}

@keyframes popup-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.info-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.info-popup-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.info-popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

.info-popup-close:hover {
  color: var(--text);
}

.info-popup-body {
  padding: 1rem 1.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.info-row span:not(.info-label):not(.badge),
.info-row a {
  font-size: 0.95rem;
  text-align: right;
}

.info-phone {
  font-size: 1rem !important;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   Reservation Form (Customer Side)
   ============================================ */

.reserve-form {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.reserve-form h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.reserve-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.reserve-form input,
.reserve-form select {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  background: var(--white);
  -webkit-appearance: none;
}

.reserve-form input:focus,
.reserve-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.reserve-form .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* ============================================
   Rental Calendar (Customer Side)
   ============================================ */

.cal-wrap {
  margin-bottom: 0.75rem;
}

.cal-prompt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.6rem;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cal-clear {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  cursor: pointer;
}

.cal-clear:hover {
  background: var(--primary);
  color: white;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.cal-month {
  font-weight: 700;
  font-size: 0.95rem;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
}

.cal-nav:hover {
  background: var(--bg);
}

.cal-nav-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-dow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 0.25rem 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}

.cal-empty {
  background: none;
}

.cal-past {
  color: var(--border);
  background: none;
}

.cal-blocked {
  background: #fee2e2;
  color: #991b1b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.cal-open {
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.1s;
}

.cal-open:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.cal-today {
  font-weight: 700;
}

.cal-today.cal-open {
  border-color: var(--primary);
}

.cal-selected {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark);
}

.cal-sel-start {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
  font-weight: 700;
}

.cal-sel-end {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary-dark) !important;
  font-weight: 700;
}

.cal-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.cal-legend-open {
  background: var(--white);
  border: 1px solid var(--border);
}

.cal-legend-blocked {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.cal-legend-selected {
  background: var(--primary);
}

/* ============================================
   Pending Requests (Admin)
   ============================================ */

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pending-card {
  background: var(--white);
  border: 2px solid #fbbf24;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.pending-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.pending-rig-name {
  font-weight: 700;
  font-size: 1rem;
}

.pending-dates {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: right;
  flex-shrink: 0;
}

.pending-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.pending-phone {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.pending-email {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.pending-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.btn-approve {
  flex: 1;
  padding: 0.875rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-approve:hover,
.btn-approve:active {
  background: #15803d;
}

.btn-deny {
  flex: 1;
  padding: 0.875rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-deny:hover,
.btn-deny:active {
  background: #dc2626;
}

.conflict-msg {
  margin-top: 0.75rem;
  padding: 0.875rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  animation: conflictSlide 0.3s ease;
}

.conflict-text {
  font-size: 0.95rem;
  color: #991b1b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.conflict-msg .btn-deny {
  width: 100%;
}

@keyframes conflictSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Schedule Overview (Admin)
   ============================================ */

.schedule-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-booked {
  background: var(--primary);
}

.legend-pending {
  background: #fbbf24;
}

.legend-free {
  background: var(--bg);
  border: 1px solid var(--border);
}

.schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.schedule-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.75rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.schedule-month-header {
  padding: 0.3rem 0.25rem;
  background: var(--bg);
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.schedule-day-header {
  padding: 0.2rem 0.15rem;
  min-width: 36px;
  background: var(--white);
}

.schedule-day-name {
  font-size: 0.6rem;
  color: var(--text-light);
  font-weight: 500;
}

.schedule-day-num {
  font-size: 0.75rem;
  font-weight: 600;
}

.schedule-today {
  background: var(--primary-light) !important;
}

.schedule-today .schedule-day-num {
  color: var(--primary);
}

.schedule-weekend {
  background: #f1f5f9;
}

.schedule-rig-name-header {
  padding: 0.3rem 0.5rem;
  text-align: left;
  background: var(--bg);
  font-weight: 600;
  min-width: 140px;
  position: sticky;
  left: 0;
  z-index: 2;
}

.schedule-rig-name {
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
  background: var(--white);
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 2px solid var(--border) !important;
}

.schedule-cell {
  padding: 0;
  height: 28px;
  min-width: 36px;
}

.schedule-cell-free {
  background: var(--white);
}

.schedule-cell-booked {
  background: var(--primary);
}

.schedule-cell-pending {
  background: #fbbf24;
}

/* ============================================
   Loading
   ============================================ */

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 1rem auto 0;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
