:root{
    --teal:#2bbfb8;
    --teal-dark:#1f8f8a;
    --teal-dim:rgba(43,191,184,0.16);
    --ink:#0a0a0a;
    --ink-soft:#141414;
    --ink-card:#111413;
    --white:#f5f7f6;
    --line:rgba(245,247,246,0.12);
    --amber:#d98a3d;
    --red:#c04a4a;
  }

  *{box-sizing:border-box;margin:0;padding:0;}

  html{scroll-behavior:smooth;}

  body{
    background:var(--ink);
    color:var(--white);
    font-family:'Helvetica Neue', Arial, sans-serif;
    min-height:100vh;
  }

  .hidden{display:none !important;}

  a{color:inherit;}

  /* HEADER */
  header{
    position:sticky;
    top:20px;
    z-index:50;
    display:flex;
    align-items:center;
    justify-content:space-between;
    max-width:1120px;
    width:calc(100% - 40px);
    margin:20px auto 0;
    padding:16px 30px;
    border-radius:14px;
    background:rgba(16,16,16,0.72);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(245,247,246,0.10);
    box-shadow:
      0 20px 40px -18px rgba(0,0,0,0.65),
      0 0 0 1px rgba(43,191,184,0.04),
      inset 0 1px 0 rgba(255,255,255,0.04);
  }

  header::after{
    content:"";
    position:absolute;
    left:14%;
    right:14%;
    bottom:-1px;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(43,191,184,0.45) 50%, transparent);
  }

  .brand{
    display:flex;
    align-items:center;
    gap:13px;
    text-decoration:none;
    cursor:pointer;
  }

  .brand img{
    height:30px;
    width:auto;
    display:block;
  }

  .brand-divider{
    width:1px;
    height:22px;
    background:rgba(245,247,246,0.16);
  }

  .brand-name{
    font-family:'Georgia', 'Times New Roman', serif;
    font-size:19px;
    font-weight:300;
    letter-spacing:0.05em;
    color:rgba(245,247,246,0.92);
  }

  .brand-name b{
    color:var(--teal);
    font-weight:400;
  }

  nav{
    display:flex;
    align-items:center;
    gap:36px;
  }

  .nav-link{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:rgba(245,247,246,0.58);
    text-decoration:none;
    font-size:12.5px;
    letter-spacing:0.05em;
    padding-bottom:3px;
    background:none;
    border:none;
    cursor:pointer;
    font-family:inherit;
    transition:color 0.2s ease;
  }

  .nav-link::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:1px;
    background:var(--teal);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform 0.25s ease;
  }

  .nav-link:hover{color:var(--white);}
  .nav-link:hover::after{transform:scaleX(1);}

  .nav-admin{
    color:rgba(245,247,246,0.32);
    font-size:11.5px;
  }
  .nav-admin::after{background:rgba(245,247,246,0.4);}
  .nav-admin:hover{color:rgba(245,247,246,0.7);}

  .nav-divider{
    width:1px;
    height:14px;
    background:rgba(245,247,246,0.14);
  }

  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    font-size:12.5px;
    font-weight:600;
    letter-spacing:0.03em;
    padding:10px 22px;
    border-radius:3px;
    text-decoration:none;
    border:1px solid transparent;
    cursor:pointer;
    white-space:nowrap;
    font-family:inherit;
    transition:background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
  }

  .btn-primary{
    background:var(--teal);
    color:#062421;
  }
  .btn-primary:hover{background:var(--teal-dark);}

  .btn-outline{
    background:transparent;
    border-color:var(--line);
    color:var(--white);
    opacity:0.85;
  }
  .btn-outline:hover{opacity:1;border-color:var(--teal);}

  .btn-sm{
    padding:8px 14px;
    font-size:11.5px;
  }

  .btn:disabled{opacity:0.3;cursor:not-allowed;}

  /* HERO */
  .hero{
    min-height:calc(100vh - 100px);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:80px 24px 100px;
    position:relative;
    background:
      radial-gradient(ellipse 900px 500px at 50% 0%, rgba(43,191,184,0.10), transparent 65%),
      var(--ink);
  }

  .hero::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size:64px 64px;
    -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 35%, black 40%, transparent 85%);
    mask-image:radial-gradient(ellipse 70% 60% at 50% 35%, black 40%, transparent 85%);
    opacity:0.5;
    pointer-events:none;
  }

  .hero-logo{
    position:relative;
    width:150px;
    height:auto;
    margin-bottom:28px;
    filter:drop-shadow(0 12px 30px rgba(43,191,184,0.25));
  }

  .hero-bullets{
    position:relative;
    list-style:none;
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:10px 28px;
  }

  .hero-bullets li{
    display:flex;
    align-items:center;
    gap:8px;
    font-family:'Georgia', 'Times New Roman', serif;
    font-size:clamp(22px, 3.6vw, 38px);
    font-weight:400;
    line-height:1.05;
    color:var(--white);
    white-space:nowrap;
  }

  .hero-bullets li:nth-child(2){color:var(--teal);font-style:italic;}

  .hero-bullets img{
    width:0.34em;
    height:0.34em;
    flex-shrink:0;
    filter:drop-shadow(0 4px 10px rgba(43,191,184,0.35));
  }

  .hero p.tag{
    position:relative;
    margin-top:18px;
    font-size:16px;
    color:rgba(245,247,246,0.65);
    max-width:46ch;
    line-height:1.6;
  }

  .hero-ctas{
    position:relative;
    display:flex;
    gap:14px;
    margin-top:38px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .hero-ctas .btn{
    padding:13px 28px;
    font-size:14px;
  }

  /* RENTAL BANNER */
  .banner{
    border-top:1px solid var(--line);
    background:var(--ink-soft);
    padding:22px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
  }

  .banner-text{
    font-size:13px;
    color:rgba(245,247,246,0.75);
    line-height:1.6;
    max-width:70ch;
  }

  .banner-text b{
    color:var(--teal);
  }

  .banner .btn{
    flex-shrink:0;
    padding:10px 20px;
  }

  /* ===== BOOKING VIEW ===== */
  .book-wrap{
    max-width:1120px;
    margin:0 auto;
    padding:52px 32px 60px;
  }

  .book-title{
    font-family:'Georgia', 'Times New Roman', serif;
    font-weight:400;
    font-size:clamp(28px, 4vw, 38px);
    margin-bottom:22px;
  }

  .book-title .accent{
    color:var(--teal);
    font-style:italic;
  }

  .info-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    background:var(--teal-dim);
    border:1px solid rgba(43,191,184,0.35);
    border-radius:10px;
    padding:14px 20px;
    font-size:13px;
    color:rgba(245,247,246,0.85);
    margin-bottom:16px;
  }

  .info-banner b{color:var(--teal);}

  .info-panel{
    background:var(--ink-card);
    border:1px solid var(--line);
    border-radius:10px;
    padding:20px 24px;
    margin-bottom:22px;
    font-size:13px;
    line-height:1.7;
    color:rgba(245,247,246,0.75);
  }

  .info-panel h3{
    font-size:13px;
    letter-spacing:0.05em;
    color:var(--white);
    margin-bottom:10px;
  }

  .info-panel ul{
    padding-left:18px;
    display:flex;
    flex-direction:column;
    gap:6px;
  }

  .week-card{
    background:var(--ink-card);
    border:1px solid var(--line);
    border-radius:12px;
    padding:20px 22px;
    margin-bottom:22px;
  }

  .week-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:16px;
    flex-wrap:wrap;
    gap:10px;
  }

  .week-label{
    font-size:11.5px;
    letter-spacing:0.12em;
    color:rgba(245,247,246,0.5);
  }

  .week-nav{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:12px;
    letter-spacing:0.05em;
    color:rgba(245,247,246,0.6);
  }

  .week-nav-btn{
    width:26px;
    height:26px;
    border-radius:6px;
    border:1px solid var(--line);
    background:transparent;
    color:var(--white);
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    transition:border-color 0.2s ease, background 0.2s ease;
  }
  .week-nav-btn:hover{border-color:var(--teal);background:var(--teal-dim);}

  .day-pills{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap:8px;
  }

  .day-pill{
    background:rgba(245,247,246,0.03);
    border:1px solid var(--line);
    border-radius:8px;
    padding:12px 6px;
    text-align:center;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    gap:4px;
    font-family:inherit;
    color:var(--white);
    transition:border-color 0.2s ease, background 0.2s ease;
  }

  .day-pill:hover{border-color:rgba(43,191,184,0.5);}

  .day-pill.selected{
    background:var(--teal-dim);
    border-color:var(--teal);
  }

  .day-name{
    font-size:10.5px;
    letter-spacing:0.08em;
    color:rgba(245,247,246,0.45);
  }

  .day-num{
    font-size:17px;
    font-weight:600;
  }

  .day-avail{
    font-size:9.5px;
    letter-spacing:0.03em;
    color:rgba(245,247,246,0.4);
  }

  .day-pill.selected .day-avail{color:var(--teal);}

  .schedule-card{
    background:var(--ink-card);
    border:1px solid var(--line);
    border-radius:12px;
    padding:20px 22px 24px;
  }

  .schedule-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:16px;
  }

  .schedule-head-left{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
  }

  .selected-date-label{
    font-size:16px;
    font-weight:600;
  }

  .legend{
    display:flex;
    gap:16px;
    font-size:11px;
    color:rgba(245,247,246,0.5);
    flex-wrap:wrap;
  }

  .legend span{display:inline-flex;align-items:center;gap:6px;}

  .dot{
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;
  }
  .dot-avail{background:rgba(245,247,246,0.5);}
  .dot-booked{background:#9fdbd3;}

  .map-panel{
    background:rgba(245,247,246,0.02);
    border:1px solid var(--line);
    border-radius:10px;
    padding:18px;
    margin-bottom:18px;
  }

  .map-panel svg{width:100%;height:auto;display:block;}

  .table-scroll{
    overflow-x:auto;
    padding-bottom:4px;
  }

  table.schedule-table{
    width:100%;
    min-width:760px;
    border-collapse:separate;
    border-spacing:6px 7px;
  }

  table.schedule-table thead th{
    font-size:10px;
    letter-spacing:0.1em;
    color:rgba(245,247,246,0.4);
    text-align:center;
    font-weight:600;
    padding:0 4px 10px;
  }

  table.schedule-table thead th:first-child{text-align:left;padding-left:6px;}

  td.time-cell{
    font-size:11.5px;
    line-height:1.3;
    color:rgba(245,247,246,0.5);
    white-space:nowrap;
    padding:0 14px 0 6px;
  }

  td.cell{
    text-align:center;
    font-size:11.5px;
    line-height:1.3;
    font-weight:500;
    letter-spacing:0.01em;
    padding:9px 6px;
    border-radius:6px;
    border:1px solid transparent;
    cursor:pointer;
    user-select:none;
    transition:transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  }

  td.cell:active{transform:scale(0.96);}

  td.cell-available{
    background:rgba(245,247,246,0.03);
    border-color:rgba(245,247,246,0.08);
    color:rgba(245,247,246,0.7);
  }
  td.cell-available:hover{border-color:var(--teal);color:var(--white);}

  td.cell-booked{
    background:rgba(43,191,184,0.10);
    border-color:rgba(43,191,184,0.28);
    color:#9fdbd3;
    cursor:not-allowed;
  }

  td.cell-pending{
    background:rgba(217,138,61,0.05);
    border-color:rgba(217,138,61,0.18);
    color:rgba(217,138,61,0.55);
    cursor:not-allowed;
  }

  td.cell-selected{
    background:var(--teal);
    border-color:var(--teal);
    color:#062421;
    font-weight:600;
  }
  .cell-check{margin-right:3px;}

  /* Booking bar */
  .booking-bar{
    position:fixed;
    left:50%;
    bottom:22px;
    transform:translateX(-50%);
    z-index:60;
    display:flex;
    align-items:center;
    gap:18px;
    background:rgba(16,16,16,0.92);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(43,191,184,0.4);
    border-radius:12px;
    padding:14px 18px 14px 22px;
    box-shadow:0 20px 45px -15px rgba(0,0,0,0.7);
    max-width:calc(100% - 32px);
  }

  #booking-summary{
    font-size:13px;
    white-space:nowrap;
  }

  #booking-summary b{color:var(--teal);}

  .clear-cart{
    background:none;
    border:none;
    color:rgba(245,247,246,0.45);
    font-size:12px;
    cursor:pointer;
    text-decoration:underline;
    font-family:inherit;
  }
  .clear-cart:hover{color:var(--white);}

  /* Toast */
  .toast{
    position:fixed;
    left:50%;
    top:24px;
    transform:translateX(-50%) translateY(-12px);
    z-index:70;
    background:var(--teal);
    color:#062421;
    font-size:13px;
    font-weight:600;
    padding:12px 22px;
    border-radius:8px;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.25s ease, transform 0.25s ease;
    box-shadow:0 15px 35px -10px rgba(0,0,0,0.6);
    white-space:nowrap;
  }
  .toast.show{
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }

  /* ===== CHECKOUT VIEW ===== */
  .checkout-wrap{
    max-width:640px;
    margin:0 auto;
    padding:52px 24px 90px;
  }

  .co-change-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:none;
    border:none;
    color:rgba(245,247,246,0.5);
    font-size:12px;
    letter-spacing:0.03em;
    font-family:inherit;
    cursor:pointer;
    padding:0;
    margin-bottom:16px;
    transition:color 0.2s ease;
  }
  .co-change-btn:hover{color:var(--teal);}

  .checkout-title{
    font-family:'Georgia', 'Times New Roman', serif;
    font-weight:400;
    font-size:clamp(26px, 4vw, 34px);
    margin-bottom:4px;
  }

  .checkout-title .accent{color:var(--teal);font-style:italic;}

  .checkout-subtitle{
    font-size:13px;
    color:rgba(245,247,246,0.5);
    margin-bottom:26px;
  }

  .co-card{
    background:var(--ink-card);
    border:1px solid var(--line);
    border-radius:12px;
    padding:22px 24px;
    margin-bottom:18px;
  }

  .co-card-label{
    font-size:11px;
    letter-spacing:0.1em;
    color:rgba(245,247,246,0.45);
    margin-bottom:14px;
  }

  .co-summary-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    margin-bottom:4px;
  }

  .co-summary-count{
    font-size:17px;
    font-weight:600;
  }

  .co-summary-date{
    font-size:12px;
    color:rgba(245,247,246,0.45);
    margin-top:2px;
  }

  .co-total-label{
    font-size:10.5px;
    letter-spacing:0.1em;
    color:rgba(245,247,246,0.45);
    text-align:right;
  }

  .co-total-value{
    font-size:22px;
    font-weight:700;
    color:var(--teal);
    text-align:right;
  }

  .co-items{
    margin-top:14px;
    display:flex;
    flex-direction:column;
    gap:0;
  }

  .co-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 0;
    border-top:1px solid var(--line);
    font-size:12.5px;
  }

  .co-item:first-child{border-top:none;padding-top:0;}
  .co-item:last-child{padding-bottom:0;}

  .co-item-name{font-weight:600;}
  .co-item-time{color:rgba(245,247,246,0.4);font-weight:400;}
  .co-item-price{font-weight:600;color:var(--teal);white-space:nowrap;font-size:12.5px;}

  .co-item-remove{
    background:none;
    border:none;
    color:rgba(245,247,246,0.3);
    font-size:14px;
    cursor:pointer;
    line-height:1;
    padding:2px 2px;
  }
  .co-item-remove:hover{color:var(--red);}

  .co-conditions ul{
    padding-left:18px;
    display:flex;
    flex-direction:column;
    gap:7px;
    font-size:12.5px;
    line-height:1.6;
    color:rgba(245,247,246,0.7);
    margin-bottom:14px;
  }

  .co-conditions b{color:var(--white);}

  .co-note{
    background:rgba(217,138,61,0.1);
    border:1px solid rgba(217,138,61,0.35);
    border-radius:8px;
    padding:10px 14px;
    font-size:11.5px;
    line-height:1.6;
    color:#e3b380;
    margin-bottom:16px;
  }

  .co-checkbox-row{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:16px;
  }

  .co-checkbox-row input{
    margin-top:3px;
    accent-color:var(--teal);
    width:15px;
    height:15px;
    flex-shrink:0;
  }

  .co-checkbox-row label{
    font-size:12px;
    line-height:1.6;
    color:rgba(245,247,246,0.7);
  }

  .co-checkbox-row .link{
    color:var(--teal);
    text-decoration:underline;
    cursor:pointer;
  }

  .co-field{
    margin-bottom:14px;
  }

  .co-field:last-child{margin-bottom:0;}

  .co-field label{
    display:block;
    font-size:10.5px;
    letter-spacing:0.08em;
    color:rgba(245,247,246,0.5);
    margin-bottom:7px;
  }

  .co-field input{
    width:100%;
    background:rgba(245,247,246,0.03);
    border:1px solid var(--line);
    border-radius:8px;
    padding:12px 14px;
    font-size:13.5px;
    color:var(--white);
    font-family:inherit;
    transition:border-color 0.2s ease;
  }

  .co-field input::placeholder{color:rgba(245,247,246,0.3);}
  .co-field input:focus{outline:none;border-color:var(--teal);}
  .co-field input.field-error{border-color:var(--red);}
  .co-field .field-err-msg{font-size:11px;color:var(--red);margin-top:5px;display:none;}
  .co-field input.field-error + .field-err-msg{display:block;}

  .co-pay-tabs{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:8px;
    margin-bottom:20px;
  }

  .co-pay-tab{
    padding:12px 6px;
    text-align:center;
    font-size:12px;
    font-weight:600;
    border-radius:8px;
    border:1px solid var(--line);
    background:rgba(245,247,246,0.03);
    color:rgba(245,247,246,0.65);
    cursor:pointer;
    font-family:inherit;
    transition:border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .co-pay-tab.active{
    background:var(--teal);
    border-color:var(--teal);
    color:#062421;
  }

  .co-qr-box{
    background:var(--white);
    border-radius:10px;
    padding:22px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
  }

  .co-qr-label{
    font-size:13px;
    font-weight:700;
    letter-spacing:0.08em;
    color:#111;
  }

  .co-qr-amount{
    font-size:12px;
    color:#444;
    margin-top:-4px;
  }

  .co-qr-box svg{width:170px;height:170px;display:block;}

  .co-qr-hint{
    text-align:center;
    font-size:11.5px;
    color:rgba(245,247,246,0.45);
    margin-bottom:4px;
  }

  .co-upload-label{
    font-size:11.5px;
    letter-spacing:0.08em;
    color:var(--teal);
    margin-bottom:6px;
    display:flex;
    align-items:center;
    gap:6px;
  }

  .co-upload-hint{
    font-size:12px;
    color:rgba(245,247,246,0.5);
    line-height:1.6;
    margin-bottom:14px;
  }

  .co-dropzone{
    border:1.5px dashed var(--line);
    border-radius:10px;
    padding:26px 16px;
    text-align:center;
    cursor:pointer;
    transition:border-color 0.2s ease, background 0.2s ease;
  }

  .co-dropzone:hover{border-color:var(--teal);background:var(--teal-dim);}
  .co-dropzone.has-file{border-style:solid;border-color:var(--teal);background:var(--teal-dim);}

  .co-dropzone-icon{font-size:20px;margin-bottom:8px;}
  .co-dropzone-text{font-size:13px;font-weight:600;margin-bottom:4px;}
  .co-dropzone-sub{font-size:11px;color:rgba(245,247,246,0.4);}

  .co-file-preview{
    display:flex;
    align-items:center;
    gap:10px;
    text-align:left;
  }

  .co-file-thumb{
    width:44px;
    height:44px;
    border-radius:6px;
    object-fit:cover;
    background:rgba(245,247,246,0.08);
    flex-shrink:0;
  }

  .co-file-name{font-size:12.5px;font-weight:600;word-break:break-all;}
  .co-file-size{font-size:11px;color:rgba(245,247,246,0.45);}
  .co-file-remove{
    font-size:11px;
    color:var(--red);
    text-decoration:underline;
    cursor:pointer;
    margin-top:4px;
    background:none;
    border:none;
    font-family:inherit;
  }

  .co-submit-btn{
    width:100%;
    padding:15px;
    font-size:13.5px;
    margin-top:20px;
  }

  .co-submit-note{
    text-align:center;
    font-size:11px;
    color:rgba(245,247,246,0.35);
    margin-top:10px;
    line-height:1.5;
  }

  /* success state */
  .co-success{
    text-align:center;
    padding:20px 10px 10px;
  }

  .co-success-icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:var(--teal-dim);
    border:1px solid var(--teal);
    color:var(--teal);
    font-size:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 18px;
  }

  .co-success h2{
    font-family:'Georgia', 'Times New Roman', serif;
    font-weight:400;
    font-size:24px;
    margin-bottom:10px;
  }

  .co-success p{
    font-size:13.5px;
    color:rgba(245,247,246,0.6);
    line-height:1.7;
    max-width:44ch;
    margin:0 auto 24px;
  }

  .co-success-actions{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
  }

  /* Responsive */
  @media (max-width: 720px){
    header{padding:12px 18px;top:12px;width:calc(100% - 24px);border-radius:12px;}
    .brand-name{display:none;}
    .nav-link:not(.nav-admin):not(.back-link){display:none;}
    nav{gap:8px;}
    .hero{padding:60px 20px 70px;}
    .banner{flex-direction:column;align-items:flex-start;padding:20px;}
    .book-wrap{padding:32px 18px 40px;}
    .day-pills{grid-template-columns:repeat(4, 1fr);}
    .schedule-head{flex-direction:column;align-items:flex-start;}
    .checkout-wrap{padding:32px 16px 70px;}
    .co-pay-tabs{grid-template-columns:repeat(2, 1fr);}
  }

  :focus-visible{
    outline:2px solid var(--teal);
    outline-offset:2px;
  }

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{transition:none !important;}
  }

