/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwoT9nA2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCm3FwrK3iLTcvnUwQT9g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcvsYwYL8g.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/UcCo3FwrK3iLTcviYwY.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 1. Box sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
  padding: 0;
}

/* 3. Improve text rendering */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 4. Media elements */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 5. Form elements */
input, button, textarea, select {
  font: inherit;
}

/* 6. Avoid text overflow */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 7. Root stacking context */
#root, #__next {
  isolation: isolate;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 1.5vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1vw, 1.25rem); }


:root {
     --main-text-color: #110c46; 
     --sec-text-color: #2e0181;;
     --main-bg-color: #230163;
     --sec-bg-color: #2d0080;;
     --box-bg-color: #fff;
}



body {
    font-family: 'Inter', sans-serif;
    background: #2d0080;
    display: block;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0.5rem;
    background: linear-gradient(
        180deg,
        #6612A7,
        #7B2DCF,
        #6144D5,
        #4859DB,
        #0395EC
        );
        position: relative;
        overflow-x: hidden;
 }
 
body::before {
    position: fixed;
    top: 0;
    left: -200px;
    bottom: 0;
    margin: auto;
    display: block;
    content: "";
    width: 600px;
    height: 600px;
    border-radius: 100%;
    background: linear-gradient(
        180deg,
        #7b2dcf,
        #e86b27
    );
    z-index: 1;
    filter: blur(125px);
}
body::after{
    position: fixed;
    top: 0;
    right: -200px;
    bottom: 0;
    margin: auto;
    display: block;
    content: "";
    width: 600px;
    height: 600px;
    border-radius: 100%;
    background: linear-gradient(
        180deg,
        #7b2dcf,
        #de027f
    );
    z-index: 1;
    filter: blur(125px);
} 
.loading--screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    background: #fff;
    will-change: transform;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2)
}

.loading--screen .container {
    position: relative;
    z-index: 4;
    width: clamp(200px, 50vw, 400px);
    aspect-ratio: 1;
}

.loading--screen svg {
  width: 100%;
  height: 100%;
  display: block;
}
.loading--screen .mark--logo {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-flow: column wrap; 
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index:4;
}
.mark--logo .header svg {
    width: 40px;
    height: auto
}
.mark--logo .header path {
    fill: none;
}
.mark--logo .content {
    font-size: 0.7rem;
    margin-top: 1rem;
    color: #fff;
    width: clamp(200px, 50vw, 400px);
}
.orb {
    position: fixed;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    aspect-ratio: 1;
    width: clamp(350px, 70vmin, 800px);
    height: clamp(350px, 70vmin, 800px);
    border-radius: 50%;
    filter: blur(clamp(60px, 10vw, 140px));
}
.orb.left {
    left: -20vw;
    background: linear-gradient(180deg, #7b2dcf, #e86b27);
}

.orb.right {
    right: -20vw;
    background: linear-gradient(180deg, #7b2dcf, #de027f);
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #6612A7,
        #7B2DCF,
        #6144D5,
        #4859DB,
        #0395EC
    );
    opacity: 0;
    z-index:1
}

.wrapper {
  position: relative;
  width: min(92vw, 420px);
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  z-index: 2;
}

.ticket-shape {
  width: 100%;
  height: auto;
  display: block;
}

.ticket-content {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header {
    max-width: 100%;
    margin: 0 auto 0 0;
    padding: 0;
    text-align: left;
}

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

.title {
    font-size: 1.2rem;
    margin-top: 16px;
    font-weight: 800;
}

.info {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.col {
    text-align: left
}
.col.right {
    text-align: right;
}
.col .date {
    font-size: 0.60rem;
}

.bottom {
  text-align: center;
}

.name {
  font-weight: bold;
  font-size: 18px;
}
.qr {
  width: clamp(180px, 28vw, 140px);
  height: clamp(180px, 28vw, 140px);
  margin: 12px auto;
}

.btn-invite {
  display: block;
  width: clamp(180px, 28vw, 140px);
  background: #2196f3;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  margin: 28px auto;
  text-decoration: none;
  cursor: pointer;
}
.ticket-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  /* Menghilangkan padding default agar section bisa mengisi ruang sepenuhnya */
  padding: 0; 
}

.top-section {
  /* Mengambil porsi ruang sesuai posisi garis di SVG (360/760) */
  flex: 360; 
  padding: 32px 28px 0; /* Padding bawah 0 agar mepet ke garis */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bottom-section {
  /* Mengambil sisa porsi ruang (400/760) */
  flex: 400; 
  padding: 0 28px 32px; /* Padding atas 0 agar mepet ke garis */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Konten QR & Nama di tengah area bawah */
  text-align: center;
}

.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 6px;
}

.from {
  color: #1e88e5;
  font-weight: bold;
  text-align: left;
}
.to small,
.from small {
    font-size: 0.6rem;
    font-weight: normal;
    color: #616161;
}
.kode {
    color: #616161;
    font-size: 0.75rem;
}
.to {
  color: #ff5722;
  font-weight: bold;
  text-align: right;
}

.route-line {
    margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 24px);
  flex: 1;
}


.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.blue {
  background: #1e88e5;
}

.dot.orange {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #ff5722;
}

.train {
    background: #1e88e5;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 100%;
}
.train svg {
    width: 24px;
    height: 24px;
    margin: 5px auto;
    display: block;
}