.admin-container { max-width: 1100px; margin: 20px auto; margin-top: 70px; padding: 0 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.stat .label { font-size: 12px; color: #666; }
.stat .value { font-size: 22px; font-weight: 800; margin-top: 2px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.chart { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.chart h3 { margin: 0 0 8px; font-size: 16px; }
@media (max-width: 900px){ .stat-grid{grid-template-columns: repeat(2,1fr);} .charts{grid-template-columns:1fr;} }
/* ===== Brand tokens (light only) ======================================= */
:root{
  --brand-400: #F7B2F7;  /* light pink */
  --brand-500: #F57FF5;  /* primary pink */
  --brand-600: #EB66EB;  /* slightly deeper accent */
  --brand-50:  #FFF6FF;  /* very light tint */
  --brand-100: #FFEAFE;  /* light tint */

  --surface: #ffffff;
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */
  --border: #e5e7eb;     /* slate-200 */
}

/* Force a light palette regardless of OS theme */
.top-nav, .analytics, table.list { color-scheme: light; }

/* ===== Page chrome ===================================================== */
.top-nav{
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  gap: 8px; padding: 12px 16px; color: #fff;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 10px 24px rgba(245,127,245,.18);
}
.top-nav .event-title{ margin: 0; text-align: center; font-weight: 800; letter-spacing:.2px; }
.back-icon{ width:24px; height:24px; display:block; filter: brightness(0) invert(1); opacity:.95; }
.back-icon:hover{ opacity:1; }

/* ===== Layout ========================================================== */
.analytics{ max-width:1100px; margin:24px auto 64px; margin-top: 140px; padding:0 16px; color:var(--text); background:#fff; }

/* ===== Stat cards ====================================================== */
.cards{ display:grid; gap:14px; grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (min-width:720px){ .cards{ grid-template-columns: repeat(5,minmax(0,1fr)); } }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 8px 20px rgba(0,0,0,.04);
}
.card .label{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.card .value{ margin-top:6px; font-size:clamp(20px,3.2vw,28px); font-weight:900; color:var(--brand-600); }

/* ===== Section headers ================================================= */
.analytics h3{ margin:28px 0 10px; font-size:16px; letter-spacing:.2px; color:var(--muted); }
.analytics h3::after{
  content:""; display:block; height:3px; width:56px; margin-top:8px;
  background: linear-gradient(90deg, var(--brand-500), transparent);
  border-radius:3px;
}

/* ===== Tables (bright, airy) ========================================== */
table.list{
  width:100%; border-collapse:collapse; overflow:hidden;
  border:1px solid var(--border); border-radius:12px; background:#fff;
}
table.list thead th{
  background: var(--brand-100);
  color: var(--text);
  text-align:left; font-weight:700; font-size:13px;
  padding:10px 12px; border-bottom:1px solid var(--border);
}
table.list tbody td{
  font-size:14px; color:var(--text);
  padding:10px 12px; border-top:1px solid var(--border);
}
table.list tbody tr:nth-child(odd){ background: var(--brand-50); }
table.list tbody tr:hover{ background: #fff; box-shadow: inset 0 0 0 9999px rgba(245,127,245,.06); }

/* Tabular numerals for counts */
td:nth-child(n+3){ font-variant-numeric: tabular-nums; }


/* --- Responsive tables --- */
.table-wrap{
  width: 100%;
  overflow-x: auto;                 /* scroll on small screens */
  -webkit-overflow-scrolling: touch;/* smooth iOS scroll */
  border-radius: 12px;
  background: #fff;
}

.table-wrap > table{
  min-width: 680px;                 /* keep columns readable */
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Keep long titles from blowing up layout */
table.list td:first-child{
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.list td:nth-child(2){ white-space: nowrap; } /* time */

/* Super small screens: drop least important columns */
@media (max-width: 420px){
  table.list thead th:nth-child(5),
  table.list thead th:nth-child(6),
  table.list tbody td:nth-child(5),
  table.list tbody td:nth-child(6){
    display: none;                   /* hide Messages & Photos */
  }
  .table-wrap > table{ min-width: 520px; }
  table.list td:first-child{ max-width: 200px; }
}
.participants-list{
    width: 90%;
    max-width: 350px;
    max-width: 350px;
    margin: 0 auto; /* Center horizontally */
    margin-top: 80px;
    padding-bottom:60px;

    justify-content: center;
    align-items: center;
}

body.ios-webview .participants-list{
  margin-top: 130px !important;
}

.participants-list ul {
    list-style: none;
    padding: 0;
  }


  .host-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .host-name {
    font-weight: 600;
    color: #837585;
    font-size: 18px;
  }

  .section-label {
    font-size: 14px;
    font-weight: bold;
    color: #837585;
    margin: 24px 0 8px;
  }
  
  
  .participant-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .image-border-wrapper {
    background: linear-gradient(135deg, #F7B2F7, #F57FF5);
    padding: 3px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 12px;
  }
  
  .participant-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
  }
  
  .participant-name {
    font-size: 16px;
    font-weight: 500;
    color: #837585; /* ← updated text color */
  }
  
.gm-style .gm-style-iw {
    z-index: 9999 !important;
    pointer-events: auto !important;
  }

/* Make the map cover the whole screen */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Ensures the map is behind floating UI elements */
    overflow: visible !important;  /* Allow InfoWindow to overflow properly */

}

/* Hide bottom right UI elements from Google Maps */
.gm-style .gm-style-cc,
.gm-control-active,
.gmnoprint,
.gm-fullscreen-control {
  display: none !important;
}


/* Floating UI Elements */
.floating-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

body.ios-webview .floating-buttons {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}


.location-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 127, 245, 0.7); /* transparent F57FF5 */
    color: white;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    z-index: 9999;
    backdrop-filter: blur(3px);
  }

  body.ios-webview .location-banner{
    padding-top: 50px;
  }

  


.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.floating-button:active{
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.floating-button:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}

/* White Inner Circle for Floating Buttons */
.floating-inner {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.floating-button img {
    width: 25px;
    height: 25px;
}


/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;  /* Ensures it starts from the left edge */
    width: 100%;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures content is centered */
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 1000 !important;
    box-sizing: border-box; /* Ensures padding doesn’t mess up the width */
    will-change: transform; /* Helps with rendering */
    transition: transform 0.2s ease;
}

body.ios-webview .top-nav {
    padding-top: 44px;
    height: 94px;
  }
  
  

/* Ensures the event title is perfectly centered */
.top-nav .event-title{
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;

  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: block;
  max-width: calc(100% - 160px);  /* ✅ leaves room for icons + paddings */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Back Icon: Positioned on the left */
.top-nav .back-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

body.ios-webview .top-nav .back-icon {
    top: 74%;
}

/* Allow scrolling */
body {
    overflow-y: auto;
}



/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

body.ios-webview .bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 25px;
    padding-top: 12px;
    padding-bottom: 27px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}


.bottom-nav img {
    width: 27px;  /* Smaller size */
    height: auto; /* Maintain aspect ratio */
    display: block;
}






/* Floating Action Button */
.fab {
    position: fixed !important;
    bottom: 72px;
    right: 25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

body.ios-webview .fab {
    position: fixed !important;
    bottom: 85px;
    right: 25px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    z-index: 2;
}

.fab:active{
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.fab:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}

/* White Inner Circle */
.fab-inner {
    width: 72px; /* Slightly smaller than .fab */
    height: 72px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3; /* Ensures visibility */
}

.fab-inner img {
    width: 45px; /* ✅ Adjust this value as needed */
    height: 45px;
}


/* Navigation Buttons */
.nav-button {
    padding: 10px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    display: inline-block;
    text-align: center;
}

.nav-button:hover {
    opacity: 0.9;
}

/* ✅ Outer container for the gradient border */
.user-marker-container {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 48px; /* ✅ Adjusted to fit the gradient border */
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #F7B2F7, #F57FF5); /* ✅ Gradient border */
    padding: 3px; /* ✅ Spacing for the inner profile picture */
}

/* ✅ The actual profile image inside the border */
.user-marker {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: white;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* ✅ Keep a subtle shadow */
    position: relative;
}





.infowindow-container {
    width: 320px; /* Increased from 250px */
    height: auto; /* Let height adjust to content */
    display: flex;
    align-items: center;
    padding: 12px;
}

/* Style for the event image inside the InfoWindow */
.infowindow-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #F57FF5;
    border-radius: 10px;
    padding: 2px;
    background: white;
    display: block;
    margin-left: 0;
}

.infowindow-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.infowindow-text {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.event-title {
    font-weight: bold;
    font-size: 18px;
}

.infowindow-link {
    color: #F57FF5;
    font-weight: bold;
    text-decoration: none;
}

.infowindow-link:hover {
    text-decoration: underline;
}

.gm-ui-hover-effect {
    display: none !important;
}




/* Ensure the page content starts below the fixed header */
.page-content {
    margin-top: 100px;  /* Adjust this based on the actual height of .top-nav */
    padding-bottom: 80px; /* Adjust this based on the actual height of .bottom-nav */
}

body.ios-webview .page-content {
    margin-top: 150px;  /* Adjust this based on the actual height of .top-nav */
}



/* signup page */
.photo-upload {
    display: flex;
    justify-content: center;
    margin: 0px 0; /* optional spacing */
  }


.event{
    width: 90%;
    max-width: 350px;
    max-width: 350px;
    margin: 0 auto; /* Center horizontally */
    margin-top: 2%;

    justify-content: center;
    align-items: center;
}

.event-title-in-post{
    font-size: 25px;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 0;
}


/* Container for the event section */
.event-container {
    background: linear-gradient(to bottom, #F57FF5, #F7B2F7);
    border-radius: 0;
    padding: 10px;
    width: 90%;
    max-width: 350px;
    margin: 20px auto;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-photo-wrapper {
    width: 95%;
    max-width: 325px;
    aspect-ratio: 1 / 1; /* Keeps it square */
    position: relative; /* Allows absolute positioning inside */
    display: flex;
    justify-content: center;
    align-items: center;
    background: white; /* Ensures no unwanted gaps */
    overflow: hidden; /* Prevents shadow from overflowing */
    padding: 0;
    margin: 0 auto 7px; /* Centers the wrapper */

    transform: translateY(4%);
}

.event-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: 0; /* Covers the whole wrapper */
    box-shadow: inset 0px 10px 20px rgba(0, 0, 0, 0.05), 
                inset 0px -10px 20px rgba(0, 0, 0, 0.1); /* Stronger inner shadow */
    mix-blend-mode: multiply; /* Allows shadow to blend under the image */
    pointer-events: none; /* Prevents interaction */
    z-index: 2; /* Places it above the wrapper background but below the image */
}

.event-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the space */
    display: block;
    position: relative;
    z-index: 1; /* Ensures image does not cover the shadow */
}

/* Event details section */
.event-details {
    padding: 10px;
    color: white;
    font-family: Arial, sans-serif;
    text-align: left;
}

/* Profile image inside event details */
.profile-img-post-wrapper {
    display: inline-block;
    padding: 2px; /* Space for the border effect */
    border-radius: 50%;
    background: linear-gradient(to right, #ffe4ff, white); /* Gradient border */
    margin-right: 8px;
    margin-bottom:7px;
    margin-top: 5px;
    vertical-align: middle;
  }
  
  .profile-img-post {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }

/* Username */
.event-details .username {
    font-weight: bold;
    font-size: 20px;
    vertical-align: middle;
}

/* Event Time & People Count */
.event-details p {
    margin: 0;
    font-size: 15px;
    height: 23px;
}




.event-description {
    padding: 0 10px 10px; /* ✅ Ensures proper spacing */
    color: #888888; /* ✅ Updated color */
    font-family: Arial, sans-serif;
    text-align: left;
    width: 95%; /* ✅ Matches the width of .event-photo-wrapper */
    max-width: 325px;
    margin: 0 auto; /* ✅ Centers it within the container */
}

/* Ensures event description text starts from the left edge */
.event-description p {
    margin: 5px 0;
    font-size: 17px;
    text-align: left;
    padding-left: 0; /* ✅ Removes any left padding */
}


.icon-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
  }
  
  .icon-label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
  }
  
  .icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  
  




.event-action {
    display: flex;
    justify-content: flex-end; /* Aligns all content to the right */
    width: 100%; /* Ensure it takes full width of the container */
    gap: 12px;
    padding: 10px 20px;
    box-sizing: border-box;
  }
  
  .event-action form {
    display: inline-flex; /* Keeps form inline */
    margin: 0;
    width: auto; /* Prevent it from stretching full-width */
  }
  
  /* JOIN button */
  .join-button {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 35px;
    width: 130px;
    height: 41px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* LEAVE button */
  .leave-button {
    background: white;
    color: #F57FF5;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 35px;
    width: 130px;
    height: 41px;
    border-radius: 25px;
    border: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, #F7B2F7, #F57FF5);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Press + Hover Effects */
  .join-button:active,
  .leave-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .join-button:hover,
  .leave-button:hover {
    filter: brightness(1.1);
  }








  .event-cancel {
    display: flex;
    justify-content: flex-end; /* ✅ ensures right-alignment */
    padding: 5px 20px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .event-cancel-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
  }
  
  .event-action-icons {
    display: flex;
    gap: 13px;
    align-items: center;
    flex-direction: row;
  }
  
  .event-cancel .event-icon {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  
  .event-icon:hover {
    transform: scale(1.1);
  }
  
  .icon-button {
    background: none;
    border: none;
    padding: 0;
  }
  
  
  



/* ================================
   Create Post (New Event) Styles
   ================================ */

/* Layout */
.page-contents {
  padding-top: 130px;
  padding-bottom: 60px;
  width: 90%;
  max-width: 360px;
  margin: 2% auto 0;
  justify-content: center;
  align-items: center;
}

/* Spacing for form rows */
.page-contents form div {
  margin-bottom: 35px;
  position: relative;
}

/* Labels */
form label {
  font-size: 14px;
  color: #888888;
  font-weight: normal;
  display: block;
  margin-bottom: 0;
}

/* ================================
   Inputs (text, time, number)
   ================================ */
form input[type="text"],
form input[type="time"],
form input[type="number"] {
  width: 97%;
  border: none;
  border-bottom: 2px solid #F7B2F7;
  outline: none;
  font-size: 14px;              /* desktop/Android base */
  padding: 8px 5px;
  color: #333;
  background: transparent;
  border-radius: 0;
  background-clip: padding-box;
}

/* Same placeholder font-size everywhere */
form input::placeholder,
form textarea::placeholder {
  color: #888888;
  font-size: 14px;              /* desktop/Android base */
}

/* Time input subtle tweak */
form .time-field-group input[type="time"] {
  padding-top: 2px !important;
  padding-bottom: 6px;
}

/* ================================
   Textarea
   ================================ */
form textarea {
  width: 92%;
  height: 120px;
  border: 2px solid #F7B2F7;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  padding: 12px;
  color: #333;
  background: transparent;
  resize: none;
}

form textarea:focus {
  border: 2px solid #F7B2F7;
}

/* ================================
   Select (Category)
   - underline drawn by wrapper to avoid tap issues on iOS
   ================================ */

/* Wrapper draws the pink underline */
.select-row {
  position: relative;
  display: block;
}
.select-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: 2px solid #F7B2F7;
  pointer-events: none;
}

/* Base select look */
.form-select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;          /* desktop/Android base */
  padding: 8px 5px;
  color: #333;
  line-height: 1.2;
  border-radius: 0;
  background-clip: padding-box;
}

/* Placeholder-like style when the disabled first option is showing */
.form-select:invalid { color: #888888; }
.form-select.filled { color: #333333; }

/* Keep Mukta font on select + options */
.form-select,
.form-select option {
  font-family: 'Mukta', sans-serif !important;
}

/* Desktop/Android: custom arrow and appearance reset */
body:not(.ios-webview) .form-select {
  -webkit-appearance: none;
  appearance: none;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="pink"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 8px center;
  background-size: 16px;
  padding-right: 30px;
  height: 40px;
}

/* iOS WebView: restore native picker and remove custom arrow */
body.ios-webview .form-select {
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
  background: transparent !important;
  background-image: none !important;
  min-height: 44px;           /* comfortable tap target */
  line-height: 44px;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  height: 40px;
}

/* Safety: kill any pseudo-element underline on the <select> itself (use wrapper instead) */
body.ios-webview select.form-select::after {
  content: none !important;
}

/* ================================
   iOS WebView: unify font sizes to 16px to prevent zoom
   ================================ */
body.ios-webview input[type="text"],
body.ios-webview input[type="time"],
body.ios-webview input[type="number"],
body.ios-webview textarea,
body.ios-webview .form-select {
  font-size: 16px !important;
}
body.ios-webview input::placeholder,
body.ios-webview textarea::placeholder {
  font-size: 16px !important;
}

/* ================================
   Upload icon
   ================================ */
.upload-icon {
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: transform 0.15s ease-in-out;
}
.upload-icon.pressed { transform: scale(0.92); }

/* ================================
   Submit button (Plan)
   ================================ */
.create-post-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 20px;
}
.create-post-button {
  background: linear-gradient(to right, #F7B2F7, #F57FF5);
  color: white;
  font-size: 16px;
  font-weight: bold;
  width: 130px;
  height: 41px;
  border: none;
  border-radius: 25px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.create-post-button:active {
  transform: scale(0.96);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.create-post-button:hover { filter: brightness(1.1); }
html, body {
    height: 100%;
    font-family: sans-serif;
    background-color: white;
  }


  .chat-page .top-nav .event-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-decoration: underline;
}

  
  /* Header */
  .room-header {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    margin: 0;
    color: white;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

  }
  
  .room-header, .room-header * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Username + icon row */
  .room-user-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 13px;
    padding-left: 23px;
    padding-right: 23px; /* optional: balance spacing on the right */
    font-size: 25px;
  }

  body.ios-webview .room-user-top-row {

    padding-top: 63px !important;

  }

  .room-username {
    max-width: 50vw; /* Half of the screen width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Style the icon container, not the images */
  .room-user-icons {
    display: flex;
    gap: 10px;
  }
  
  /* Image should stay block for correct spacing */
  .icon-button img {
    width: 32px;
    height: 32px;
    display: block;
    cursor: pointer;
  }

  /* Drawer container */
  .header-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -6px 0 18px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 200ms ease;
    z-index: 1002; /* above header */
    display: flex;              /* make it a column so footer can pin bottom */
    flex-direction: column;
    padding: 16px;
  }

  /* Open state */
  .header-drawer.is-open {
    transform: translateX(0);
  }

  /* Overlay behind drawer */
  .header-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 1001;
  }
  .header-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Drawer nav styles */
  .header-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;

    /* allow content to take remaining space & scroll if long */
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0; /* important for flex overflow in WebKit */
  }

  .drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #222;
    background: #f8f8f8;
  }
  .header-drawer .drawer-item span {
    font-size: 14px;        /* ensure text shrinks even if globals exist */
    line-height: 1.25;
  }
  .drawer-item img {
    width: 22px; height: 22px; display: block;
  }
  .drawer-item:active {
    transform: translateY(1px);
  }

  /* Legal links pinned to the bottom (hidden by default to avoid desktop dupe) */
  .drawer-legal {
    display: none;
    margin-top: auto;
    padding: 10px 14px calc(env(safe-area-inset-bottom) + 12px);
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    background: #fff; /* match your drawer background */
  }
  .drawer-legal a {
    color: inherit;
    text-decoration: none;
  }
  .drawer-legal a:hover,
  .drawer-legal a:focus {
    text-decoration: underline;
  }

  /* Show legal links inside the drawer only for iOS WebView */
  body.ios-webview .drawer-legal {
    display: block;
  }

  /* Hide the site footer when in iOS WebView (since links live in the drawer) */
  body.ios-webview .site-footer.fixed-footer {
    display: none !important;
  }
  /* If you had body padding for the fixed footer, remove it on iOS WebView */
  body.ios-webview {
    padding-bottom: 0 !important;
  }

  /* Reduced motion friendly */
  @media (prefers-reduced-motion: reduce) {
    .header-drawer, .header-drawer-overlay {
      transition: none;
    }
  }




  /* Profile image + bio section */
  .room-user-info-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 16px;
    padding-left: 20px;
    flex-wrap: wrap;
  }
  
  .profile-img-room {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    cursor: default;
    padding: 4px;
    background: linear-gradient(to right, #ffe5ff, white);
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }

  .room-user-info-row-link,
  .room-user-info-row-link:visited,
  .room-user-info-row-link:hover,
  .room-user-info-row-link:active {
    color: inherit;
    text-decoration: none;
  }

  .room-user-text {
    flex: 1 1 auto;      /* expands with available space */
    min-width: 0;        /* allows ellipsis/clamp in flex */
    max-width: none;     /* override any earlier 300px cap */
  }
  
  .room-user-info-row-link .room-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.2;
  }

  .room-bio {
    font-size: 15px;
    max-width: clamp(200px, 42vw, 1520px); /* min 200px, scales with viewport, max 520px */
    margin: 0;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }


  .room-user-info-row-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .room-user-info-row-link * {
    text-decoration: none !important;
    color: inherit;
  }

  .header-drawer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #444;                 /* visible on white background */
    text-transform: uppercase;
    margin: 4px 2px 10px 2px;
  }

  /* Drawer title only in iOS WebView */
  body.ios-webview .header-drawer-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #666;
    text-transform: uppercase;
    margin: 4px 2px 10px 2px;
  }

  /* And your 130px offset when in iOS WebView */
  body.ios-webview .header-drawer { padding-top: 68px; }
  /* or, if you intended a wrapper element instead: */
  body.ios-webview .ios-webview { padding-top: 68px; }


    
  

    /* Room List */
  .room-list {
    margin-top: 167px;
    margin-bottom: 40px;
    background: white;
    padding: 20px 10px;
  }
  body.ios-webview .room-list {
    margin-top: 217px !important;
    margin-bottom: 40px;
    background: white;
    padding: 20px 10px;
  }

  /* Row container */
  .room-entry {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background-color 0.15s ease;
  }
  .room-entry:hover,
  .room-entry:active,
  .room-entry.room-entry-passed:hover,
  .room-entry.room-entry-passed:active {
    filter: brightness(0.98);
  }
  .room-entry-passed {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    color: white;
  }
  .room-entry-passed .room-name,
  .room-entry-passed .last-reply,
  .room-entry-passed .room-time {
    color: white;
  }

  /* Legacy class (no longer used for the whole row, safe to keep) */
  .room-entry-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .room-entry-link * {
    text-decoration: none !important;
  }

  /* Left: image area */
  .room-icon { flex: 0 0 auto; }
  .room-avatar-link { display: inline-block; } /* clickable image */
  .room-avatar-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    padding: 4px;
    margin-right: 10px;
    background: linear-gradient(to bottom right, #F7B2F7, #F57FF5);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  .room-avatar-passed {
    background: linear-gradient(to right, #ffe5ff, white);
  }
  .room-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    display: block;
  }
  .room-photo-placeholder {
    width: 65px;  /* match avatar size */
    height: 65px; /* match avatar size */
    border-radius: 16px;
    background: #eee;
    border: 2px dashed #ccc;
    margin-right: 12px;
    flex-shrink: 0;
  }

  /* Right: main clickable area (text + meta) */
  .room-entry-main-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0; /* enables ellipsis inside flex */
  }

  /* Text column */
  .room-info, .room-text {
    flex: 1 1 auto;   /* was: flex-grow: 1 */
    min-width: 0;     /* ✅ critical for ellipsis (Safari/Chrome) */
  }

  .room-name {
    font-weight: bold;
    font-size: 19px;
    margin: 0;
    color: #555;

    /* ✅ truncate with ... */
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Inline truncation for last reply */
  .room-last,
  .last-reply {
    font-size: 16px;
    color: #888;
    margin: 0;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    gap: 4px;
  }
  .last-reply-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
  }

  /* Meta (time + badge) */
  .room-time {
    font-size: 13px;
    font-weight: 500;
    color: #777;
  }
  .unread-badge {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  }
  .room-meta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-left: auto;
    padding-right: 4px;
    margin-top: -14px;
    gap: 4px;

    flex: 0 0 auto;  /* ✅ don’t shrink the meta; let the title ellipsize instead */
  }

  .room-entry-passed .unread-badge {
    background: white;
    color: #F57FF5;
  }
  .room-time-unread {
    color: #F57FF5 !important;
    font-weight: bold;
  }








  /* Inside Room */

.room-participants-icons{

    margin-left: auto; /* Pushes the participants icon to the right */

}



.message-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 100;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* New wrapper inside the form */
.chat-box {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding-right: 20px;
  padding-left: 20px;
}

body.ios-webview .chat-box{
  padding-bottom: 10px;
  padding-right: 27px;
  padding-left: 30px;
}

.message-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.message-input {
  flex-grow: 1;
  border: none;
  border-bottom: 2px solid #F7B2F7;
  outline: none;
  font-size: 15px;
  padding: 6px 4px;
  background: transparent;
  margin: 0;
  height: 36px;
  line-height: 1.2;
  box-sizing: border-box;
}

.message-input::placeholder {
  color: #aaa;
}

.button-switch-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.visually-hidden-file-input {
  position: absolute;
  left: -9999px;  /* off-screen */
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
}


.message-submit-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.message-submit-button.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.duck-send-icon,
.duck-image-icon {
  width: 90%;
  height: 90%;
  object-fit: contain;
}








  .chat-images {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  
  .chat-image {
    max-width: 250px;
    max-height: 250px;
    border-radius: 1rem;
    object-fit: cover;
    padding-bottom: 5px;
  }


  





/* Message Container */
.chat-messages {
  overflow-y: auto;
  padding: 70px 16px 30px 16px;  /* 上下 padding で隠れないように */
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /* ヘッダー固定60px、フォーム60px => 自動 */
  box-sizing: border-box;
}

body.ios-webview .chat-messages{
  padding-top: 120px;
}



  
  
  
  /* Each Message */
  .chat-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .chat-message.from-current-user {
    align-items: flex-end;
  }
  
  /* Chat Bubble */
  .chat-bubble {
    background: linear-gradient(to right, #F7B2F7, #F57FF5);
    padding: 8px 14px;
    border-radius: 18px;
    max-width: 70%;
    color: white;
    word-wrap: break-word;
    white-space: normal;           /* ✅ Wrap normally, no extra height */
    overflow-wrap: break-word;
    display: inline-block;         /* ✅ Shrink to fit content */
    line-height: 1.4;
  }
  
  
  .from-current-user .chat-bubble {
    border-bottom-right-radius: 0;
  }
  
  /* Message Text */
  .chat-text {
    margin: 0;
  }

  .white-link {
    color: white;
    text-decoration: underline;
  }
  



  .chat-message:not(.from-current-user) .chat-bubble {
    background: linear-gradient(to right, #fbeaff, #f4d8f7);
    color: #4b3b4e; /* soft mauve-gray text */
  }
  
  .chat-message:not(.from-current-user) .chat-bubble .chat-text {
    color: #4b3b4e;
  }



  .image-polaroid-wrapper {
    width: 180px;
    padding: 8px;
    border-radius: 12px;
    margin: 8px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    position: relative;
  }
  
  .image-polaroid-wrapper img.polaroid-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }
  
  .chat-message.from-current-user .image-polaroid-wrapper {
    margin-left: auto;
  }
  
  .chat-message:not(.from-current-user) .image-polaroid-wrapper {
    margin-right: auto;
  }
  
  /* 🎨 Background colors */
  .pink-polaroid {
    background: linear-gradient(to bottom, #F57FF5, #F7B2F7);
  }
  
  .gray-polaroid {
    background: linear-gradient(to bottom, #fbeaff, #f4d8f7);
  }

  

  .chat-polaroid-wrapper {
    width: 180px;
    height: 240px; /* taller than wide */
    background: white;
    padding: 0;
    padding-bottom: 40px;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
  }
  
  /* Colors */
  .polaroid-sender {
    background: linear-gradient(to bottom, #F57FF5, #F7B2F7);
  }
  
  .polaroid-receiver {
    background: linear-gradient(to bottom, #fbeaff, #f4d8f7);
  }
  
  /* Image inside */
  .polaroid-photo {
    width: 90%;
    aspect-ratio: 1 / 1;   /* ✅ Makes it perfectly square */
    object-fit: cover;
    display: block;
    border-radius: 0;  /* sharp corners */
    box-shadow: none;
  }
  



  
  /* Sender Info */
  .chat-sender {
    display: flex;
    align-items: center;
    gap: 6px;
    color : #333;
  }

  .chat-message.not-current-user {
    margin-bottom: 9px;
  }
  
  
  .chat-user-image-wrapper {
    padding: 1px;
    border-radius: 50%;
    background: linear-gradient(to right, #fbeaff, #f4d8f7);
    display: inline-block;
  }
  
  /* ✅ 画像自体を丸く、枠と分離 */
  .chat-user-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background-color: white;
  }
  
  /* ✅ 時間表示のスタイル */
  .chat-timestamp {
    font-size: 11px;
    font-weight: normal;
    margin-left: 2px;
    color: #777;

    display: inline-block;
    margin-top: -10px; /* ← 数字はお好みで */
    vertical-align: middle;
    font-size: 0.8rem; /* オプション：サイズ調整 */
  }


  .no-messages {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 1em;
  }
  



  
    /* full screen image */
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.92);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 16px;
      box-sizing: border-box;
    }
    
    .lightbox img.lightbox-image {
      width: 90vw;
      height: auto;
      max-height: 100vh;
      border-radius: 8px;
      object-fit: contain;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
    
    /* 🖥️ Desktop adjustment */
    @media (min-width: 768px) {
      .lightbox img.lightbox-image {
        max-width: 70vw;
        width: auto;
      }
    }
    
    
    
    .lightbox.hidden {
      display: none;
    }
    
    .lightbox-close {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      font-weight: bold;
      z-index: 10000;
    }
    


    .lightbox-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: white;
      font-size: 42px;
      padding: 4px 12px;
      cursor: pointer;
      z-index: 10001;
      border-radius: 0;
      transition: transform 0.2s;
    
      outline: none;                                 /* ✅ removes blue border */
      -webkit-tap-highlight-color: transparent;      /* ✅ disables iOS/Android tap effect */
      user-select: none;                             /* ✅ prevents accidental text selection */
    }
    
    .lightbox-arrow:hover {
      transform: translateY(-50%) scale(1.15);
    }
    
    .lightbox-arrow.left {
      left: 16px;
    }
    
    .lightbox-arrow.right {
      right: 16px;
    }
    
    
    

    .lightbox-controls {
      position: absolute;
      top: 20px;
      right: 20px;
      display: flex;
      align-items: center;          /* ✅ Vertical alignment */
      gap: 12px;
      z-index: 10001;
    }

    body.ios-webview .lightbox-controls {

      padding-top: 63px !important;

    }
    
    .lightbox-close,
    .lightbox-download {
      display: flex;                /* ✅ Ensure same layout */
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      text-decoration: none;
    }
    
    .lightbox-icon {
      width: 28px;
      height: 28px;
      object-fit: contain;
      display: block;
      transition: transform 0.2s ease;
    }
    
    .lightbox-close:hover .lightbox-icon,
    .lightbox-download:hover .lightbox-icon {
      transform: scale(1.2);
    }

    .chat-system-message {
      text-align: center;
      color: #888;
      font-style: italic;
      margin: 10px 0;
    }
.invitation-page {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

.invitation-container {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px; /* ✅ space between duck/eggs and text */
}

.mail-image {
  width: 95px;
  height: 95px;
  object-fit: contain;
}

.invitation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.invitation-item {
  display: flex;
}

.invitation-text {
  text-align: center;
  max-width: 350px;
}

.invitation-text h3 {
  margin-bottom: 10px;
}

.invitation-text p {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
}




/* Copy Button */
.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Copy Icon */
.copy-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.2s ease-in-out;
}

/* Click Effect: Button Push */
.copy-button:active .copy-icon {
  animation: bounce 1.2s ease; /* ✅ longer time (1.2s) */
}

@keyframes bounce {
  0%   { transform: translateY(0); }
  10%  { transform: translateY(-6px); }
  20%  { transform: translateY(0); }
  30%  { transform: translateY(-4px); }
  40%  { transform: translateY(0); }
  50%  { transform: translateY(-2px); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}






/* signup */



/* Page Background */
.sign-up-page {
    background: linear-gradient(to bottom, #F7B2F7, #F57FF5);
    min-height: 100vh; /* Ensure it fills viewport height */
    display: flex;
    flex-direction: column;
  }

/* Sign-up Container */
.Sign_up {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    padding-bottom: 60px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Duck Logo */
.duck-logo-wrapper {
    text-align: center;
    margin-top: 150px;
    margin-bottom: 20px;
}

.duck-logo {
    width: 110px;
    height: auto;
}

.duck-logo-text {
    color: white;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    margin-top: 0;
  }


  .invitation-toggle-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  #invitation-form {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.3s ease;
  }
  
  #invitation-form.opened {
    height: auto;
    opacity: 1;
    overflow: visible;
  }
  
  
  

/* Form Labels (including DOB*) */
.Sign_up p {
    color: white;
    margin-bottom: 0;
}

/* Input Fields */
.Sign_up input[type="text"],
.Sign_up input[type="email"],
.Sign_up input[type="password"],
.Sign_up input[type="date"] {
    width: 95%;
    max-width: 100%;
    border: none;
    border-bottom: 2px solid transparent;
    outline: none;
    font-size: 16px;
    padding: 8px 5px;
    color: #fff;
    background: transparent;
    margin-bottom: 35px;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
}

/* Textarea Styling (Bio) */
.Sign_up textarea {
    width: 95%;
    max-width: 100%;
    outline: none;
    font-size: 16px;
    padding: 8px 5px;
    color: white;
    background: transparent;
    margin-bottom: 0;
    border: 1.7px solid white;
    border-radius: 12px;
  }



/* Focus Underline for Inputs/Textareas */
.Sign_up input:focus {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
}


.Sign_up textarea:focus {
    border: 2px solid white;
}



/* Placeholder Styling (Inputs + Textarea) */
.Sign_up input::placeholder,
.Sign_up textarea::placeholder {
    color: white;
    font-size: 14px;
}

/* Date Field Styling */
.Sign_up input[type="date"] {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 30px 8px 5px;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10h5v5H7z'/%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .89-2 2v16c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM5 21V8h14v13H5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px 20px;
  
    border: none;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
    margin-bottom: 35px;
  }
  


  .Sign_up input[type="date"]:focus {
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
  }
  

/* Hide native calendar icon (black) */
.Sign_up input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
  }
  

  .Sign_up input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 9999s ease-out, color 9999s ease-out;
  }
  
  .Sign_up input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: white !important;
  }
  

/* Bio Word Counter */
.bio-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* ✅ aligns children like <p> to the right */
  }

.bio-container p {
    width: 100%;           /* ✅ force full line width */
    text-align: right;     /* ✅ aligns text to the right side */  
    margin-top: 0;
    font-size: 13px;
    color: white;
}


/* Sign-up Button Container */
.sign-up-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}

/* Sign-up Button */
.Sign_up .sign-up-container .sign-up-button {
    background: linear-gradient(to right, #fcf0ff, #ffffff);
    color: #F57FF5;
    font-size: 16px;
    font-weight: bold;
    width: 130px;
    height: 41px;
    border-radius: 25px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

/* Button Click Effect */
.sign-up-button:active {
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Button Hover Effect */
.sign-up-button:hover {
    filter: brightness(1.1);
}



/* Gender Select Wrapper (for spacing) */
.gender-select-wrapper {
    width: 100%;
    margin-bottom: 35px;
  }
  
  /* Gender Select Styling */
  .gender-select {
    width: 95%;
    max-width: 100%;
    font-size: 16px;
    padding: 8px 5px;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  /* Placeholder (Prompt) Styling */
  .gender-select:invalid {
    color: white;
  }
  
  /* Focus Effect */
  .gender-select:focus {
    outline: none;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, #fbeaff, #f4d8f7) 1;
  }



  /* iOS: use native menulist look; we’ll open custom sheet via overlay */
body.ios-webview .form-select {
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
  background: transparent !important;
  background-image: none !important;
}

/* draw the pink underline via the wrapper, not the select */
.select-row { position: relative; }
.select-row::after {
  content:""; position:absolute; left:0; right:0; bottom:0;
  border-bottom:2px solid #F7B2F7; pointer-events:none;
}

/* --- Reusable bottom sheet --- */
.sheet-backdrop {
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  z-index: 11000; display:none;
}
.sheet {
  position:fixed; left:0; right:0; bottom:0; background:#fff;
  border-top-left-radius:14px; border-top-right-radius:14px;
  max-height:60vh; overflow:auto; padding:10px; z-index: 11001;
  transform: translateY(100%); transition: transform .2s ease;
}
.sheet.open { transform: translateY(0); }
.sheet-title { font-weight:700; font-size:16px; text-align:center; margin:6px 0 10px; }
.sheet-list { list-style:none; padding:0; margin:0; }
.sheet-item { padding:12px 14px; font-size:16px; border-top:1px solid #f2f2f2; cursor:pointer; }
.sheet-item:first-child { border-top:none; }
.sheet-cancel { margin-top:8px; width:100%; padding:12px; font-weight:700; border-radius:10px; border:0; background:#f2f2f2; }

.hidden { display:none !important; }

/* Safety: let popovers/sheets escape containers */
body.ios-webview .sign-up-page,
body.ios-webview .Sign_up,
body.ios-webview .enter_detail { overflow: visible !important; }

/* Neutralize transforms/filters that can break taps on iOS */
body.ios-webview .gender-select-wrapper,
body.ios-webview .gender-select-wrapper * {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* iOS WebView: make gender text white */
body.ios-webview select.gender-select {
  color: rgba(255,255,255,0.65) !important;       /* placeholder look before selection */
  -webkit-text-fill-color: rgba(255,255,255,0.65) !important;
  background: transparent !important;
}

/* After a value is chosen (your JS adds .filled) */
body.ios-webview select.gender-select.filled {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}




/* Hide by default; show only in iOS WebView (you already toggle this class) */
.ios-only { display: none; }
body.ios-webview .ios-only { display: block; }

/* Back nav container */
.ios-back-nav {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 12px;
  z-index: 10000;
}

/* Click area */
.ios-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

/* Reuse right-arrow asset, flip to look left */
.ios-back-icon {
  width: 22px;
  height: 22px;
}

/* Give the page a bit of top padding so the arrow doesn't overlap content */
body.ios-webview .sign-up-page { 
  padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
}

  





/* login */

.form-error {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    background: rgba(255, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
  }

  .form-notice{
    color: rgb(59, 59, 59);
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    background: rgba(0, 200, 0, 0.2); /* light green tint */
    padding: 8px 12px;
    border-radius: 8px;
  }


  .mock-link {
    color: white;
    text-decoration: underline;
    font-size: 15px;
  }
  
  .mock-link:hover {
    color: white;
  }




  /* Hide this block by default */
.invite-opener { display: none; }

/* Only show inside your iOS WebView (you already add this class to <body>) */
body.ios-webview .invite-opener { 
  display: block;
  margin: 24px auto 0;
  width: 90%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.invite-title {
  text-align: left;          /* force left */
  color: #fff;
  font-size: 15px;
  margin: 0 0 10px 2px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.invite-opener-form { display: grid; gap: 10px; }

.invite-input {
  width: 100%;
  background: #fff;
  border: 2px solid #F7B2F7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.invite-input:focus {
  border-color: #F57FF5;
  box-shadow: 0 0 0 3px rgba(245,127,245,0.2);
}

.invite-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.invite-opener .invite-open-btn {
  background: linear-gradient(to right, #fcf0ff, #ffffff);
  color: #F57FF5;
  font-size: 16px;
  font-weight: bold;
  width: 40%;                /* requested width */
  height: 41px;
  border-radius: 25px;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0;                 /* match your sign-up button */
  margin-left: auto;
}

/* Click + hover effects (same as .sign-up-button) */
.invite-opener .invite-open-btn:active {
  transform: scale(0.96);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.invite-opener .invite-open-btn:hover {
  filter: brightness(1.1);
}

.invite-error {
  color: #ffe0e0;
  background: rgba(255, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

  
/* iOS app only: match invite-opener glass background on the login form */
body.ios-webview .login-card {
  width: 90%;
  margin: 24px auto 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  overflow: visible; /* keep modals/popovers safe */
}

/* (optional) ensure the button row doesn't hug the edges inside the card */
body.ios-webview .login-card .sign-up-container {
  display: flex;
  justify-content: center; /* or space-between / flex-end if you prefer */
}





/* edit profile */

.edit-profile{
    width: 90%;
    max-width: 350px;
    margin: 0 auto; /* ✅ Center horizontally */
    margin-top: 150px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ Ensures all elements are aligned */
}

.edit-profile p{
    color: #888888;
    margin-bottom: 10px;
}



form {
    width: 100%;
    max-width: 100%;
}


/* Center the profile image */
.profile-image-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Profile Picture Styling */
.profile-img {
    width: 110px; /* Adjust size */
    height: 110px;
    border-radius: 50%; /* ✅ Makes it circular */
    object-fit: cover;
    cursor: pointer; /* ✅ Makes it clickable */

    /* ✅ Gradient Border Effect */
    padding: 4px; /* ✅ Creates space for the border effect */
    background: linear-gradient(to right, #F7B2F7, #F57FF5); /* ✅ Gradient border */
    display: inline-block; /* ✅ Ensures correct rendering */

    margin-bottom: 45px;

    /* ✅ Soft pink drop shadow */
    box-shadow: 0 4px 8px rgba(245, 127, 245, 0.5); 

    /* ✅ Smooth scaling and shadow transition */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* ✅ Click Effect */
.profile-img:active {
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(245, 127, 245, 0.4);
}






/* Bio section */
.bio-container {
    display: flex;
    justify-content: space-between; /* Spaces bio text and counter */
    align-items: center;
    width: 100%; /* Ensures it spans full width */
    margin-bottom: 10px;
}

.bio-container textarea {
    flex-grow: 1; /* Allows textarea to expand */
    width: 100%;
}

.bio-container-word-count p{
    font-size: 13px;
    color: #888888;
    white-space: nowrap; /* Prevents word wrap */
    text-align:right;
    margin-top: 0;
}

.submit-container {
    display: flex;
    justify-content: flex-end; /* ✅ Aligns button to the right */
    width: 100%;
    margin-top: 20px; /* Adds spacing from previous elements */
}

/* Ensures the submit button is full width */
form input[type="submit"] {
    background: linear-gradient(to right, #F7B2F7, #F57FF5); /* ✅ Matches gradient */
    color: white;
    font-size: 16px;
    font-weight: bold;
    width: 130px; /* ✅ Fixed width */
    height: 41px; /* ✅ Fixed height */
    border: none;
    border-radius: 25px; /* ✅ Rounded edges */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* ✅ Soft shadow */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center; /* ✅ Centers text inside button */
    align-items: center; /* ✅ Centers text vertically */
}

/* Button press effect */
form input[type="submit"]:active {
    transform: scale(0.96);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Hover Effect */
form input[type="submit"]:hover {
    filter: brightness(1.1); /* ✅ Slightly brightens on hover */
}



.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  color: rgb(144, 144, 144);
  z-index: 1000;
}

.fixed-footer a {
  color: rgb(144, 144, 144);
  text-decoration: none;
  margin: 0 5px;
}

.fixed-footer a:hover {
  text-decoration: underline;
}




/* user profile */
.user-show{
    width: 90%;
    max-width: 390px;
    margin: 90px auto 0 auto; /* center horizontally, top spacing */
}

body.ios-webview .user-show{
  margin-top: 140px !important;
}

.user-show-photo{
        width: 90%;
        max-width: 350px;
        margin: 0 auto; /* Center horizontally */
        margin-top: 2%;
    
        justify-content: center;
        align-items: center;

}

.user-invited-by{
    margin-top: 10px;
    margin-left: 20px;
    color: #888888;
    text-align: left;   
    padding: 0 10px; 
  }

  .inviter-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
  }
  
  .invited-by-item {
    display: flex;
    align-items: center; /* ✅ 画像と名前を縦方向中央揃え */
    margin-bottom: 8px;
  }
  
  .inviter-name a {
    font-size: 16px;
    font-weight: 500;
    color: #837585;         /* ✅ グレー系に統一 */
    text-decoration: none;  /* ✅ 下線を削除 */
  }
  

  .event-container2 {
    background: linear-gradient(to bottom, #F57FF5, #F7B2F7);
    border-radius: 0;
    padding: 10px;
    width: 90%;
    max-width: 350px;
    aspect-ratio: 1 / 1.194; /* Automatically calculates height */
    margin: 20px auto;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-bio {
    margin-top: 10px;
    margin-left: 20px;
    color: #888888;
    text-align: left;        /* Ensures it's left-aligned */
    padding: 0 10px;         /* Matches the padding of .event-container */
  }

  .user-actual-bio {
    margin-top: 0;
  }


/* Signature name styling */
.signature-name {
  font-size: 25px;
  color: #ffffff;
  font-weight: 500;
  font-family: "Pacifico", cursive;
  text-align: center;
  padding-top: 10px;
}

  







 /* Terms and conditions */
 .modal.hidden { display: none; }

 .modal {
   position: fixed; top: 0; left: 0; width: 100%; height: 100%;
   background-color: rgba(0, 0, 0, 0.6); z-index: 1000;
   display: flex; justify-content: center; align-items: center;
 }

 .modal-content {
   background: white; padding: 20px; border-radius: 8px;
   max-width: 600px; max-height: 80%; overflow-y: auto;
   position: relative;
 }

 .close {
   position: absolute; top: 10px; right: 20px; font-size: 24px; cursor: pointer;
 }

.terms-label {
  color: white;
}
.terms-link {
  color: white;
  text-decoration: underline;
}

/* Hide default checkbox */
.custom-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create custom checkbox box */
.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  position: relative;
}

.custom-checkmark {
  height: 14px;
  width: 14px;
  border: 2px solid white;
  background-color: transparent;
  display: inline-block;
  border-radius: 4px;
  position: relative;
}

/* When the checkbox is checked, show custom checkmark */
.custom-checkbox:checked + .custom-checkmark::after {
  content: "";
  position: absolute;
  left: 3.3px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-label {
  font-size: 13px;
  line-height: 1.4;
}


.user-attended-events{
  margin-left: 30px;
  margin-bottom: 50px;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */


html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100%;
  /* ✅ allow page scroll */
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: white;
}

/* Optional: when a modal is open, add one of these classes to <body> */
body.body-lock,
body.modal-open {
  overflow: hidden;
  height: 100%;
}


body, button, h1, h2, h3, h4, h5, h6, p, a, span, input, textarea, li, select, option {
    font-family: 'Mukta', sans-serif !important;
}



.turbo-progress-bar {
  background: linear-gradient(90deg, #F7B2F7, #F57FF5, #ffe5ff, white) !important;
  height: 4px !important;
}

a, button, img {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* Prevents callout on long press (optional) */
}

a img {
  -webkit-tap-highlight-color: transparent;
}


body.ios-webview .site-footer.fixed-footer {
  display: none !important;
}




/* ===========================
   Shared buttons
   =========================== */
.btn-secondary,
.btn-primary {
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  touch-action: manipulation;
}
.btn-secondary { background: #f2f2f2; color: #111; }
.btn-primary   { background: #F57FF5; color: #fff; }

/* ===========================
   POST Report modal
   =========================== */
.report-modal.hidden { display: none; }
.report-modal {
  position: fixed; inset: 0; z-index: 9999;
  padding: 16px;                    /* breathing room on small screens */
}
.report-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.report-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  max-height: 85vh;                 /* prevent overflow off-screen */
  overflow: auto;                   /* scroll inside card if needed */
  background: #fff; color: #222;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  padding: 16px 16px 12px;
}
.report-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.report-header h3 { margin: 0; font-size: 18px; }
.report-close { background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; }

.report-reasons {
  display: grid; gap: 8px; border: 0; margin: 8px 0; padding: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .report-reasons { grid-template-columns: 1fr 1fr; }
}
.report-reasons label {
  display: flex; gap: 8px; align-items: center; font-size: 14px;
  line-height: 1.3;
}
.report-reasons input { flex: none; }

.report-other.hidden { display: none; }
.report-other textarea {
  width: 100%;
  border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 14px;
}
.report-textarea {
  width: 92%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
  display: block;
  margin: 0 auto;
}
.report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ===========================
   "More" menu (dropdown)
   =========================== */
.more-menu-button {
  background: transparent; border: 0; padding: 6px; cursor: pointer;
  margin-bottom: -35px; margin-right: 8px;
}
.more-menu {
  position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  min-width: 160px; padding: 6px; z-index: 30;
}
.more-menu.hidden { display: none; }
.more-menu .menu-item {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  background: none; border: 0; cursor: pointer; font-size: 14px;
}
.more-menu .menu-item:hover { background: #f7f7f7; }

/* ===========================
   USER Report modal (reasons)
   =========================== */
.user-report-modal.hidden { display: none; }
.user-report-modal {
  position: fixed; inset: 0; z-index: 9999;
  padding: 16px;
}
.user-report-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.user-report-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 16px 16px 12px;
}
.user-report-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.user-report-header h3 { margin: 0; font-size: 18px; }
.user-report-close { background: transparent; border: 0; font-size: 22px; cursor: pointer; }

.user-report-reasons {
  display: grid; gap: 8px; border: 0; margin: 8px 0; padding: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .user-report-reasons { grid-template-columns: 1fr 1fr; }
}
.user-report-reasons label { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 1.3; }
.user-report-reasons input { flex: none; }

.user-report-other.hidden { display: none; }
.user-report-other textarea {
  width: 92%; max-width: 100%; box-sizing: border-box;
  border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 14px; display: block; margin: 0 auto;
}
.user-report-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }

/* ===========================
   USER Report success modal
   =========================== */
.user-report-success-modal.hidden { display: none; }
.user-report-success-modal {
  position: fixed; inset: 0; z-index: 9999;
  padding: 16px;
}
.user-report-success-modal .user-report-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.user-report-success-modal .user-report-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(92vw, 420px);
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 16px 16px 12px;
}






/* ===== Block success modal (clean, centered) ===== */
.user-report-card.is-centered.has-icon {
  text-align: center;
  position: relative;
  width: min(92vw, 440px);
  padding: 24px 20px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.user-report-card.is-centered.has-icon .user-report-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
}

.user-report-card.is-centered.has-icon .user-report-close:hover {
  opacity: 1;
}

.user-report-card .modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #f5f5f7;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) inset;
}

.user-report-card .modal-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.user-report-card .modal-title {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 0;
}

.user-report-card .modal-subtitle {
  margin: 0 auto 6px;
  max-width: 45ch;
  line-height: 1.5;
  color: #333;
  font-size: 13px;
  margin-top: 0;
}

.user-report-card .modal-manage {
  margin: 6px 0 16px;
}

.user-report-card .modal-manage a{
  color: #F57FF5;
}

.user-report-actions.centered { justify-content: center; }

/* optional: give the OK button a friendlier pill look here only */
.user-report-success-modal .btn-primary {
  background: #F57FF5; /* keep your brand color */
  color: #fff;
  border: 0;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}





/* === participants modal hardening (keep at END of application.css) === */
.user-report-modal,
.user-report-success-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  padding: 16px;
}

.user-report-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}

.user-report-card {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  padding: 16px 16px 12px;
}

/* centered variant (as in show.html.erb) */
.user-report-card.is-centered.has-icon {
  text-align: center;
  width: min(92vw, 440px);
  padding: 24px 20px 16px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