/* ===== ADMIN DASHBOARD ===== */
.admin-wrap{
  max-width:1000px;
  margin:0 auto;
  padding:52px 32px 80px;
}

.admin-title{
  font-family:'Georgia', 'Times New Roman', serif;
  font-weight:400;
  font-size:clamp(26px, 4vw, 34px);
  margin-bottom:4px;
}

.admin-title .accent{color:var(--teal);font-style:italic;}

.admin-subtitle{
  font-size:13px;
  color:rgba(245,247,246,0.5);
  margin-bottom:28px;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-bottom:28px;
}

.stat-card{
  background:var(--ink-card);
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px 18px;
}

.stat-label{
  font-size:10.5px;
  letter-spacing:0.08em;
  color:rgba(245,247,246,0.45);
  margin-bottom:8px;
}

.stat-value{
  font-size:22px;
  font-weight:700;
  color:var(--white);
}

.stat-value.teal{color:var(--teal);}
.stat-value.amber{color:#e3b380;}
.stat-value.red{color:#c98080;}

.admin-section{
  background:var(--ink-card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px 24px;
  margin-bottom:20px;
}

.admin-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

.admin-section-title{
  font-size:13px;
  letter-spacing:0.06em;
  color:var(--white);
  display:flex;
  align-items:center;
  gap:8px;
}

.admin-badge{
  font-size:10.5px;
  font-weight:700;
  padding:2px 8px;
  border-radius:20px;
  background:var(--teal-dim);
  color:var(--teal);
}

.admin-empty{
  font-size:12.5px;
  color:rgba(245,247,246,0.35);
  padding:10px 0;
}

.admin-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 0;
  border-top:1px solid var(--line);
  font-size:13px;
  flex-wrap:wrap;
}

.admin-row:first-child{border-top:none;}

.admin-row-info{display:flex;flex-direction:column;gap:2px;}
.admin-row-title{font-weight:600;}
.admin-row-sub{font-size:11.5px;color:rgba(245,247,246,0.45);}

.admin-row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.admin-row-price{
  font-weight:600;
  color:var(--teal);
  font-size:12.5px;
  margin-right:4px;
}

.admin-btn{
  font-size:11.5px;
  font-weight:600;
  padding:7px 14px;
  border-radius:6px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--white);
  cursor:pointer;
  font-family:inherit;
  transition:border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.admin-btn:hover{border-color:var(--teal);}

.admin-btn-confirm{border-color:rgba(43,191,184,0.5);color:var(--teal);}
.admin-btn-confirm:hover{background:var(--teal-dim);}

.admin-btn-reject, .admin-btn-cancel{border-color:rgba(192,74,74,0.4);color:#c98080;}
.admin-btn-reject:hover, .admin-btn-cancel:hover{background:rgba(192,74,74,0.1);}

.admin-tool-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-bottom:16px;
}

.admin-field label{
  display:block;
  font-size:10.5px;
  letter-spacing:0.08em;
  color:rgba(245,247,246,0.5);
  margin-bottom:7px;
}

.admin-field select,
.admin-field input{
  width:100%;
  background:rgba(245,247,246,0.03);
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  font-size:13px;
  color:var(--white);
  font-family:inherit;
}

.admin-tool-status{
  font-size:12.5px;
  color:rgba(245,247,246,0.55);
  margin-bottom:14px;
}

.admin-tool-status b{color:var(--white);}

.admin-tool-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.admin-danger-zone{
  border-color:rgba(192,74,74,0.3);
}

.admin-danger-text{
  font-size:12.5px;
  color:rgba(245,247,246,0.5);
  margin-bottom:14px;
  line-height:1.6;
}

@media (max-width: 720px){
  .admin-wrap{padding:32px 16px 60px;}
  .stat-grid{grid-template-columns:repeat(2, 1fr);}
  .admin-tool-grid{grid-template-columns:1fr;}
  .admin-row{flex-direction:column;align-items:flex-start;}
  .admin-row-actions{width:100%;}
}

/* ===== ADMIN: quicknav, search, groups, analytics, activity, modal ===== */

.admin-quicknav{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:24px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}

.admin-quicknav a{
  font-size:11.5px;
  letter-spacing:0.04em;
  color:rgba(245,247,246,0.5);
  text-decoration:none;
  padding:6px 12px;
  border-radius:20px;
  border:1px solid var(--line);
  transition:border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.admin-quicknav a:hover{color:var(--white);border-color:var(--teal);background:var(--teal-dim);}

.admin-search-row{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.admin-search-input{
  flex:1;
  background:var(--ink-card);
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 14px;
  font-size:13px;
  color:var(--white);
  font-family:inherit;
}
.admin-search-input::placeholder{color:rgba(245,247,246,0.35);}
.admin-search-input:focus{outline:none;border-color:var(--teal);}

/* grouped booking row (pending / confirmed) */
.group-row{
  border-top:1px solid var(--line);
  padding:14px 0;
}
.group-row:first-child{border-top:none;padding-top:0;}

.group-row-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.group-customer{display:flex;flex-direction:column;gap:2px;}
.group-name{font-weight:600;font-size:13.5px;}
.group-contact{font-size:11.5px;color:rgba(245,247,246,0.45);}

.group-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.group-total{font-weight:700;color:var(--teal);font-size:14px;}

.group-pay-pill{
  font-size:10.5px;
  font-weight:700;
  padding:3px 9px;
  border-radius:20px;
  background:rgba(245,247,246,0.06);
  color:rgba(245,247,246,0.6);
  letter-spacing:0.03em;
}

.group-slots{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.group-slot-chip{
  font-size:10.5px;
  padding:4px 9px;
  border-radius:6px;
  background:rgba(245,247,246,0.04);
  border:1px solid var(--line);
  color:rgba(245,247,246,0.6);
  white-space:nowrap;
}

.group-actions{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.group-note-wrap{margin-top:10px;}

.group-note-input{
  width:100%;
  background:rgba(245,247,246,0.03);
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 12px;
  font-size:12px;
  color:var(--white);
  font-family:inherit;
  resize:vertical;
  min-height:36px;
}
.group-note-input::placeholder{color:rgba(245,247,246,0.3);}
.group-note-input:focus{outline:none;border-color:var(--teal);}

.group-note-save{
  margin-top:6px;
}

/* receipt modal */
.admin-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(4px);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.admin-modal{
  background:var(--ink-card);
  border:1px solid var(--line);
  border-radius:12px;
  max-width:440px;
  width:100%;
  max-height:80vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.admin-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  font-weight:600;
}

.admin-modal-close{
  background:none;
  border:none;
  color:rgba(245,247,246,0.5);
  font-size:20px;
  cursor:pointer;
  line-height:1;
}
.admin-modal-close:hover{color:var(--white);}

.admin-modal-body{
  padding:18px;
  overflow-y:auto;
}

.admin-modal-body img{
  width:100%;
  border-radius:8px;
  display:block;
}

.admin-modal-file{
  font-size:13px;
  color:rgba(245,247,246,0.7);
  text-align:center;
  padding:30px 10px;
}

/* analytics */
.analytics-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:24px;
}

.analytics-label{
  font-size:10.5px;
  letter-spacing:0.08em;
  color:rgba(245,247,246,0.45);
  margin-bottom:12px;
}

.revenue-bar-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  font-size:11px;
}

.revenue-bar-day{
  width:34px;
  flex-shrink:0;
  color:rgba(245,247,246,0.5);
}

.revenue-bar-track{
  flex:1;
  height:14px;
  background:rgba(245,247,246,0.04);
  border-radius:4px;
  overflow:hidden;
}

.revenue-bar-fill{
  height:100%;
  background:linear-gradient(90deg, var(--teal-dark), var(--teal));
  border-radius:4px;
}

.revenue-bar-value{
  width:56px;
  flex-shrink:0;
  text-align:right;
  color:rgba(245,247,246,0.7);
  font-weight:600;
}

.util-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  font-size:11px;
}

.util-court{width:52px;flex-shrink:0;color:rgba(245,247,246,0.5);}

.util-track{
  flex:1;
  height:14px;
  background:rgba(245,247,246,0.04);
  border-radius:4px;
  overflow:hidden;
}

.util-fill{
  height:100%;
  background:linear-gradient(90deg, rgba(217,138,61,0.7), rgba(217,138,61,1));
  border-radius:4px;
}

.util-value{
  width:26px;
  flex-shrink:0;
  text-align:right;
  color:rgba(245,247,246,0.7);
  font-weight:600;
}

/* activity feed */
.activity-list{
  display:flex;
  flex-direction:column;
  max-height:280px;
  overflow-y:auto;
}

.activity-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:9px 0;
  border-top:1px solid var(--line);
  font-size:12px;
}
.activity-row:first-child{border-top:none;padding-top:0;}

.activity-time{
  flex-shrink:0;
  color:rgba(245,247,246,0.35);
  font-size:10.5px;
  white-space:nowrap;
}

.activity-msg{color:rgba(245,247,246,0.75);}

@media (max-width: 720px){
  .analytics-grid{grid-template-columns:1fr;gap:20px;}
  .admin-search-row{flex-direction:column;}
}


/* authentication / password reset */
.auth-wrap{max-width:620px;margin-left:auto;margin-right:auto;}
.auth-card{max-width:520px;margin:0 auto;}
.auth-help{color:rgba(245,247,246,.68);line-height:1.6;margin-top:0;}
.auth-msg{min-height:22px;color:rgba(245,247,246,.8);line-height:1.5;}
.auth-forgot,.auth-back{margin:14px 0 0;}
.auth-forgot a,.auth-back a{color:var(--teal);text-decoration:none;font-weight:700;}
.auth-forgot a:hover,.auth-back a:hover{text-decoration:underline;}
.co-field small{display:block;margin-top:6px;color:rgba(245,247,246,.45);font-size:11px;}
.dev-reset-box{margin-top:18px;padding:16px;border:1px solid rgba(217,138,61,.35);border-radius:10px;background:rgba(217,138,61,.07);}
.dev-reset-box p{color:rgba(245,247,246,.62);font-size:12px;line-height:1.5;}


/* ===== DinkLounge production booking refinements ===== */
.co-gcash-qr{width:220px;height:220px;object-fit:contain;display:block;border-radius:8px;background:#fff;border:1px solid #e5e5e5;}
.map-title{text-align:center;font-size:11px;font-weight:700;letter-spacing:.12em;color:rgba(245,247,246,.6);margin:0 0 12px;}
.admin-alert-sound{appearance:none;border:1px solid var(--line);background:transparent;color:var(--teal);border-radius:999px;padding:7px 12px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;}
.admin-alert-sound:hover{background:var(--teal-dim);border-color:var(--teal);}
.admin-booking-alert{max-width:480px;}
.admin-booking-alert .admin-modal-body{text-align:center;padding:28px;}
.booking-alert-icon{font-size:42px;margin-bottom:8px;}
.admin-booking-alert h2{margin:0 0 10px;color:var(--white);font-size:22px;}
.admin-booking-alert p{color:rgba(245,247,246,.72);line-height:1.6;margin:0 0 20px;}
@media(max-width:700px){.co-gcash-qr{width:190px;height:190px}.admin-alert-sound{width:100%;}}


/* Compact court map */
.map-panel svg{max-width:620px;margin:0 auto;}
@media(max-width:700px){.map-panel{padding:10px}.map-panel svg{max-width:100%;}}

/* Admin daily booking viewer */
.admin-view-day-btn{white-space:nowrap;}
.admin-day-bookings-modal{max-width:760px;}
.day-bookings-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px;}
.day-bookings-toolbar label{font-size:12px;font-weight:700;letter-spacing:.06em;color:rgba(245,247,246,.65);}
.admin-date-input{background:var(--ink-card);border:1px solid var(--line);border-radius:7px;color:var(--white);padding:9px 11px;font:inherit;color-scheme:dark;}
.day-bookings-summary{font-size:13px;color:rgba(245,247,246,.58);margin-bottom:12px;}
.day-booking-row{display:grid;grid-template-columns:minmax(180px,1.2fr) 1.5fr auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid var(--line);}
.day-booking-row strong,.day-booking-row span{display:block;}
.day-booking-row>div:first-child span{font-size:11px;color:rgba(245,247,246,.5);margin-top:4px;}
.day-booking-slots{display:flex;gap:6px;flex-wrap:wrap;}
.day-booking-slots span{font-size:11px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;color:rgba(245,247,246,.75);}
.day-booking-meta{text-align:right;min-width:86px;}
.day-status{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:5px;}
.day-status.confirmed{color:var(--teal);}.day-status.pending{color:#e6b85c;}
@media(max-width:650px){.day-booking-row{grid-template-columns:1fr}.day-booking-meta{text-align:left}.admin-view-day-btn{width:100%;}}

/* Admin cancellation password protection */
.admin-cancel-modal{max-width:480px}
.admin-password-label{display:block;font-weight:700;margin:18px 0 7px}
.admin-password-input{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.06);color:inherit;font:inherit;outline:none}
.admin-password-input:focus{border-color:currentColor}
.admin-password-error{margin-top:9px;padding:9px 11px;border-radius:8px;background:rgba(180,30,30,.12);font-size:.9rem}
.admin-cancel-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}


/* Small court map + simple site footer */
.map-panel{max-width:500px;margin:0 auto 18px;padding:12px;}
.map-panel svg{width:100%;max-width:440px;height:auto;margin:0 auto;}
.site-footer{border-top:1px solid var(--line);background:#090a0a;padding:22px 24px;text-align:center;font-size:12px;color:rgba(245,247,246,.72);}
@media(max-width:700px){.map-panel{max-width:92%;padding:9px}.map-panel svg{max-width:360px}.site-footer{padding:20px 16px;font-size:11px}}

/* Final compact court map + minimal footer */
.map-panel{
  width:min(100%, 430px);
  max-width:430px;
  margin:12px auto 18px;
  padding:10px 12px 12px;
}
.map-panel .map-title{font-size:10px;margin-bottom:8px;}
.map-panel svg{
  display:block;
  width:100%;
  max-width:380px;
  height:auto;
  margin:0 auto;
}
.site-footer{
  width:100%;
  min-height:58px;
  box-sizing:border-box;
  margin:0;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  border-top:1px solid rgba(255,255,255,.08);
  color:#ccc;
  text-align:center;
  font-size:13px;
  font-weight:400;
  line-height:1.4;
}
@media(max-width:700px){
  .map-panel{width:min(94%, 350px);max-width:350px;padding:8px 10px 10px;}
  .map-panel svg{max-width:310px;}
  .site-footer{min-height:54px;padding:10px 14px;font-size:11px;}
}


/* ===== FINAL COMPACT COURT MAP OVERRIDE ===== */
#map-panel.compact-court-map {
  width: 100% !important;
  max-width: 520px !important;
  box-sizing: border-box !important;
  margin: 12px auto 18px !important;
  padding: 12px 14px 14px !important;
}
#map-panel.compact-court-map .map-title {
  margin: 0 0 8px !important;
  font-size: 9px !important;
  letter-spacing: .11em !important;
}
#map-panel.compact-court-map svg.compact-court-svg {
  display: block !important;
  width: 100% !important;
  max-width: 450px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* Minimal centered DinkLounge footer */
