/* reset & page background */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: sans-serif;
  background-color: black;
  overscroll-behavior-y: none;
}

@keyframes jump {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-10px); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

.jump {
  animation: jump 0.3s ease;
}

/* TradeSeat Staple Colors */
.background-tradeseat-black {
  background-color: black;
}
.background-tradeseat-dark {
  background-color: #251127;
}
/**/

/** TEST AREA **/
.graph-svg {
  width: 100%;
  height: 100%;
}

.line-path {
  fill: none;
  stroke: url(#greenGradient);
  stroke-width: 3;
  stroke-linecap: round;
}

.fill-area {
  fill: url(#greenFill);
  opacity: 0.3;
}
/***************/

/* standard error box */
#error-box {
  display: none;               /* start hidden */
  position: fixed;             /* take out of document flow */
  top: 120px;                   /* adjust as needed */
  left: 50%;                   /* center horizontally */
  transform: translateX(-50%);
  background-color: red;       /* red background */
  color: white;                /* white text */
  border-radius: 16px;          /* rounded corners */
  height: 90px;                /* fixed height */
  min-width: 270px;             /* initial width */
  padding: 0 10px;             /* horizontal padding for extra text */
  line-height: 30px;           /* vertically center text */
  white-space: nowrap;         /* prevent wrapping */
  z-index: 9999;               /* on top of everything */
  font-size: 12px;
}

#info-box {
  display: none;               /* start hidden */
  position: fixed;             /* take out of document flow */
  top: 120px;                   /* adjust as needed */
  left: 50%;                   /* center horizontally */
  transform: translateX(-50%);
  background-color: red;       /* red background */
  color: white;                /* white text */
  border-radius: 16px;          /* rounded corners */
  height: 30px;                /* fixed height */
  min-width: 90px;             /* initial width */
  padding: 0 10px;             /* horizontal padding for extra text */
  line-height: 30px;           /* vertically center text */
  white-space: nowrap;         /* prevent wrapping */
  z-index: 9999;               /* on top of everything */
  font-size: 12px;
}

