@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-font: 'Montserrat', Arial, sans-serif;
    
    /* Kempt Forestry Theme Colors */
    --theme-bg-dark: #0f1a11;
    --theme-card-bg: #15251b;
    --theme-accent-green: #7ec89a;
    --theme-action-green: #468e60;
    --theme-action-hover: #3a7a52;
    --theme-orange: #d68d3a;
    --theme-orange-hover: #c07d30;
    --theme-sage: #5a8a6d;
    --theme-white: #ffffff;
    --theme-text-muted: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--primary-font);
}

body {
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--theme-bg-dark);
    margin: 0;
}

.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.card {
    width: 380px;
    height: 98dvh;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    color: var(--theme-white);
    background: var(--theme-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* dark overlay */
.overlay {
    pointer-events: none; 
    position: absolute;
    inset: 0;
}

.hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.top-bar,
.bottom-bar {
    display: flex;
    justify-content: center;
    gap: 190px;
    width: 100%;
    padding: 0 15px;
    z-index: 5;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-bar {
    top: 0px;
}

.bottom-bar {
    bottom: 20px;
}

.icon-top-btn,
.icon-bottom-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-top-btn:hover,
.icon-bottom-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--theme-accent-green);
}

.icon-hidden-btn {
    visibility: hidden;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.avatar {
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
    min-width: 200px;
    min-height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(126, 200, 154, 0.4);
    background: #1a2a20 center center / cover no-repeat;
    margin-bottom: 15px;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.action-section {
    margin-top: 10px;
    text-align: center;
}

.action-section h2 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--theme-accent-green);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10px auto;
    padding: 12px 16px;
    gap: 10px;
    width: 85%;
    max-width: 320px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--theme-white);
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.action-btn svg {
    flex-shrink: 0;
    display: block;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

p.subtitle {
    opacity: 0.85;
    font-size: 13px;
    margin-bottom: 3px;
}

a.subtitle {
    opacity: 0.85;
    color: var(--theme-white);
    text-decoration: none;
    font-size: 13px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 26, 17, 0.8); /* matching theme background dark color */
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #15251b; /* matching theme card background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 24px;
    border-radius: 16px;
    width: 300px;
    text-align: center;
    color: var(--theme-white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--theme-accent-green);
}

.modal-content p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.modal-content button {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--theme-white);
    background: var(--theme-action-green);
    transition: background 0.15s ease;
}

.modal-content button:hover {
    background: var(--theme-action-hover);
}

.modal-content button.close-btn {
    background: #333333;
}

.modal-content button.close-btn:hover {
    background: #444444;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    color: var(--theme-white);
    outline: none;
    text-align: center;
    font-size: 15px;
}

.modal-content input:focus {
    border-color: var(--theme-accent-green);
}

.modal-content .modal-btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--theme-white);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.modal-content .modal-btn:hover {
    opacity: 0.85;
}

/* Bypass option inside QR code modal */
.qr-bypass {
    background-color: var(--theme-action-green) !important;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.qr-bypass:hover {
    background-color: var(--theme-action-hover) !important;
}

.qr-bypass h2 {
    font-size: 12px;
    color: var(--theme-white) !important;
    margin-bottom: 0px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Spinner and Animations */
#loadingSpinner::after,
#paymentSpinner::after,
#serviceSpinner::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--theme-white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Theme Button Variations */
.review { background: var(--theme-action-green); }
.review:hover { background: var(--theme-action-hover); }

.pay    { background: var(--theme-action-green); }
.pay:hover { background: var(--theme-action-hover); }

.call   { background: var(--theme-action-green); }
.text   { background: var(--theme-orange); }
.email  { background: var(--theme-sage); }

/* Stars animation */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-45deg);
}

.star {
  --star-color: var(--theme-accent-green);
  --star-tail-length: 6em;
  --star-tail-height: 2px;
  --star-width: calc(var(--star-tail-length) / 6);
  --fall-duration: 9s;
  --tail-fade-duration: var(--fall-duration);
  position: absolute;
  top: var(--top-offset);
  left: 0;
  width: var(--star-tail-length);
  height: var(--star-tail-height);
  color: var(--star-color);
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px currentColor);
  transform: translate3d(104em, 0, 0);
  animation: fall var(--fall-duration) var(--fall-delay) linear infinite, tail-fade var(--tail-fade-duration) var(--fall-delay) ease-out infinite;
}

@media screen and (max-width: 750px) {
  .star {
    animation: fall var(--fall-duration) var(--fall-delay) linear infinite;
  }
}

.star::before, .star::after {
  position: absolute;
  content: "";
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, currentColor, transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}

.star::before {
  transform: rotate(45deg);
}

.star::after {
  transform: rotate(-45deg);
}

@keyframes fall {
  to {
    transform: translate3d(-30em, 0, 0);
  }
}

@keyframes tail-fade {
  0%, 50% {
    width: var(--star-tail-length);
    opacity: 1;
  }
  70%, 80% {
    width: 0;
    opacity: 0.4;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.6;
  }
}

/* Custom scrollbar utility */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Wide modal class for better data presentation */
.wide-modal-content {
    width: 90% !important;
    max-width: 400px !important;
    padding: 24px 20px !important;
}

/* Service item card details */
.service-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}



.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.scheduled { 
    background: rgba(126, 200, 154, 0.15); 
    color: #7ec89a; 
    border: 1px solid rgba(126, 200, 154, 0.3); 
}

.status-badge.completed { 
    background: rgba(52, 168, 83, 0.15); 
    color: #8edc9f; 
    border: 1px solid rgba(52, 168, 83, 0.3); 
}

.status-badge.pending { 
    background: rgba(214, 141, 58, 0.15); 
    color: #f7b76d; 
    border: 1px solid rgba(214, 141, 58, 0.3); 
}