main > footer.site-footer {
  width: 100% !important;
  min-height: 62px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: #0d0e0e !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(245,247,246,.72) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}
@media (max-width: 700px) {
  #map-panel.compact-court-map { max-width: 360px !important; padding: 9px 10px 10px !important; }
  #map-panel.compact-court-map svg.compact-court-svg { max-width: 320px !important; }
  main > footer.site-footer { min-height: 56px !important; padding: 10px 14px !important; font-size: 11px !important; }
}

/* Checkout payment breakdown - Xendit 2.3% transaction fee */
.co-summary-line{display:flex;justify-content:space-between;gap:20px;margin-top:7px;font-size:13px;color:var(--muted,#9aa7a3)}
.co-summary-line strong{color:var(--text,#f5f7f6);font-weight:600}
.co-grand-label{margin-top:12px}

/* Admin confirmed-booking schedule */
.admin-confirmed-head{gap:16px;align-items:center;flex-wrap:wrap}
.admin-confirmed-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-confirmed-tools label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.admin-date-input{background:#0f1312;color:#f5f7f6;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color-scheme:dark}
.admin-confirmed-help{font-size:12px;color:var(--muted);margin:0 0 14px}
.admin-confirmed-schedule{border:1px solid var(--line);border-radius:10px;overflow:auto}
.admin-confirmed-schedule .schedule-table{min-width:760px;margin:0}
.admin-confirmed-schedule .cell{height:58px;min-width:96px}
.admin-booked-cell{cursor:pointer!important;padding:7px!important}
.admin-booked-cell:hover{filter:brightness(1.18)}
.admin-booked-label{display:block;font-weight:700}
.admin-booked-cell small{display:block;margin-top:3px;max-width:105px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.78;font-size:10px}
.admin-empty-cell{color:rgba(245,247,246,.2)!important;background:rgba(255,255,255,.01)!important;cursor:default!important}
.booking-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.booking-detail-grid>div{border:1px solid var(--line);border-radius:9px;padding:11px;background:rgba(255,255,255,.02)}
.booking-detail-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.booking-detail-grid strong{font-size:13px;word-break:break-word}
.detail-actions{margin-top:16px}
@media(max-width:650px){.booking-detail-grid{grid-template-columns:1fr}.admin-confirmed-tools{width:100%}.admin-date-input{flex:1}}

/* Admin-only court management — does not alter the customer booking layout */
.admin-managed-available{cursor:pointer!important;background:rgba(34,197,190,.05)!important;color:#b9d9d5!important}
.admin-managed-available:hover{background:rgba(34,197,190,.13)!important}
.admin-managed-blocked{cursor:pointer!important;background:rgba(255,173,80,.10)!important;color:#ffb15a!important}
.admin-managed-booked{cursor:default!important;background:rgba(34,197,190,.14)!important;color:#d9fffb!important}
.admin-managed-available small,.admin-managed-blocked small,.admin-managed-booked small{display:block;margin-top:4px;font-size:10px;opacity:.72}
.admin-manual-form{display:grid;gap:11px;margin-top:14px}
.admin-manual-form label{display:grid;gap:5px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.admin-manual-form input{background:#0f1312;color:#f5f7f6;border:1px solid var(--line);border-radius:8px;padding:10px 11px;text-transform:none;letter-spacing:normal}
.admin-manual-price{border:1px solid var(--line);border-radius:8px;padding:10px 11px;color:#cfe9e5;background:rgba(34,197,190,.04);font-size:12px}

/* Booking detail modal: full customer + grouped schedule */
.booking-detail-schedule{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.booking-detail-slot{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.booking-detail-slot span{color:var(--muted);text-align:right}
.admin-managed-booked{cursor:pointer}
.admin-managed-booked:hover{filter:brightness(1.08)}
@media(max-width:650px){.booking-detail-slot{flex-direction:column;gap:4px}.booking-detail-slot span{text-align:left}}


/* Customer booking grid: admin-blocked slots are distinct from customer bookings. */
td.cell-blocked{
  background:rgba(139,72,72,0.18);
  border-color:rgba(168,88,88,0.38);
  color:#c98f8f;
  cursor:not-allowed;
}
td.cell-blocked:hover{
  background:rgba(139,72,72,0.18);
  border-color:rgba(168,88,88,0.38);
  color:#c98f8f;
}

/* FINAL customer-facing BLOCKED state: orange, matching Admin Court Management. */
td.cell.cell-blocked{
  background:rgba(255,173,80,.10) !important;
  border-color:rgba(255,173,80,.30) !important;
  color:#ffb15a !important;
  cursor:not-allowed !important;
  font-weight:700 !important;
}
td.cell.cell-blocked:hover,
td.cell.cell-blocked:active{
  background:rgba(255,173,80,.10) !important;
  border-color:rgba(255,173,80,.30) !important;
  color:#ffb15a !important;
  transform:none !important;
}


/* ================= SIMPLE CONTACT POPUP ================= */
.contact-nav-btn{order:-1}
.contact-pop-overlay{
  position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)
}
.contact-pop-card{
  position:relative;width:min(440px,100%);padding:34px;border-radius:15px;
  background:#111413;border:1px solid rgba(245,247,246,.13);
  box-shadow:0 28px 80px rgba(0,0,0,.55);text-align:center
}
.contact-pop-close{
  position:absolute;right:14px;top:10px;border:0;background:transparent;color:rgba(245,247,246,.55);
  font-size:27px;line-height:1;cursor:pointer
}
.contact-pop-close:hover{color:var(--white)}
.contact-pop-kicker{display:block;color:var(--teal);font-size:10px;font-weight:700;letter-spacing:.16em;margin-bottom:12px}
.contact-pop-card h2{font-family:Georgia,'Times New Roman',serif;font-size:27px;font-weight:300;margin:0 24px 22px}
.contact-pop-card p{font-size:12px;color:rgba(245,247,246,.5);margin:14px 0 6px}
.contact-pop-detail{display:inline-block;color:var(--white);font-size:16px;font-weight:600;text-decoration:none}
.contact-pop-detail:hover{color:var(--teal)}
@media(max-width:700px){.contact-nav-btn{font-size:11px}.contact-pop-card{padding:30px 22px}}

/* Book page header contact + blocked legend */
.contact-header-link{font:inherit}
.dot-blocked{background:#ff9f2f !important;box-shadow:0 0 0 1px rgba(255,159,47,.25)}
.contact-pop-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.contact-pop-card{position:relative;width:min(440px,100%);padding:34px;border-radius:15px;background:#111413;border:1px solid rgba(245,247,246,.13);box-shadow:0 28px 80px rgba(0,0,0,.55);text-align:center}
.contact-pop-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:rgba(245,247,246,.55);font-size:27px;cursor:pointer}
.contact-pop-kicker{display:block;color:var(--teal);font-size:10px;font-weight:700;letter-spacing:.16em;margin-bottom:12px}
.contact-pop-card h2{font-family:Georgia,'Times New Roman',serif;font-size:27px;font-weight:300;margin:0 24px 22px}
.contact-pop-card p{font-size:12px;color:rgba(245,247,246,.5);margin:14px 0 6px}
.contact-pop-detail{display:inline-block;color:var(--white);font-size:16px;font-weight:600;text-decoration:none}
.contact-pop-detail:hover{color:var(--teal)}

/* Period filters, named blocks, and live 10-minute holds */
.admin-period-row{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:rgba(245,247,246,.55);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.admin-period-btn{border:1px solid rgba(245,247,246,.13);background:#111413;color:rgba(245,247,246,.7);border-radius:7px;padding:7px 12px;cursor:pointer;font:inherit}
.admin-period-btn.active{border-color:rgba(43,191,184,.6);background:rgba(43,191,184,.12);color:#55d5cf}
.dot-hold{background:#d7a34b !important}
td.cell-hold{background:rgba(215,163,75,.12)!important;border-color:rgba(215,163,75,.35)!important;color:#e4b65e!important;cursor:not-allowed!important;font-weight:700}

/* SDP-derived DinkLounge map popup */
.sdp-map-overlay{position:fixed!important;inset:0!important;z-index:9998!important;background:rgba(0,0,0,.78)!important;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(6px)}
.sdp-map-overlay.hidden{display:none!important}
.sdp-map-modal{width:min(720px,94vw);max-height:92vh;overflow:auto;background:#0b0d0c;border:1px solid #87928d;border-radius:10px;padding:18px 20px 22px;box-shadow:0 24px 80px rgba(0,0,0,.6)}
.sdp-map-head{display:flex;justify-content:space-between;align-items:center;font-size:18px;color:#f5f7f6}.sdp-eye{color:#2bbfb8;margin-right:8px}.sdp-map-close{background:transparent;border:1px solid #82907f;border-radius:6px;color:#dce5e0;font-size:23px;line-height:28px;width:31px;height:31px;cursor:pointer}.sdp-map-sub{text-align:center;color:#2bbfb8;font-size:11px;letter-spacing:.08em;margin:8px 0 10px}.sdp-court-svg{display:block;width:100%;height:auto;max-height:68vh;margin:auto}.sdp-map-bottom-close{display:block;margin:14px auto 0;min-width:110px}.admin-help{display:block;color:rgba(245,247,246,.5);margin-top:-4px;margin-bottom:10px}

/* Uploaded DinkLounge court plan in View Map */
.photo-map-modal{width:min(760px,96vw)!important;max-height:94vh!important;overflow:auto!important}
.dinklounge-map-image-wrap{width:100%;display:flex;justify-content:center;align-items:flex-start;overflow:auto;border-radius:8px;background:#f2f1eb;padding:8px}
.dinklounge-map-image{display:block;width:auto;max-width:100%;height:auto;max-height:72vh;object-fit:contain;border-radius:4px}
@media(max-width:600px){
 .sdp-map-overlay{padding:10px!important;align-items:flex-start!important;overflow:auto}
 .photo-map-modal{width:100%!important;max-height:none!important;padding:14px 12px 16px!important;margin:8px 0}
 .sdp-map-head{font-size:15px!important}
 .dinklounge-map-image-wrap{padding:4px}
 .dinklounge-map-image{width:100%;max-height:none}
 .sdp-map-bottom-close{min-height:44px;min-width:120px}
}


/* =========================================================
   DINKLOUNGE RESPONSIVE PASS
   Desktop design is preserved; these rules target tablets/phones.
   ========================================================= */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video{max-width:100%;height:auto}
button,a,input,select,textarea{max-width:100%}
.admin-modal,.contact-pop-card,.sdp-map-modal{max-width:calc(100vw - 28px)}
.dinklounge-map-image{display:block;width:100%;height:auto;object-fit:contain}
.dinklounge-map-image-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch}
.sdp-map-overlay{padding:18px}
.sdp-map-modal{max-height:calc(100vh - 36px);overflow:auto;-webkit-overflow-scrolling:touch}
.sdp-map-head{padding-right:0}

/* Tablet */
@media (max-width:1099px){
  header{width:calc(100% - 32px);margin-left:auto;margin-right:auto;padding-left:18px;padding-right:18px}
  header nav{min-width:0;flex-wrap:wrap;justify-content:flex-end}
  main,.container,.page-wrap,.admin-wrap,.admin-main{max-width:100%;padding-left:18px;padding-right:18px}
  .hero,.booking-page,.checkout-page{max-width:100%}
  .stats-grid,.admin-stats,.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-grid,.dashboard-grid,.checkout-grid{grid-template-columns:1fr}
  .booking-table-wrap,.schedule-wrap,.table-wrap,.admin-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
  .booking-table,.schedule-table{min-width:820px}
  .week-strip,.week-days{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .week-day,.day-card{flex:0 0 118px}
  .sdp-map-modal.photo-map-modal{width:min(760px,calc(100vw - 36px))}
}

/* Phones */
@media (max-width:700px){
  body{font-size:14px}
  header{width:calc(100% - 20px);margin:10px auto;padding:12px 14px;min-height:auto;gap:12px;align-items:center}
  .brand{min-width:0}
  .brand img{max-height:32px;width:auto}
  .brand-name{font-size:18px;white-space:nowrap}
  header nav{gap:8px;margin-left:auto}
  header .nav-divider{display:none}
  header .nav-link,header .btn,.contact-header-link{min-height:42px;padding:9px 10px;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
  main,.container,.page-wrap,.admin-wrap,.admin-main{padding-left:12px;padding-right:12px}
  h1{font-size:clamp(34px,11vw,48px);line-height:1.05}
  h2{font-size:clamp(22px,7vw,30px)}
  .hero{padding-top:34px;padding-bottom:34px}
  .btn{min-height:44px}
  input,select,textarea{font-size:16px!important;min-height:44px}
  textarea{min-height:110px}

  /* Customer booking */
  .booking-notice,.rental-notice{padding:14px;gap:10px;flex-wrap:wrap}
  .booking-notice .btn,.rental-notice .btn{width:100%}
  .week-header,.availability-head,.schedule-head{gap:10px;flex-wrap:wrap}
  .week-strip,.week-days{display:flex!important;gap:8px;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}
  .week-day,.day-card{min-width:104px;flex:0 0 104px;scroll-snap-align:start}
  .booking-table-wrap,.schedule-wrap,.court-grid-wrap{margin-left:0;margin-right:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .booking-table,.schedule-table{min-width:760px}
  .booking-table th:first-child,.booking-table td:first-child,.schedule-table th:first-child,.schedule-table td:first-child{
    position:sticky;left:0;z-index:3;background:#111413
  }
  .legend,.availability-legend{display:flex;gap:10px;flex-wrap:wrap;font-size:11px}
  .selection-summary,.booking-summary{padding:14px}
  .checkout-actions,.booking-actions{display:flex;flex-direction:column;gap:10px}
  .checkout-actions .btn,.booking-actions .btn{width:100%}

  /* Admin */
  .admin-header,.admin-toolbar,.admin-section-head{flex-wrap:wrap;gap:10px}
  .stats-grid,.admin-stats,.dashboard-stats{grid-template-columns:1fr!important;gap:10px}
  .stat-card,.admin-card{min-width:0}
  .period-tabs,.report-tabs,.filter-buttons{display:flex;overflow-x:auto;max-width:100%;gap:7px;padding-bottom:4px}
  .period-tabs button,.report-tabs button,.filter-buttons button{flex:0 0 auto;min-height:42px}
  .admin-table-wrap,.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .admin-table{min-width:760px}
  .admin-modal{width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px);overflow:auto;padding:16px}
  .admin-modal-actions{display:flex;flex-wrap:wrap;gap:8px}
  .admin-modal-actions .btn{flex:1 1 130px}
  .admin-slot-grid,.form-grid,.two-col,.three-col{grid-template-columns:1fr!important}

  /* Map */
  .sdp-map-overlay{padding:10px}
  .sdp-map-modal.photo-map-modal{width:calc(100vw - 20px);max-width:none;max-height:calc(100vh - 20px);border-radius:12px}
  .sdp-map-head{padding:15px 15px 8px}
  .sdp-map-sub{padding-left:15px;padding-right:15px}
  .dinklounge-map-image-wrap{padding:10px;max-height:none}
  .dinklounge-map-image{width:100%;height:auto;max-height:none}
  .sdp-map-bottom-close{width:calc(100% - 28px);margin:10px 14px 16px;min-height:46px}

  /* Contact popup */
  .contact-pop-overlay{padding:12px}
  .contact-pop-card{width:calc(100vw - 24px);padding:28px 18px}
  .contact-pop-detail{font-size:15px;overflow-wrap:anywhere}
}

/* Very narrow phones */
@media (max-width:420px){
  header{align-items:flex-start}
  header nav{justify-content:flex-end}
  .brand-divider{display:none}
  .brand-name{font-size:16px}
  header .nav-link,header .btn,.contact-header-link{font-size:11px;padding:8px}
  .booking-table,.schedule-table{min-width:700px}
}

/* Map location details */
.sdp-map-location{
  margin:14px 18px 6px;
  padding:15px 16px;
  border:1px solid rgba(245,247,246,.10);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  text-align:left;
}
.sdp-map-location-label{
  display:block;
  margin-bottom:5px;
  color:var(--teal);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
}
.sdp-map-location p{
  margin:0;
  color:rgba(245,247,246,.82);
  font-size:13px;
  line-height:1.55;
}
@media(max-width:700px){
  .sdp-map-location{margin:10px 14px 4px;padding:13px 14px}
  .sdp-map-location p{font-size:12px}
}

/* Force Map View address visible */
#map-panel .sdp-map-location{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:5 !important;
  width:auto !important;
  height:auto !important;
  margin:14px 12px 4px !important;
  padding:14px 15px !important;
  background:#161b19 !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:10px !important;
  text-align:left !important;
}
#map-panel .sdp-map-location-label{
  display:block !important;
  color:#36c6a1 !important;
  font-size:10px !important;
  font-weight:800 !important;
  letter-spacing:.14em !important;
  margin-bottom:6px !important;
}
#map-panel .sdp-map-location p{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  margin:0 !important;
  color:#f5f7f6 !important;
  font-size:13px !important;
  line-height:1.55 !important;
  white-space:normal !important;
}

/* Admin Manage Court Slot modal sizing repair */
#slot-modal .modal-card,
#manage-slot-modal .modal-card,
.admin-slot-modal .modal-card,
.modal-card.manage-slot-card{
  width:min(560px, calc(100vw - 32px)) !important;
  max-width:560px !important;
  margin:auto !important;
}
@media (max-width:700px){
  #slot-modal .modal-card,
  #manage-slot-modal .modal-card,
  .admin-slot-modal .modal-card,
  .modal-card.manage-slot-card{
    width:calc(100vw - 24px) !important;
    max-width:none !important;
    max-height:calc(100vh - 24px) !important;
    overflow:auto !important;
  }
}

@media (min-width:701px){
  .modal-overlay .modal-card{width:min(620px,calc(100vw - 48px));max-width:620px}
}

/* Compact Admin Court popup — desktop like original, responsive on small screens */
#admin-slot-overlay{
  padding:20px !important;
  align-items:center !important;
  justify-content:center !important;
}
#admin-slot-overlay > .admin-modal{
  width:100% !important;
  max-width:520px !important;
  min-width:0 !important;
  margin:auto !important;
  border-radius:14px !important;
}
#admin-slot-overlay .admin-modal-body{padding:18px !important}
#admin-slot-overlay .group-actions{flex-wrap:wrap !important}
@media(max-width:600px){
  #admin-slot-overlay{padding:12px !important}
  #admin-slot-overlay > .admin-modal{
    width:calc(100vw - 24px) !important;
    max-width:520px !important;
    max-height:calc(100vh - 24px) !important;
    overflow:auto !important;
  }
  #admin-slot-overlay .group-actions .admin-btn{flex:1 1 140px}
}

/* Dedicated compact cancellation PIN popup */
#admin-cancel-pin-overlay{
  padding:20px !important;
  align-items:center !important;
  justify-content:center !important;
}
#admin-cancel-pin-overlay > .admin-modal{
  width:100% !important;
  max-width:390px !important;
  min-width:0 !important;
  margin:auto !important;
  border-radius:14px !important;
}
#admin-cancel-pin-overlay .admin-modal-body{padding:18px !important}
#admin-cancel-pin-overlay label{display:block}
#admin-cancel-pin-overlay input{width:100%;box-sizing:border-box}
@media(max-width:600px){
  #admin-cancel-pin-overlay{padding:12px !important}
  #admin-cancel-pin-overlay > .admin-modal{
    width:calc(100vw - 24px) !important;
    max-width:390px !important;
  }
}

/* Compact responsive admin popups */
#admin-slot-overlay>.admin-modal{width:min(500px,calc(100vw - 32px))!important;max-width:500px!important;min-width:0!important;margin:auto!important}
#admin-cancel-pin-overlay>.admin-modal{width:min(380px,calc(100vw - 32px))!important;max-width:380px!important;min-width:0!important;margin:auto!important}
@media(max-width:600px){#admin-slot-overlay,#admin-cancel-pin-overlay{padding:12px!important}#admin-slot-overlay>.admin-modal,#admin-cancel-pin-overlay>.admin-modal{width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important;overflow:auto!important}}


/* =========================================================
   ADMIN POPUPS — COMPACT DESKTOP + RESPONSIVE MOBILE/TABLET
   ========================================================= */

/* Overlay remains full-screen, dialog itself does NOT. */
#admin-slot-overlay,
#admin-cancel-pin-overlay,
.admin-modal-overlay{
  padding:20px !important;
  box-sizing:border-box !important;
  align-items:center !important;
  justify-content:center !important;
}

/* Manage Court Slot — old compact desktop feel */
#admin-slot-overlay > .admin-modal{
  display:block !important;
  width:460px !important;
  max-width:calc(100vw - 40px) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:calc(100vh - 40px) !important;
  margin:auto !important;
  overflow:auto !important;
  border-radius:14px !important;
  flex:none !important;
}

/* Cancellation PIN should be even smaller */
#admin-cancel-pin-overlay > .admin-modal{
  display:block !important;
  width:380px !important;
  max-width:calc(100vw - 40px) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:calc(100vh - 40px) !important;
  margin:auto !important;
  overflow:auto !important;
  border-radius:14px !important;
  flex:none !important;
}

/* Prevent children from forcing the modal wide */
#admin-slot-overlay .admin-modal-head,
#admin-slot-overlay .admin-modal-body,
#admin-cancel-pin-overlay .admin-modal-head,
#admin-cancel-pin-overlay .admin-modal-body{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

#admin-slot-overlay input,
#admin-slot-overlay select,
#admin-slot-overlay textarea,
#admin-cancel-pin-overlay input{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}

/* Tablet */
@media (max-width:768px){
  #admin-slot-overlay > .admin-modal{
    width:min(460px,calc(100vw - 32px)) !important;
    max-width:calc(100vw - 32px) !important;
  }
  #admin-cancel-pin-overlay > .admin-modal{
    width:min(380px,calc(100vw - 32px)) !important;
    max-width:calc(100vw - 32px) !important;
  }
}

/* Phone */
@media (max-width:520px){
  #admin-slot-overlay,
  #admin-cancel-pin-overlay,
  .admin-modal-overlay{
    padding:12px !important;
  }

  #admin-slot-overlay > .admin-modal,
  #admin-cancel-pin-overlay > .admin-modal{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
    border-radius:12px !important;
  }

  #admin-slot-overlay .admin-modal-body,
  #admin-cancel-pin-overlay .admin-modal-body{
    padding:16px !important;
  }

  #admin-slot-overlay .group-actions,
  #admin-cancel-pin-overlay .group-actions{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
  }

  #admin-slot-overlay .group-actions .admin-btn,
  #admin-cancel-pin-overlay .group-actions .admin-btn{
    width:100% !important;
    min-height:44px !important;
  }
}

/* FINAL targeted admin dialog sizing — desktop compact, mobile responsive */
#confirmed-detail-overlay,
#receipt-modal-overlay,
#cancel-password-overlay,
#booking-alert-overlay,
#admin-slot-overlay,
#admin-cancel-pin-overlay{
  padding:18px !important;
  align-items:center !important;
  justify-content:center !important;
}
#confirmed-detail-overlay > .admin-modal{
  width:440px !important;
  max-width:calc(100vw - 36px) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:calc(100vh - 36px) !important;
  overflow:auto !important;
  flex:none !important;
  margin:auto !important;
}
#admin-slot-overlay > .admin-modal{
  width:460px !important;
  max-width:calc(100vw - 36px) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:calc(100vh - 36px) !important;
  overflow:auto !important;
  flex:none !important;
  margin:auto !important;
}
#admin-cancel-pin-overlay > .admin-modal,
#cancel-password-overlay > .admin-modal{
  width:370px !important;
  max-width:calc(100vw - 36px) !important;
  min-width:0 !important;
  height:auto !important;
  max-height:calc(100vh - 36px) !important;
  overflow:auto !important;
  flex:none !important;
  margin:auto !important;
}
#confirmed-detail-overlay .admin-modal-body,
#admin-slot-overlay .admin-modal-body,
#admin-cancel-pin-overlay .admin-modal-body{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
@media(max-width:520px){
  #confirmed-detail-overlay,
  #receipt-modal-overlay,
  #cancel-password-overlay,
  #booking-alert-overlay,
  #admin-slot-overlay,
  #admin-cancel-pin-overlay{padding:12px!important}
  #confirmed-detail-overlay > .admin-modal,
  #admin-slot-overlay > .admin-modal,
  #admin-cancel-pin-overlay > .admin-modal,
  #cancel-password-overlay > .admin-modal{
    width:calc(100vw - 24px) !important;
    max-width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}

/* Admin live search results */
.admin-search-results{
  width:100%;
  margin-top:10px;
  padding:8px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:#111614;
  box-sizing:border-box;
}
.admin-search-results.hidden{display:none!important}
.admin-search-result{
  display:block;
  width:100%;
  padding:12px 14px;
  margin:0 0 7px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:#f5f7f6;
  text-align:left;
  cursor:pointer;
}
.admin-search-result:last-child{margin-bottom:0}
.admin-search-result:hover{background:rgba(255,255,255,.07)}
.admin-search-result-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-search-contact,.admin-search-schedule{display:block;margin-top:5px;font-size:12px;line-height:1.5;color:rgba(245,247,246,.72)}
.admin-search-schedule{color:#f5f7f6}
.admin-search-status{font-size:10px;text-transform:uppercase;letter-spacing:.08em;padding:4px 7px;border-radius:999px}
.admin-search-status.pending{background:rgba(231,168,61,.16);color:#f0bd61}
.admin-search-status.confirmed{background:rgba(54,198,161,.16);color:#55d8b7}
.admin-search-empty{padding:12px;color:rgba(245,247,246,.7);font-size:13px}
@media(max-width:520px){
 .admin-search-result-top{align-items:flex-start}
 .admin-search-result{padding:11px}
}

/* CLEAN INTEGRATED ADMIN SEARCH RESULTS
   Results feel like part of the dashboard rather than a separate large panel. */
#admin-search-results.admin-search-results{
  width:100%;
  margin:8px 0 18px !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:10px !important;
  background:transparent !important;
  overflow:hidden;
  box-shadow:none !important;
}
#admin-search-results.hidden{display:none!important}
#admin-search-results .admin-search-result{
  display:grid !important;
  grid-template-columns:minmax(150px,1.2fr) minmax(180px,1.5fr) auto;
  gap:12px;
  align-items:center;
  width:100% !important;
  margin:0 !important;
  padding:10px 12px !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.07) !important;
  border-radius:0 !important;
  background:transparent !important;
  color:inherit !important;
  text-align:left;
  box-shadow:none !important;
}
#admin-search-results .admin-search-result:last-child{border-bottom:0!important}
#admin-search-results .admin-search-result:hover{background:rgba(255,255,255,.035)!important}
#admin-search-results .admin-search-result-top{
  display:flex!important;
  align-items:center;
  gap:8px;
  justify-content:flex-start!important;
  min-width:0;
}
#admin-search-results .admin-search-result-top strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#admin-search-results .admin-search-contact{
  display:block!important;
  margin:0!important;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px!important;
  color:rgba(245,247,246,.55)!important;
}
#admin-search-results .admin-search-schedule{
  display:block!important;
  margin:0!important;
  text-align:right;
  font-size:12px!important;
  line-height:1.45!important;
  color:rgba(245,247,246,.86)!important;
  white-space:nowrap;
}
#admin-search-results .admin-search-status{
  flex:0 0 auto;
  font-size:9px!important;
  padding:3px 6px!important;
}
#admin-search-results .admin-search-empty{
  padding:11px 12px!important;
  font-size:12px!important;
  color:rgba(245,247,246,.55)!important;
  background:transparent!important;
}
@media(max-width:760px){
 #admin-search-results .admin-search-result{
   grid-template-columns:1fr auto;
   gap:5px 10px;
 }
 #admin-search-results .admin-search-contact{
   grid-column:1 / -1;
   grid-row:2;
 }
 #admin-search-results .admin-search-schedule{
   grid-column:2;
   grid-row:1;
 }
}
@media(max-width:520px){
 #admin-search-results.admin-search-results{
   margin-top:7px!important;
 }
 #admin-search-results .admin-search-result{
   display:flex!important;
   flex-direction:column!important;
   align-items:stretch!important;
   gap:4px!important;
   padding:10px!important;
 }
 #admin-search-results .admin-search-result-top{justify-content:space-between!important}
 #admin-search-results .admin-search-contact{
   white-space:normal!important;
 }
 #admin-search-results .admin-search-schedule{
   text-align:left!important;
   white-space:normal!important;
 }
}