/* general styles */
.h3-header {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.transup {
  text-transform: uppercase;
}

.zmin999 {z-index: -999;}
.zmin1   {z-index: -1;}
.z0      {z-index: 0;}

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

.vertical {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.vertical-center {
  display: flex;
  align-items: center;   /* vertical center */
}

.horizontal {
  display: flex;
}

.horizontal-center {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.reset {
  all: unset;
}

.text-center {
  text-align: center;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hide {
  display: none;
}

.align-text-right {
  text-align: right;
}

.scrollable {
  overflow-y: auto;
}

.no-scrollbar {
  scrollbar-width: none; /* Firefox */
}

.no-scrollbar::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

.relpos {
  position: relative;
}

.abspos {
  position: absolute;
}

.c-pt {
  cursor: pointer;
}

.box {
  box-sizing: border-box;
}

.glow {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.top30   {top: 30px;}
.top10   {top: 10px;}
.left10  {left: 10px;}
.right30 {right: 30px;}
.right10 {right: 10px;}

.white {background: white;}

.white-gradient-thin {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(224,224,224,0.1));
}

.white-gradient {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
}

.purple-white-gradient {
  background: linear-gradient(90deg, #6E1F91, #e0e0e0);
}

.black {background: black;}
.black-303030 {background: #303030;}
.black-242424 {background: #242424;}
.black-181818 {background: #181818;}
.black-151515 {background: #151515;}
.black-101010 {background: #101010;}
.gray  {background-color: #232323;}
.gray-dark {background: #171717;}
.gray-494949 {background: #494949;}
.gray-323232 {background: #323232;}
.gray-373737 {background: #373737;}
.gray-505050 {background: #424242;}

.gray-gradient {
  background: linear-gradient(135deg, #505050, #101010);
}

.green-lime  {background: #32CD32;}

.blue-gradient {
  background: linear-gradient(135deg, #0B338F, #071D52);
}

.blue-gradient-reverse {
  background: linear-gradient(135deg, #071D52, #0B338F);
}

.purple-7B07A8-05 {background: rgba(123, 7, 168, 0.8);}

.purple-gradient {
  background: linear-gradient(135deg, #a033ff, #6e00ff);
}

.purple-gradient-reverse {
  background: linear-gradient(135deg, #6e00ff, #a033ff);
}

.purple-gradient-type-1 {
  background: linear-gradient(135deg, #3e078a, #2e095c);
}

.purple-gradient-type-1-reverse {
  background: linear-gradient(135deg, #2e095c, #3e078a);
}

.green-gradient {
  background: linear-gradient(135deg, #2B662C, #348235);
}

.purple-gradient-top-purple-black {
  background: linear-gradient(to top, #2b113f, #000000);
}

.purple-gradient-swift {
  background: linear-gradient(135deg, #3F234A, #170620);
}

.red-gradient-80 {
  background: linear-gradient(135deg, #FF0000, #BA3A3A);
  opacity: 0.5; 
}

.border-box {
  box-sizing: border-box;
}

.border-none {
  border: none;
}

.border {
  border: 2px solid black;
}

.bb-white-F0F0F0 {
  border-bottom: 1px solid #f0f0f0;
}

.border-purple {
  border: 1px solid #a033ff;
}

.border-purple-CF50D5 {
  border: 1px solid #cf50d5;
}

.border-red {
  border: 1px solid red;
}

.border-pink {
  border: 1px solid pink;
}

.border-white {
  border: 1px solid white;
}

.bwr1px {
  border-right: 1px solid white;
}

.border-black {
  border: 1px solid black;
}

.bb-black-202020 {
  border-bottom: 1px solid #202020;
}

.border-green-lime {
  border: 1px solid #32CD32;
}

.border-gray {
  border: 1px solid gray;
}

.border-gray-323232-right-3px {
  border-right: 3px solid #323232;
}

.bb-gray-404040 {
  border-bottom: 1px solid #404040;
}

.top10 {
  top: 10px;
}

.left10 {
  left: 10px;
}

.width-full {
  width: 100%;
}

.w1_7 { width: 14.28%}
.w1_6 { width: 16.667%}
.w1_3 { width: 33.33%}
.w1_4 { width: 25%}
.w1_2 { width: 50%}

.width-full-min40 {
  width: calc(100% - 40px);
}

.width-full-min20 {
  width: calc(100% - 20px);
}

.width95 {width: 95%;}
.width90 {width: 90%;}
.width85 {width: 85%;}
.width80 {width: 80%;}
.width75 {width: 75%;}
.width70 {width: 70%;}
.width60 {width: 60%;}
.width55 {width: 55%;}
.width50 {width: 50%;}
.width45 {width: 45%;}
.width40 {width: 40%;}
.width30 {width: 30%;}
.width25 {width: 25%;}
.width20 {width: 20%;}
.width15 {width: 15%;}
.width10 {width: 10%;}
.width5 {width: 5%;}

.w700px {width: 700px;}
.w500px {width: 500px;}
.w350px {width: 350px;}
.w300px {width: 300px;}
.w260px {width: 260px;}
.w250px {width: 250px;}
.w200px {width: 200px;}
.w150px {width: 150px;}
.w100px {width: 100px;}
.w70px  {width: 70px;}
.w60px  {width: 60px;}
.w50px  {width: 50px;}
.w40px  {width: 40px;}
.w30px  {width: 30px;}
.w20px  {width: 20px;}
.w15px  {width: 15px;}
.w10px  {width: 10px;}
.w5px  {width: 5px;}
.w2px  {width: 2px;}

.width400px {width: 400px;}
.width200px {width: 200px;}

.height-full {
  height: 100%;
}

.h1_3 { height: 33.33% }
.h1_4 { height: 25% }
.h1_2 { height: 50% }

.height-full-min20 {
  height: calc(100% - 20px);
}

.height90_dusty {height: calc(90% - 350px);} /* takes into account the dusty (300px) and the title margin (50px)*/
.height90-50px  {height: calc(90% - 50px);}
.height90-30px  {height: calc(90% - 30px);}

.height95 {height: 95%;}
.height90 {height: 90%;}
.height85 {height: 85%;}
.height80 {height: 80%;}
.height70 {height: 70%;}
.height60 {height: 60%;}
.height50 {height: 50%;}
.height40 {height: 40%;}
.height30 {height: 30%;}
.height20 {height: 20%;}
.height15 {height: 15%;}
.height10 {height: 10%;}
.height5  {height: 5%;}

.h950px {height: 950px;}
.h900px {height: 900px;}
.h800px {height: 800px;}
.h700px {height: 700px;}
.h620px {height: 650px;}
.h600px {height: 600px;}
.h550px {height: 550px;}
.h500px {height: 500px;}
.h450px {height: 450px;}
.h420px {height: 420px;}
.h400px {height: 400px;}
.h390px {height: 390px;}
.h350px {height: 350px;}
.h300px {height: 300px;}
.h280px {height: 280px;}
.h250px {height: 250px;}
.h220px {height: 220px;}
.h200px {height: 200px;}
.h150px  {height: 150px;}
.h130px  {height: 130px;}
.h120px  {height: 120px;}
.h100px  {height: 100px;}
.h85px  {height: 85px;}
.h80px  {height: 80px;}
.h70px  {height: 70px;}
.h65px  {height: 65px;}
.h60px  {height: 60px;}
.h50px  {height: 50px;}
.h40px  {height: 40px;}
.h30px  {height: 30px;}
.h20px  {height: 20px;}
.h15px  {height: 15px;}
.h14px  {height: 14px;}
.h10px  {height: 10px;}
.h5px  {height: 5px;}

.wfm400 {width: calc(100% - 400px);}
.wfm200 {width: calc(100% - 200px);}
.wfm100 {width: calc(100% - 100px);}
.wfm40 {width: calc(100% - 40px);}
.wfm20 {width: calc(100% - 20px);}
.wfm10 {width: calc(100% - 10px);}
.wfm5 {width: calc(100% - 5px);}

.hfm400 {height: calc(100% - 400px);}
.hfm200 {height: calc(100% - 200px);}
.hfm100 {height: calc(100% - 100px);}
.hfm40 {height: calc(100% - 40px);}
.hfm20 {height: calc(100% - 20px);}
.hfm10 {height: calc(100% - 10px);}
.hfm5 {height: calc(100% - 5px);}

.l-h50px  {line-height: 50px;}

.underline {
  text-decoration: underline;
}

.text-gray {
  color: gray;
}

.text-gray-525252 {
  color: #525252;
}

.text-gray-373737 {
  color: #373737;
}

.text-gray-323232 {
  color: #323232;
}

.text-gray-282828 {
  color: #282828;
}

.text-gray-111111 {
  color: #111111;
}

.text-white {
  color: white;
}

.text-white-9C9C9C {
  color: #9C9C9C;
}

.text-white-868686 {
  color: #868686;
}

.text-white-DCDCDC {
  color: #DCDCDC; 
}

.text-red {
  color: red;
}

.text-black {
  color: black;
}

.text-gold {
  color: #ffd700; 
}

.text-purple {color: #a033ff;}

.text-purple-gradient {
  background: linear-gradient(135deg, #a033ff, #6e00ff);
  -webkit-background-clip: text; /* for Safari & older Chrome */
  background-clip: text;         /* standard */
  color: transparent;
}

.text-green-lime {
  color: #32CD32;
}

.font86 {font-size: 86px;}
.font64 {font-size: 64px;}
.font42 {font-size: 42px;}
.font36 {font-size: 36px;}
.font32 {font-size: 32px;}
.font28 {font-size: 28px;}
.font24 {font-size: 24px;}
.font20 {font-size: 20px;}
.font18 {font-size: 18px;}
.font16 {font-size: 16px;}
.font14 {font-size: 14px;}
.font12 {font-size: 12px;}
.font10 {font-size: 10px;}
.font8  {font-size: 8px;}

.text-bold {
  font-weight: bold;
}

.corner-radius5 {
  border-radius: 5px;
}

.corner-radius8 {
  border-radius: 8px;
}

.corner-radius16 {
  border-radius: 16px;
}

.corner-radius32-top {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

.corner-radius32-bottom {
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.corner-radius32 {
  border-radius: 32px;
}

.corner-radiusMax {
  border-radius: 999px;
}

.bold {
  font-weight: bold;
}

.margin-50 {margin: 50px;}
.margin-40 {margin: 40px;}
.margin-30 {margin: 30px;}
.margin-20 {margin: 20px;}
.margin-12 {margin: 12px;}
.margin-10 {margin: 10px;}
.margin-5 {margin: 5px;}

.margin-none {margin: 0px;}

.mt90 {margin-top: 90px;}
.mt70 {margin-top: 70px;}
.mt50 {margin-top: 50px;}
.mt30 {margin-top: 30px;}
.mt20 {margin-top: 20px;}
.mt10 {margin-top: 10px;}
.mt5 {margin-top: 5px;}

.margin-left-30 {margin-left: 30px;}

.ml50 {margin-left: 50px;}
.ml20 {margin-left: 20px;}
.mb200 {margin-bottom: 200px;}
.mb100 {margin-bottom: 100px;}
.mb70 {margin-bottom: 70px;}
.mb50 {margin-bottom: 50px;}
.mb30 {margin-bottom: 30px;}
.mb20 {margin-bottom: 20px;}
.mb12 {margin-bottom: 12px;}
.mb10 {margin-bottom: 10px;}
.mb5 {margin-bottom: 5px;}

.pdl40 {padding-left: 40px;}
.pdl30 {padding-left: 30px;}
.pdl20 {padding-left: 20px;}
.pdl10 {padding-left: 10px;}

.pdr40 {padding-right: 40px;}
.pdr30 {padding-right: 30px;}
.pdr20 {padding-right: 20px;}
.pdr10 {padding-right: 10px;}

.padding12 {padding: 8px;}
.padding8  {padding: 8px;}

.scale-image {
  object-fit: cover;
  object-position: center;
}

.invert {
  filter: invert(1);
}

.hideoverflow {
  overflow: hidden;
}

.fw1200 {
  font-weight: 1200;
}

.fw800 {
  font-weight: 800;
}

.fw600 {
  font-weight: 600;

}
.fw580 {
  font-weight: 580;

}
.fw550 {
  font-weight: 550;
}

.fw500 {
  font-weight: 500;
}

.fw450 {
  font-weight: 450;
}

.fw400 {
  font-weight: 400;
}

/* icons */
.icon-white {
  /* turns black → white */
  filter: invert(1) sepia(1) saturate(0) brightness(2);
}
/**/

/* arrows */
.arrow-purple-gradient {
  background: linear-gradient(135deg, #a033ff, #6e00ff);
}

.arrow-left {
  clip-path: polygon(100% 0%, 0% 50%, 100% 100%);
}

.arrow-right {
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}
/**/

/* buttons */
.general-button-active {
  background-color: white;
  color: black;
  height: 40px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.general-button-inactive {
  background-color: #9C9C9C;
  color: #101010;
  height: 40px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;

}
.general-button-40x160-active {
  background-color: white;
  color: black;
  height: 40px;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.general-button-40x160-inactive {
  background-color: #9C9C9C;
  color: #101010;
  height: 40px;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}


.delete-button {
  background-color: red;
  color: white;
  height: 40px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.button-green-14 {
  background-color: #35BB40;
  border: 1px solid #299231;
  color: white;
  height: 30px;
  width: 130px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.button-green-14:hover {
  background-color: #3BCF47;  
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.button-green-14:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.button-gray-14 {
  background-color: #A8A8A8;
  border: 1px solid #8D8D8D;
  color: white;
  height: 30px;
  width: 130px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.button-gray-14:hover {
  background-color: #C7C7C7;  
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.button-gray-14:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.add-template-button {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #a033ff, #6e00ff);
  border: 1px solid #888; /* Gray border */
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 14px;
  color: white;
  font-weight: bold;
  height: 30px;
  width: 155px;
}
.add-template-button .divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background-color: #888;
  margin: 0 8px;
}
.add-template-button .icon {
  width: 16px;
  height: 16px;
}
.add-template-button:hover {
  background-color: #bbb;
}

.button-edit {
 height: 30px;
 width: 50px;
}

.glass-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-family: sans-serif;
  color: white;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;

  /* gray glossy gradient */
  background: linear-gradient(
    180deg,
    rgba(220, 220, 220, 0.2) 0%,  /* light gray top */
    rgba(100, 100, 100, 0.2) 100% /* dark gray bottom */
  );

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  box-shadow: inset 0 1px rgba(255,255,255,0.4), 0 2px 6px rgba(0,0,0,0.4);

  position: relative;
  overflow: hidden;
}
/**/

/* button */
.press-button {
    background-color: linear-gradient(to bottom, #4CAF50, #2d7030) ;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px #3A0F4D; /* bottom shadow */
    transition: all 0.1s ease;
}

.press-button:active {
    transform: translateY(4px); /* pushes button down */
    box-shadow: 0 0 #3A0F4D;    /* remove shadow when pressed */
}
/**/

/* fonts */
.font-arial {
  font-family: 'Arial Narrow';
}

.font-mono {
  font-family: monospace;
}

.font-inter {
  font-family: 'Inter';
  letter-spacing: -0.5px;
}

.font-dm-sans {
  font-family: 'DM Sans';
}

.font-outfit {
  font-family: 'Outfit';
}
/**/

/* containers & more*/
.frame-25x25 {
  height: 25px;
  width: 25px;
}

.frame-45x55 {
  height: 45px;
  width: 55px;
}

.frame-15x120 {
  height: 15px;
  width: 120px;
}

.frame-80x200 {
  height: 80px;
  width: 200px;
}

.frame-160x400 {
  height: 160px;
  width: 400px;
}

.frame-60x320 {
  height: 60px;
  width: 320px;
}

.frame-50x250 {
  height: 50px;
  width: 250px;
}

.frame-98x98rel {
  height: 98%;
  width: 98%;
}

.inset5 { /*works only with absolute positioning */
  top: 5px;
  right: 5px;
  bottom: 5px;
  left: 5px;
}

.inset10 { /*works only with absolute positioning */
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
}
/**/

/* lines */
.vertical-line {
  width: 2px;                /* thickness */
  background-color: #fff;    /* pure white */
  border-radius: 1px;        /* rounded edges for a softer, modern feel */
  box-shadow: 0 0 8px rgba(255,255,255,0.6); /* subtle glow */
}
/**/

/* text styling */
.box-title {
  color: black;
  background-color: white;
  height: 30px;
  width: 60px;
  border-radius: 16px;
}

.box-text-25-90 {
  color: black;
  background-color: white;
  height: 25px;
  width: 90px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 12px;
}

.title {
  font-size: 18px;
  line-height: 18px;
  color: #DCDCDC;
  padding-left: 20px;
  box-sizing: border-box;
}

.subtitle {

}

.regular {
  font-size: 16px;
  line-height: 16px;
  color: #DCDCDC;
  padding-left: 20px;
  box-sizing: border-box;
} 

.small {
  font-size: 12px;
  line-height: 12px;
  color: #DCDCDC;
  padding-left: 20px;
  box-sizing: border-box;
}

.regular-left {
  font-size: 16px;
  line-height: 16px;
  color: #DCDCDC;
  box-sizing: border-box;
}
/**/

/* phone-page-loading */
.progress-container {
  width: 150px;
  height: 20px;
  background: #444; /* background for contrast */
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: white;
  width: 0%;
  animation: fillBar 0.5s linear forwards;
}

@keyframes fillBar {
  from { width: 0%; }
  to { width: 100%; }
}
/**/

/* tilted screen */
:root {
  --accent: #a66bff; /* your purple headline color */
}

/* Base panel styles (size set via inline CSS vars) */
.panel {
  width: min(calc(var(--w, 420) * 1px), 90vw);
  aspect-ratio: calc(var(--aspect-w, 420) / var(--aspect-h, 520)); /* unitless ratio */
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.15),
    0 0 calc(20px * var(--glow-intensity, 0)) rgba(166,107,255, var(--glow-intensity, 0));
  backdrop-filter: blur(8px);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg) rotateZ(-4deg);
  position: relative;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

/* Hover/press pop */
@media (hover: hover) {
  .panel:hover {
    transform: rotateX(14deg) rotateY(-20deg) rotateZ(-4deg) scale(1.03);
    box-shadow:
      0 50px 90px rgba(0,0,0,.65),
      0 0 30px var(--accent);
  }
}
@media (hover: none) {
  .panel:active {
    transform: rotateX(14deg) rotateY(-20deg) rotateZ(-4deg) scale(1.03);
    box-shadow:
      0 50px 90px rgba(0,0,0,.65),
      0 0 30px var(--accent);
  }
}

/* Purple glow overlay */
.panel::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(70% 50% at 20% 10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(
      120deg,
      rgba(166,107,255, calc(0.2 + 0.6 * var(--glow-intensity, 0))),
      rgba(0,0,0,0) 40%
    );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate3d(var(--rx,0px), var(--ry,0px), 30px);
  transition: transform 120ms linear;
}

/* Screen image inside the panel */
.screen {
  position: absolute;
  inset: var(--bezel, 10px);
  border-radius: calc(var(--bezel, 10px) + 4px);
  width: calc(100% - 2*var(--bezel, 10px));
  height: calc(100% - 2*var(--bezel, 10px));
  object-fit: cover;
  object-position: center;
  transform: translateZ(20px);
  filter: saturate(1.04) contrast(1.05) brightness(.95);
  transition: inset 0.3s ease, border-radius 0.3s ease;
}

/* Responsive bezel shrink on small screens */
@media (max-width: 480px) {
  .screen {
    inset: 5px;
    border-radius: calc(5px + 4px);
    width: calc(100% - 10px);
    height: calc(100% - 10px);
  }
}

.clip-frame{
  position: relative;
  width: 100%;
  height: 520px;                 /* <- set the visible area you want */
  display: grid; place-items: center;
  perspective: 1200px;           /* keep the 3D effect on the wrapper */
  overflow: clip;                /* or 'hidden' if you need wider support */
  border-radius: 28px;           /* optional: rounded clipping */
  isolation: isolate;            /* helps with Safari stacking/overflow quirks */
  contain: paint;                /* perf + reliable clipping */
}

/* If you want a gradient fade instead of a hard cut, use a mask: */
.clip-frame.fade-bottom{
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
          mask-image: linear-gradient(#000 80%, transparent);
}
/**/

/* images */
.profile-image {
  height: 400px;
  width: auto;
  display: block; /* optional: removes extra space below image */
  max-width: 100%; /* optional: prevents overflow on small screens */
}

.phone-profile-image {
  height: auto;
  width: 400px;
  display: block; /* optional: removes extra space below image */
  max-width: 100%; /* optional: prevents overflow on small screens */
}

.phone-restaurant-intro-image {
  height: auto;
  width: 90%;
  display: block; /* optional: removes extra space below image */
  max-width: 100%; /* optional: prevents overflow on small screens */
}
/**/

/* fixed header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: flex;
  background-color: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  z-index: 10;
}
header.scrolled {
  background-color: rgba(25,0,25,0.6) !important;
  transition: background-color 0.3s ease;
}

.phone-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  background-color: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  z-index: 10;
}
.phone-header.scrolled {
  background-color: rgba(25,0,25,0.6) !important;
  transition: background-color 0.3s ease;
}

/* header sections */
.left-section,
.right-section {
  display: flex;
  align-items: center;
}

.left-section {
  justify-content: flex-start;
  padding-left: 20px;
  width: 20%;
}

.right-section {
  justify-content: center;
  gap: 120px;       /* spacing between links */
  padding: 0 20px;
  width: 80%;
}

/* logo */
.phone-logo {
  height: 60px;
  width: auto;
}

.logo {
  height: 80px;
  width: auto;
}

.logo-120x120 {
  height: 120px;
  width: auto;
}

/* nav links */
.menu-item-short {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  height: 30px;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-short:hover {
  color: #000;
  border-radius: 12px;
  background-color: rgb(256,256,256);
}

.menu-item-long {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  height: 30px;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-item-long:hover {
  color: #000;
  border-radius: 12px;
  background-color: rgb(256,256,256);
}

.headline {
  padding-left: 50px;
  color: white;
  font-size: 46px;
}

.subheadline {
  color: black;
  font-size: 24px;
  font-weight: bold;
}

.text-normal {
  padding: 50px;
  padding-top: 0px;
  color: gray;
  font-size: 20px;
  line-height: 1.7;
}

.line {
  width: 100%;
  height: 1px;
  background-color: white;
}

.horizontal-wrapper {
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.vertical-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.button-purple-gradient-small {
  width: 120px;
  height: 30px;
  background: linear-gradient(135deg, #a033ff, #6e00ff);
  border: 1px solid #a033ff;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  right: 60px;
}

/* full‐screen semi-opaque backdrop */
#overlay-restaurant-login {
  display: none;                /* toggle this to “flex” when you need it */
  position: fixed;
  top: 0; left: 0;
  width: 100%;  height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 100;                 /* on top of everything else */
}

/* the rounded gray box */
.login-modal {
  background: rgba(0,0,0,0.8);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* logo at the top */
.login-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.phone-login-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

/* reuse your login-field but add rounding */
.login-field {
  all: unset;
  width: 260px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
  font-size: 16px;
}
.login-field::placeholder {
  color: #888;
}

/* a simple button under the fields */
.login-button {
  all: unset;
  width: 260px;
  height: 44px;
  background-color: #fff;
  color: #000;
  text-align: center;
  line-height: 44px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
.login-button:hover {
  background-color: #eee;
}

.error-message {
  display: none;
  align-items: center;
  justify-content: center;
  color: red;
}

.spinner {
  margin: 1rem auto;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
}

.textarea-field {
  /* preserve default display & wrapping */
  all: unset;
  background-color: #DCDCDC;
  padding: 0 12px;
  border: 1px solid #555;
  border-radius: 8px;
  min-height: 300px;
  width: 350px;
  box-sizing: border-box;
}

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

/* custom 1300×800 box */
.custom-box {
  width: 1300px;
  height: 800px;
  background-color: rgba(0, 0, 0, 0.6); /*previous color: #161F27*/
  border-radius: 20px;
  border: 1px solid #FFF; /*cool color: #FF5733*/
  margin: 0 auto; /* center horizontally */
  margin-top: 120px; /* 100px is the header height, 20px is the spacing*/
}

.custom-box-purple {
  width: 1300px;
  height: 800px;
  background: rgba(127,0,255,0.7);
  border-radius: 20px;
  border: 1px solid #FFF; /*cool color: #FF5733*/
  margin: 0 auto; /* center horizontally */
  margin-top: 20px; /* 100px is the header height, 20px is the spacing*/
  display: flex;
  align-items: center;
  flex-direction: column;
}

.login-field {
  all: unset;           /* remove all browser default styling */
  width: 240px;
  height: 40px;
  border: 1px solid #ccc; /* optional: add a subtle border */
  padding: 5px 10px;      /* optional: some breathing space inside */
  box-sizing: border-box; /* makes width include padding */
  background-color: white;
  color: black:
}

/* phone-page-restaurants-overlay-login-forgot-password */
#phone-page-restaurants-overlay-login-forgot-password-email::placeholder {
  color: black;
}
/**/

/* back arrow for subpages*/
.arrow-back {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 60px;
  font-size: 32px;
  margin: 30px;
  cursor:pointer;
}
.arrow-back:hover {
  color: black;
  background-color: white;
}

.phone-arrow-back {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  width: 60px;
  font-size: 32px;
  cursor:pointer;
}
.phone-arrow-back:hover {
  color: black;
  background-color: white;
}

/* fixed header for subpages*/
.fixed-header {
  background-color: black;
  width: 100%;
  height: 100px;
  overflow: auto;
  position: relative;
}

/* Restaurants page */
#page-restaurants {
  display: none;
}

.restaurant-username {
  width: 120px;
  height: 30px;
  border: 1px solid rgb(84,238,17);
  background-color: rgba(84,238,17,0.4); 
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  right: 60px;
}

.gradient-button {
  padding: 14px 32px;
  font-size: 18px;
  color: white;
  background: linear-gradient(135deg, #a033ff, #6e00ff);
  border: 1px solid #a033ff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(160, 51, 255, 0.3);
}

.gradient-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.submenu-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 20px;
}

.submenu-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border-radius: 100%;
  transition: transform 0.3s ease;
  cursor: pointer;
  z-index: 1;
}
.submenu-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: -1;
}
.submenu-section:hover {
  transform: translateY(-10px);
}
.submenu-section:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.submenu-icon {
  width: 25px;
  height: 25px;
  filter: invert(1); /* makes most icons white */
}

.submenu-text {
  color: white;
  font-size: 16px;
  text-align: center;
}

.submenu-line {
  width: 160px;
  height: 5px;
  background-color: white;
  border-radius: 2px;
}

/* Overlay Confirm Logout */
.logout-text {
  color: white;
}

.overlay-button-logout {
  all: unset;
  width: 260px;
  height: 44px;
  background-color: red;
  color: white;
  text-align: center;
  line-height: 44px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.fullscreen {
  width: 100%;
  height: 800px;
  background-color: gray;
}

/* Fullwindow Box - similar to custom-box*/
.fullwindow-box {
  width: 100%;
  height: 800px;
  background-color: #000;
}

.fullwindow-box-1600 {
  width: 100%;
  height: 1600px;
  background-color: #000;
}

/* Create Reservations Subpage */
#subpage-create-reservations {
  display: none;
}
#subpage-create-reservations .normal-text {
  color: black;
  padding-left: 50px;
}

#subpage-create-reservations .fullwindow-box {
  background: linear-gradient(135deg, #a033ff, #6e00ff);
  height: 900px;
}

#create-reservations-templates-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 50px;
  margin-top: 100px;
}

#create-reservations-templates-container {
  border-radius: 16px;
  border: 1px solid white;
  height: 200px;
  width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#create-reservations-schedule-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#create-reservations-schedule {
  border-radius: 16px;
  border: 1px solid white;
  height: 200px;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#create-reservations-reservation {
  border-radius: 16px;
  border: 1px solid white;
  height: 200px;
  width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.normal-text-templates {
  color: white;
  font-size: 16px;
}

.overlay {
  display: none;                /* toggle this to “flex” when you need it */
  position: fixed;
  top: 0; left: 0;
  width: 100%;  height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 100;                 /* on top of everything else */
}

/* the rounded gray box */
.overlay-modal {
  background: rgba(0,0,0,0.6);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* reuse your login-field but add rounding */
.overlay-field {
  all: unset;
  width: 260px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
  font-size: 16px;
}
.overlay-field::placeholder {
  color: #888;
}

.overlay-select {
  all: unset;
  width: 260px;
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D'12'%20height%3D'8'%20viewBox%3D'0%200%2012%208'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M1%201l5%206%205-6'%20stroke%3D'%23000'%20stroke-width%3D'2'%20fill%3D'none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  box-sizing: border-box; 
  /* center text */
  text-align: center;
  text-align-last: center;
  -moz-text-align-last: center;
  -webkit-text-align-last: center;

  /* vertical centering */
  line-height: 40px;
}
.overlay-select[multiple] {
  height: auto;        /* let size=5 drive the height */
  min-height: 200px;   /* or whatever you need for your 5 items */
  overflow-y: auto;    /* scroll if there are more options */
}

/* a simple button under the fields */
.overlay-button {
  all: unset;
  width: 260px;
  height: 44px;
  background-color: #fff;
  color: #000;
  text-align: center;
  line-height: 44px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
.overlay-button:hover {
  background-color: #eee;
}

.overlay-section {
  all: unset;
  width: 260px;
  height: 40px;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  background-color: #fff;
  color: #000;
  font-size: 16px;
}

/* Schedule Creation */
#subpage-schedule-creation {
  display: none;
}

.template-icon {
  width: 25px;
  height: 25px;
  filter: invert(1); /* makes most icons white */
}
.template-icon:hover {
  filter: none; 
}

.template-counter {
  height: 20px;
  width: 40px;
  border-radius: 16px;
  border: none;
  text-align: center;
  background-color: #424242;
  color: white;
}

/* Manage Reservations Subpage */
#subpage-manage-reservations {
  display: none;
}
#subpage-manage-reservations .normal-text {
  color: gray;
  padding-left: 50px;
}

.dusty {
  width: 100%;
  height: 300px; /* adjust as needed */
  position: relative;
  overflow: hidden;

  /* base background: purple at bottom → black at top */
  background: linear-gradient(
    to top,
    #6e00ff 0%,
    #000000 100%
  );
}

.dusty::before {
  content: "";
  position: absolute;
  inset: 0;             /* shorthand for top/right/bottom/left = 0 */
  background: inherit;  /* pick up the same purple→black gradient */
  filter: url(#noise);
  opacity: 0.4;         /* dust density */

  /* fade out the dust as it climbs up, revealing pure black */
  -webkit-mask-image: linear-gradient(
    to top,
    #fff 60%,    /* fully opaque mask down low (dust shows) */
    transparent 100%  /* fully transparent mask up top (no dust) */
  );
  mask-image: linear-gradient(
    to top,
    #fff 60%,
    transparent 100%
  );
}

.glassy-tinted {
    background: rgba(0, 0, 0, 0.3); /* tint: black, semi-transparent */
    border-radius: 15px;
    padding: 2rem;
    color: white;
    backdrop-filter: blur(10px); /* the magic blur */
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    border: 1px solid rgba(255, 255, 255, 0.2); /* subtle border */
}

.glassy {
  /* semi-opaque gray */
  background: rgba(128, 128, 128, 0.5);
  /* blur whatever’s behind this element */
  backdrop-filter: blur(10px);
  /* subtle border to define the shape */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* padding, sizing… */
}

.glassy-green-dark {
  /* vibrant, lively green with transparency */
  background: rgba(0, 255, 128, 0.3);  /* neon-mint green */

  /* blur whatever’s behind this element */
  backdrop-filter: blur(12px);

  /* subtle white border to define the shape */
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* subtle glowing effect */
  box-shadow: 0 4px 20px rgba(0, 255, 128, 0.2);

  /* soft rounded corners */
  border-radius: 12px;
}

.glassy-dark {
  /* semi-opaque gray */
  background: rgba(64, 64, 64, 0.5);
  /* blur whatever’s behind this element */
  backdrop-filter: blur(10px);
  /* subtle border to define the shape */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* padding, sizing… */
}

/* Statistics */
#subpage-statistics {
  display: none;
}
#subpage-statistics .normal-text {
  color: gray;
  padding-left: 50px;
}

/* Transaction History */
#subpage-transaction-history {
  display: none;
}
#subpage-transaction-history .normal-text {
  color: gray;
  padding-left: 50px;
}

/* Details */
#subpage-details {
  display: none;
}

.detail {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin: 20px;
  height: 230px;
  width: 500px;
  transition: padding-left 0.5s ease;
}
.detail:hover {
  padding-left: 100px;
}

/* Users page */
#page-users {
  display: none;
}

#page-users-subpage-overview-container-search {
  transition: width 0.3s ease, height 0.3s ease;
}

#page-users-subpage-overview-container-search:hover {
  height: 70px;
  width: 350px;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Help page */
#page-help {
  display: none;
}

#page-help .custom-box {
  width: 1300px;
  height: 800px;
  background-color: #000; /*previous color: #161F27*/
  border-radius: 20px;
  border: 1px solid #FFF; /*cool color: #FF5733*/
  margin: 0 auto; /* center horizontally */
  margin-top: 20px; /* 100px is the header height, 20px is the spacing*/
  display: flex;
  align-items: center;
  gap: 0px;

}

/* Terms of Service page */
#page-terms-of-service {
  display: none;
}

#page-terms-of-service .fullwindow-box {
  background-color: #373A3E;
}

#page-terms-of-service .fixed-header {
  position: relative;
}

#page-terms-of-service .fixed-header .language-selector {
  position: absolute;
  top: 30px;    /* same as arrow-back’s margin-top */
  right: 60px;  /* same as arrow-back’s margin-left */
}

.language-selector {
  height: 45px;
  width: 90px;
  display: flex;
}
.language-selector .left-side {
  color: white;
  font-size: 12px;
  border: 1px solid #FFF;
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.language-selector .right-side {
  color: black;
  background-color: white;
  font-size: 12px;
  border: 1px solid #FFF;
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shop page */
#page-shop {
  display: none;
}

/* Footer */
#footer {
  height: 350px;
  background-color: #000;
  color: #fff;
  padding: 40px 0;
}

/* copyright text, centered */
.footer-copy {
  margin-top: 150px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* flex container for the 4 columns */
#footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* each column */
.footer-section {
  flex: 1;
  /* optional: give them some breathing room */
  padding: 0 10px;
}

/* column heading */
.footer-section h3 {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

/* list reset */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* list items */
.footer-section ul li {
  margin-bottom: 12px;
}

/* links */
.footer-section ul li a {
  color: #eee;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color .2s;
}

/* hover state */
.footer-section ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