/* VIEW MAP — location must sit BELOW the court image, never beside it */
#map-panel .dinklounge-map-image-wrap{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  width:100% !important;
}
#map-panel .dinklounge-map-image-wrap > img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  flex:none !important;
}
#map-panel .sdp-map-location{
  display:block !important;
  position:static !important;
  float:none !important;
  clear:both !important;
  width:100% !important;
  max-width:none !important;
  flex:none !important;
  box-sizing:border-box !important;
  margin:12px 0 0 !important;
  padding:12px 14px !important;
}
#map-panel .sdp-map-location p{
  margin:4px 0 0 !important;
  width:100% !important;
}
@media(max-width:600px){
  #map-panel .sdp-map-location{
    margin-top:10px !important;
    padding:10px 12px !important;
  }
}

/* Monthly export controls */
.admin-confirmed-tools #admin-export-month{min-width:145px;max-width:190px;color:inherit;}
@media(max-width:650px){.admin-confirmed-tools #admin-export-month{width:100%;max-width:100%;}.admin-confirmed-tools #export-csv-btn{width:100%;}}

/* GCash Payment Information */

.gcash-account {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 22px;
  padding: 20px;
  background: #142320;
  border: 1px solid #28594f;
  border-radius: 12px;
}

.gcash-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.gcash-detail span {
  color: #91aaa3;
  font-size: 12px;
  font-weight: 500;
}

.gcash-detail strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
/* Pending bookings notification drawer/modal */
.admin-pending-notifications{width:min(680px,calc(100vw - 28px));max-width:680px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden}
.admin-pending-notifications>.admin-modal-body{overflow-y:auto;padding:18px}
.admin-pending-notifications #sec-pending{margin:0}
.admin-pending-notifications .admin-section-head{margin-bottom:12px}
.admin-notification-help{color:var(--muted,#a6b6b1);font-size:13px;margin:0 0 12px}
.admin-pending-trigger{margin-top:12px;width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px}
#pending-nav-count{background:#244b45;color:#b6fff0;border-radius:100px;padding:2px 9px}

/* 2026-10-12: compact seven-day availability and accessible notification trigger */
.day-pills{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.day-pill{min-width:0;padding:12px 3px 11px;gap:5px}
.day-name{font-size:10px;letter-spacing:0}
.day-num{font-size:16px}
.day-avail{font-size:10px;color:var(--teal);letter-spacing:0;white-space:nowrap}
.day-pill.selected .day-avail{color:var(--teal)}
#pending-notifications-open,#pending-notifications-nav{cursor:pointer;pointer-events:auto;position:relative;z-index:1}
#pending-notifications-overlay:not(.hidden){z-index:1200}
#pending-notifications-overlay .admin-pending-notifications{width:min(680px,calc(100vw - 28px));max-height:85vh}
@media(max-width:620px){.day-pills{gap:4px}.day-pill{padding:10px 1px}.day-avail{font-size:8px}.day-name{font-size:9px}.day-num{font-size:14px}}

/* Compact responsive GCash receipt preview dialog */
#receipt-modal-overlay{z-index:350;padding:12px !important;}
#receipt-modal-overlay > .admin-modal{
 width:min(460px,calc(100vw - 24px)) !important;
 max-width:460px !important;
 min-width:0 !important;
 max-height:min(86dvh,760px) !important;
 height:auto !important;
 margin:auto !important;
 overflow:hidden !important;
 display:flex !important;
 flex-direction:column !important;
}
#receipt-modal-overlay .admin-modal-head{flex-shrink:0;}
#receipt-modal-body{
 padding:14px !important;
 min-height:100px;
 overflow:auto !important;
 display:flex;
 align-items:center;
 justify-content:center;
}
#receipt-modal-body .receipt-image-preview{
 display:block;
 width:auto !important;
 max-width:100% !important;
 height:auto !important;
 max-height:calc(86dvh - 110px) !important;
 object-fit:contain;
 margin:auto;
 border-radius:8px;
}
#receipt-modal-body .receipt-pdf-preview{
 display:block;
 width:100%;
 height:min(62dvh,560px);
 border:0;
 background:white;
 border-radius:8px;
}
#receipt-modal-body .receipt-loading{color:var(--muted,#a6b6b1);font-size:13px;text-align:center;}
@media(max-width:520px){
 #receipt-modal-overlay{padding:10px !important;}
 #receipt-modal-overlay > .admin-modal{width:calc(100vw - 20px) !important;max-height:88dvh !important;}
 #receipt-modal-body{padding:10px !important;}
 #receipt-modal-body .receipt-image-preview{max-height:calc(88dvh - 95px) !important;}
}

/* Admin booking search: full-width input row with results BELOW it. */
.admin-search-row{display:flex!important;align-items:center!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:10px!important;margin-bottom:0!important;min-height:0!important}
.admin-search-row .admin-search-input{display:block!important;flex:1 1 auto!important;width:0!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;box-sizing:border-box!important;resize:none!important}
.admin-search-row #admin-search-clear{flex:0 0 auto!important;align-self:center!important;height:44px!important;min-height:44px!important;max-height:44px!important}
#admin-search-results.admin-search-results{display:block;max-height:360px;overflow-y:auto;margin:10px 0 20px!important}
#admin-search-results.admin-search-results.hidden{display:none!important}
#admin-search-results .admin-search-result{grid-template-columns:minmax(130px,1fr) minmax(140px,1.3fr) minmax(170px,1.4fr)!important;min-height:52px;cursor:pointer}
#admin-search-results .admin-search-schedule{white-space:normal!important;overflow-wrap:anywhere;text-align:left!important}
@media(max-width:760px){#admin-search-results .admin-search-result{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important}#admin-search-results .admin-search-contact{white-space:normal!important}#admin-search-results .admin-search-schedule{text-align:left!important}}
/* Pending Court Management cells use the same warm orange as pending booking badges. */
#admin-court-body td.admin-managed-pending{background:rgba(231,168,61,.22)!important;border-color:rgba(240,189,97,.65)!important;color:#ffd28b!important;cursor:pointer!important}
#admin-court-body td.admin-managed-pending strong{color:#ffbd58!important}
#admin-court-body td.admin-managed-pending:hover{background:rgba(231,168,61,.32)!important}

/* Admin search spacing and receipt popup stacking (Oct 2026) */
.admin-search-row{margin-bottom:16px!important;}
#admin-search-results.hidden + #sec-court-management{margin-top:0;}
#receipt-modal-overlay:not(.hidden){
  z-index:20000!important;
  position:fixed!important;
  inset:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#receipt-modal-overlay > .admin-modal{position:relative;z-index:1;}
#receipt-modal-body .receipt-image-preview{display:block;max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto;}

/* Admin multiple-slot booking */
.admin-bulk-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px}.admin-bulk-count{font-size:13px;color:#28bcb5}.admin-bulk-pickable{cursor:pointer}.admin-bulk-selected{background:#155d58!important;color:#fff!important;outline:2px solid #2bd3c8;outline-offset:-2px}.admin-bulk-modal{max-width:520px;width:calc(100% - 24px)}.admin-bulk-summary{max-height:190px;overflow:auto;margin-bottom:15px}.admin-bulk-line{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #293735;font-size:13px}.admin-bulk-line strong{white-space:nowrap}

/* Dashboard pending-confirmation metric and booking alert controls */
.admin-pending-card-action{margin-top:9px;font-size:11px;}
.admin-sound-label{font-size:11px;color:var(--white);opacity:.7;}
.admin-sound-select{background:var(--ink-card);color:var(--white);border:1px solid var(--line);border-radius:8px;padding:7px 9px;font:inherit;font-size:12px;max-width:155px;}
.admin-sound-select:focus-visible{outline:2px solid var(--teal);outline-offset:2px;}
@media(max-width:700px){.admin-sound-select{max-width:none;width:100%;}}

/* DinkLounge customer booking: mobile-only compact six-court schedule */
@media (max-width:700px){
  .week-card{padding:15px 12px 17px}
  .week-head{gap:10px;align-items:flex-start}
  .week-nav{flex-wrap:wrap;gap:8px}
  .day-pills{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
  .day-pill{box-sizing:border-box;min-width:0;overflow:hidden;padding:9px 1px 10px;gap:4px;border-radius:8px}
  .day-name{font-size:10px;line-height:1.2}
  .day-num{font-size:17px;line-height:1.3}
  .day-avail{font-size:10px;line-height:1.25;white-space:normal;overflow-wrap:normal;letter-spacing:0;display:flex;flex-direction:column;align-items:center;gap:1px}
  .day-avail .avail-number{font-weight:700;color:var(--teal)}
  .day-avail .avail-word{font-size:8px;color:rgba(245,247,246,.62)}
  .schedule-card{padding:15px 10px 18px;min-width:0}
  .schedule-head{margin-bottom:12px}
  .schedule-head-left{gap:9px}
  .selected-date-label{font-size:15px}
  .table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  table.schedule-table{width:max-content;min-width:0!important;table-layout:fixed;border-spacing:3px 5px}
  table.schedule-table th:first-child,table.schedule-table td:first-child{width:79px;min-width:79px;max-width:79px;box-sizing:border-box;position:sticky;left:0;z-index:2;background:var(--ink-card);white-space:nowrap}
  table.schedule-table thead th{width:62px;min-width:62px;max-width:62px;box-sizing:border-box;padding:0 2px 7px;font-size:10px;letter-spacing:0}
  table.schedule-table thead th:first-child{z-index:4}
  table.schedule-table td.time-cell{padding:0 2px;font-size:10px;letter-spacing:-.2px}
  table.schedule-table td.cell{width:62px;min-width:62px;max-width:62px;box-sizing:border-box;padding:10px 2px;font-size:11px;white-space:nowrap}
}
@media(max-width:390px){
  table.schedule-table th:first-child,table.schedule-table td:first-child{width:73px;min-width:73px;max-width:73px}
  table.schedule-table thead th:not(:first-child),table.schedule-table td.cell{width:57px;min-width:57px;max-width:57px}
  .day-pills{gap:3px}
  .day-num{font-size:15px}
  .day-avail .avail-word{font-size:7px}
}

/* 2026-10-19 mobile header and weekly availability correction */
@media(max-width:720px){
 header .contact-header-link{display:inline-flex!important;visibility:visible!important;opacity:1!important;white-space:nowrap}
 header nav{display:flex;flex-wrap:nowrap;gap:5px;align-items:center}
 header .back-link{white-space:nowrap}
 header .brand{flex:0 1 auto;min-width:0}
 header{gap:5px;padding:10px 9px}
 .week-card{overflow:hidden}
 .day-pills{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
 .day-pill{min-width:0;max-width:100%;padding:9px 1px;overflow:hidden}
 .day-avail{display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:normal;min-width:0;width:100%;line-height:1.15;gap:2px}
 .day-avail .avail-number{font-size:11px;line-height:1.1}
 .day-avail .avail-word{font-size:7px;line-height:1.1;white-space:nowrap}
}
@media(max-width:380px){header .nav-link,header .contact-header-link{font-size:10px;padding:7px 5px}}

@media (max-width: 768px) {
    header nav .contact-nav-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
/* Mobile homepage: show Contact Us without changing other navigation */
@media (max-width:720px) {
  header nav .contact-nav-btn {
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    flex-shrink:0;
  }
  header nav { flex-wrap:nowrap; gap:5px; }
  header .brand { flex:0 1 auto; min-width:0; }
  header { gap:5px; }
}

/* Mobile swipe indicator for 6 courts */
.court-swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  .court-swipe-hint {
    display: block;
    text-align: center;
    background: rgba(42, 184, 177, 0.12);
    border: 1px solid rgba(42, 184, 177, 0.35);
    color: #45d4cb;
    border-radius: 8px;
    padding: 11px 8px;
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
  }
}

@media (min-width: 769px) {
  .court-swipe-hint {
    display: none !important;
  }
}

/* DinkLounge header logo */
header .brand img {
    height: 65px !important;
    max-height: none !important;
    width: auto !important;
    object-fit: contain;
}

/* Mobile logo */
@media screen and (max-width: 768px) {
    header .brand img {
        height: 55px !important;
        max-height: none !important;
        width: auto !important;
    }
}
/* DINKLOUNGE - COMPACT MOBILE PAYMENT */
@media only screen and (max-width: 768px) {

  #payment-method-card {
    padding: 14px !important;
  }

  #payment-method-card .co-qr-box {
    width: 100% !important;
    max-width: 290px !important;
    padding: 12px !important;
    gap: 6px !important;
    margin: 10px auto !important;
  }

  #payment-method-card .co-gcash-qr,
  #payment-method-card #co-gcash-qr {
    width: 210px !important;
    height: 210px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 4px auto !important;
  }

  #payment-method-card .gcash-account {
    padding: 12px !important;
    gap: 10px !important;
    margin: 12px 0 !important;
  }

  #payment-method-card .gcash-detail {
    gap: 3px !important;
  }

  #payment-method-card .co-dropzone {
    padding: 14px 12px !important;
  }

  #payment-method-card .co-submit-btn {
    margin-top: 12px !important;
  }
}


/* DINKLOUNGE - MOBILE TAGLINE SIZE */
@media screen and (max-width: 768px) {

    .hero .hero-bullets.balanced-headline {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .hero .hero-bullets.balanced-headline li:not(.hero-separator) {
        font-size: clamp(23px, 6vw, 32px) !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .hero .hero-bullets.balanced-headline .hero-separator {
        flex-shrink: 0 !important;
    }

    .hero .hero-bullets.balanced-headline .hero-separator img {
        width: 6px !important;
        height: 6px !important;
    }

}
/* Find My Booking - Compact Outline Button */
#find-booking-open {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 13px !important;
    background: transparent !important;
    color: #eafafa !important;

    border: 1px solid #81D8D0 !important;
    border-radius: 8px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#find-booking-open:hover {
    background: rgba(129, 216, 208, 0.12) !important;
}

/* Mobile */
@media (max-width: 600px) {
    #find-booking-open {
        padding: 7px 10px !important;
        font-size: 11px !important;
        gap: 5px;
    }
}
/* DinkLounge Contact Us - Social Buttons */

.contact-social-links {
    display: flex !important;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}

.contact-social-btn {
    box-sizing: border-box;
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 12px;
    background: transparent;
    border: 1px solid #414141;
    border-radius: 5px;

    color: #ffffff !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;

    transition: border-color 0.2s,
                color 0.2s,
                background 0.2s;
}

.contact-social-btn:hover {
    border-color: #81D8D0;
    color: #81D8D0 !important;
    background: rgba(129, 216, 208, 0.08);
}

.contact-social-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 380px) {
    .contact-social-links {
        gap: 8px;
    }

    .contact-social-btn {
        padding: 10px 7px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .find-booking-btn {
        border: 1px solid #81D8D0 !important;
        border-radius: 10px !important;
        background: transparent !important;
        padding: 10px 14px !important;
        color: #81D8D0 !important;
    }
}
/* Mobile only: slots on a new line */
@media (max-width: 720px) {
    .day-avail {
        max-width: 100%;
        white-space: normal !important;
        text-align: center;
    }
}

/* Mobile only: force "slots" onto a new line */
@media screen and (max-width: 720px) {
    .day-avail {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
    }
}
/* DINKLOUNGE ADMIN — TIFFANY BLUE INDICATORS */

.revenue-bar-track,
.util-track {
    display: block;
    width: 100%;
    height: 10px;
    background: #e8eeee;
    border-radius: 999px;
    overflow: hidden;
}

.revenue-bar-fill,
.util-fill {
    display: block;
    height: 100%;
    background: #81D8D0 !important;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.revenue-bar-row,
.util-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.revenue-bar-track,
.util-track {
    flex: 1;
    min-width: 0;
}
.revenue-bar-track,
.util-track {
    background: #303736 !important;
}

.revenue-bar-fill,
.util-fill {
    background: #81D8D0 !important;
}


/* DinkLounge mobile court swipe restoration */
@media (max-width: 768px) {
  .schedule-card .table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .schedule-card .schedule-table {
    width: max-content;
    min-width: 0 !important;
  }
}


/* DINKLOUNGE — PENDING LEGEND COLOR */

.legend-dot.pending-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    background: #b77531 !important;
    border-radius: 50% !important;
    margin-right: 5px;
    flex-shrink: 0;
}

/* DINKLOUNGE — MOBILE NUMBER VALIDATION */

#co-mobile.field-error {
    border: 1px solid #d96c6c !important;
}

#co-mobile.field-error + .field-err-msg {
    display: block !important;
    color: #e68b8b;
    font-size: 12px;
    margin-top: 6px;
}

/* DINKLOUNGE — FULL NAME VALIDATION */

#co-name.field-error {
    border: 1px solid #d96c6c !important;
}

#co-name.field-error + .field-err-msg {
    display: block !important;
    color: #e68b8b;
    font-size: 12px;
    margin-top: 6px;
}

/* DINKLOUNGE — PENDING STATUS ON MOBILE AND DESKTOP */

.legend-dot.pending-dot,
.pending-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    background-color: #b77531 !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .legend-item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }

    .legend-dot.pending-dot {
        background-color: #b77531 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* DINKLOUNGE — COURT STATUS LEGEND ALIGNMENT */

.legend {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    white-space: nowrap;
}

.legend-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.legend-dot,
.legend-dot.pending-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
}

.legend-dot.pending-dot {
    background: #b77531 !important;
}

/* Mobile: keep the statuses together */
@media (max-width: 768px) {
    .legend {
        gap: 9px !important;
        flex-wrap: nowrap !important;
        width: max-content;
    }

    .legend-item {
        gap: 4px !important;
        font-size: 10px !important;
    }
}

/* DINKLOUNGE — CONSISTENT COURT STATUS LEGEND */

.legend > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.legend .dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.legend .dot-pending {
    background: #b77531 !important;
}

/* Allow all statuses to remain visible on mobile */
@media (max-width: 768px) {
    .legend {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 8px 12px !important;
        justify-content: flex-start !important;
    }

    .legend > span {
        font-size: 10px !important;
        gap: 5px !important;
    }
}

/* DINKLOUNGE — ADMIN PRICE DROPDOWN */

#admin-bulk-rate,
#admin-manual-rate {
    width: 100%;
    padding: 12px 14px;

    background-color: #1B2423 !important;
    color: #E5F5F3 !important;

    border: 1px solid #36534F !important;
    border-radius: 8px !important;

    font-size: 14px;
    font-family: inherit;
    font-weight: 500;

    outline: none;
    cursor: pointer;

    color-scheme: dark;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Hover */
#admin-bulk-rate:hover,
#admin-manual-rate:hover {
    background-color: #22302E !important;
    border-color: #5C918A !important;
}

/* Selected / Focused */
#admin-bulk-rate:focus,
#admin-manual-rate:focus {
    border-color: #81D8D0 !important;
    box-shadow: 0 0 0 2px rgba(129, 216, 208, 0.12) !important;
}

/* Dropdown choices */
#admin-bulk-rate option,
#admin-manual-rate option {
    background-color: #1B2423;
    color: #E5F5F3;
}


/* DINKLOUNGE OPEN PLAY NOTICE */

.open-play-notice {
  background: #102d2b;
  border: 1px solid #27504b;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 22px 0 28px;
  color: #e8f4f2;
}

.open-play-heading {
  color: #81d8d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.open-play-main {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
}

.open-play-description {
  font-size: 13px;
  color: #b5ceca;
  line-height: 1.6;
  margin: 0 0 18px;
}

.open-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.open-play-actions a {
  padding: 11px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.open-play-facebook {
  background: #81d8d0;
  color: #102d2b;
}

.open-play-call {
  border: 1px solid #81d8d0;
  color: #81d8d0;
}

.open-play-location {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #315b56;
}

.open-play-location strong {
  display: block;
  color: #81d8d0;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.open-play-location p {
  margin: 0;
  color: #d4e6e3;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .open-play-notice {
    padding: 20px;
    margin: 16px 0 22px;
  }

  .open-play-main {
    font-size: 16px;
  }

  .open-play-actions {
    flex-direction: column;
  }

  .open-play-actions a {
    text-align: center;
  }
}

/* FIX SPACE BELOW HEADER - BOOKING PAGE ONLY */

body:has(.open-play-notice) main {
  padding-top: 0 !important;
}

.book-wrap .open-play-notice {
  margin-top: 8px !important;
  margin-bottom: 20px !important;
}

@media (max-width: 600px) {
  .book-wrap .open-play-notice {
    margin-top: 6px !important;
    margin-bottom: 16px !important;
  }
}

/* DINKLOUNGE IMPORTANT NOTICE - MUTED RED */

.book-wrap .open-play-heading {
  color: #E58B8B !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 9px;
}

/* FIX IMPORTANT NOTICE COLOR ON MOBILE */
@media (max-width: 768px) {
  .book-wrap .open-play-notice .open-play-heading {
    color: #E58B8B !important;
    -webkit-text-fill-color: #E58B8B !important;
  }
}

/* BRIGHT RED IMPORTANT NOTICE - PC & MOBILE */
.book-wrap .open-play-notice .open-play-heading {
    color: #FF3B3B !important;
    -webkit-text-fill-color: #FF3B3B !important;
    font-weight: 800;
    letter-spacing: 1.2px;
}


body:has(.open-play-notice) .book-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Viewer Login - Mobile Visibility */
header nav .viewer-login-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 720px) {
    header nav .viewer-login-link {
        display: inline-flex !important;
        font-size: 12px;
        padding: 8px 12px;
        border: 1px solid #81D8D0;
        border-radius: 8px;
        color: #81D8D0;
    }
}

/* Keep court headings in view while browsing the schedule on either axis. */
.schedule-card .table-scroll.booking-schedule-scroll {
  overflow: auto;
  max-height: 65vh;
  max-height: 65svh;
  isolation: isolate;
}
.booking-schedule-scroll table.schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding-block: 8px;
  color: var(--white, #f5f7f6);
  background: var(--ink-card);
  box-shadow: 0 0 0 4px var(--ink-card);
}
.booking-schedule-scroll table.schedule-table thead th:first-child {
  left: 0;
  z-index: 5;
}
