<link
    href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap"
    rel="stylesheet"
>

* {
    box-sizing: border-box;
}


.register-title {
    text-align: center;
    margin-bottom: 30px;
}



.package-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 22px;
}

.package-title span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}



.token-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.token-label {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
}
#tokens {
    width: 120px !important;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}




html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}


nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.btn-login {
    background: #16a34a;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
}

.hero {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 60px;

    padding: 100px 60px 80px;

    max-width: 1800px;
    margin: 0 auto;
}


.hero-right {
    flex: 1;

    display: flex;

    justify-content: center;

    padding-top: 40px;
}

.hero-left {
    flex: 1;
    max-width: 760px;
}

.hero-left h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-left p {
    font-size: 20px;
    line-height: 1.7;
    color: #555;
}

.btn-primary {
    display: inline-block;
    margin-top: 30px;
    background: #16a34a;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
}


.register-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 60px;
}
.register-box {
    background: white;
    padding: 40px;
    width: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.register-box h2 {
    margin-bottom: 30px;
}

.register-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.packages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.package-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 2px solid #dcdcdc;
    border-radius: 12px;
    padding: 18px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    position: relative;
}

.package-card:hover {
    border-color: #16a34a;
    background: #f0fff4;
}

/* hide radio button */
.package-card input[type="radio"] {
    display: none;
}

/* selected state */
.package-card input[type="radio"]:checked + span {
    color: white;
}

.package-card:has(input[type="radio"]:checked) {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}





button {
    width: 100%;
    padding: 15px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    background: #15803d;
}


#result {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
    color: red;
}



main {
    flex: 1;
}

footer {
    margin-top: auto;
    background: white;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.login-link a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.pricing-info {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.pricing-info a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}

.pricing-info a:hover {
    text-decoration: underline;
}

/* =====================================
   PRICING PAGE
===================================== */

.pricing-page {
    padding: 60px 40px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header h1 {
    font-size: 56px;
    margin-bottom: 25px;
}

.pricing-header p {
    max-width: 1100px;
    margin: auto;
    font-size: 20px;
    line-height: 1.8;
    color: #555;
}



/* =====================================
   NEW PRICING LAYOUT
===================================== */

.pricing-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 50px;
}

/* =====================================
   TOKEN SYSTEM CARD
===================================== */

.pricing-explanation {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}


.pricing-explanation h3 {
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pricing-explanation p,
.pricing-explanation li {
    font-size: 20px;
    line-height: 1.9;
    color: #444;
}

.pricing-explanation ul {
    padding-left: 30px;
}

/* =====================================
   CALCULATOR CARD
===================================== */

.calculator-card {
    position: sticky;
    top: 110px;

    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}


.calculator-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.device-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.device-select {
    flex: 1;

    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.device-count {
    width: 90px !important;

    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.calculator-card label {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.calculator-card input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.add-device-btn {
    width: 100%;
    margin-top: 10px;
    background: #1d3557;
}

.add-device-btn:hover {
    background: #16324f;
}

.add-device-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.reset-btn {
    width: 100%;
    margin-top: 15px;
    background: #666;
}

.reset-btn:hover {
    background: #444;
}



/* =====================================
   TOKEN TABLE
===================================== */

.token-table-wrapper {
    margin-top: 35px;
    margin-bottom: 45px;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    background: white;
}

.token-table th {
    background: #1d3557;
    color: white;
    padding: 18px;
    text-align: left;
    font-size: 17px;
}

.token-table td {
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    color: #444;
}

.token-table tr:last-child td {
    border-bottom: none;
}

.token-table tr:nth-child(even) {
    background: #f9fafb;
}


.calculator-field {
    margin-top: 25px;
}

.calculator-field input {
    margin-top: 10px;
}

#calculate-btn {
    margin-top: 25px;
}

#reset-btn {
    margin-top: 18px;
}

/* =====================================
   CALCULATOR RESULT BOX
===================================== */

.calculator-result {
    margin-top: 25px;
    background: #f4f6f9;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.calculator-result p {
    margin: 18px 0;
    font-size: 22px;
    line-height: 1.6;
    color: #222;
}

#result-ram strong,
#result-server strong,
#result-tokens strong {
    color: #16a34a;
    font-weight: 700;
}

#result-server {
    font-size: 28px;
}

#result-tokens {
    font-size: 34px;
    margin-top: 25px;
}

#result-runtime {
    color: #555;
}


/* =====================================
   MATCH CARD TITLES
===================================== */

.pricing-explanation h2,
.calculator-card h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* =====================================
   PRACTICAL EXAMPLES
===================================== */

.practical-examples {
    margin-top: 60px;
}

.practical-examples h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.example-box {
    background: #f7f9fc;
    border-left: 6px solid #16a34a;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
}

.example-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #1d3557;
}



.example-summary {
    margin-top: 35px;
    font-size: 20px;
    line-height: 1.8;
}

/* =====================================
   HEADER LOGO
===================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}


.logo span {
    font-family: 'Montserrat', sans-serif;

    font-size: 36px;
    font-weight: 700;

    letter-spacing: -1px;
    color: #12376b;

    line-height: 1.05;

    text-shadow:
        0 1px 0 rgba(255,255,255,0.45),
        0 2px 4px rgba(0,0,0,0.05);
}



.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}


/* =====================================
   HERO IMAGE SLIDESHOW
===================================== */

.hero-slider {
    position: relative;

    width: 100%;
    max-width: 820px;

    aspect-ratio: 16 / 9;

    border-radius: 24px;

    overflow: hidden;

    background: transparent;

    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}


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

.slide {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.logo {
    text-decoration: none;
}

.booking-page {
    padding: 30px;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    margin-top: 20px;
}

.slot {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot.available {
    background: white;
}

.slot.selected {
    background: yellow;
}

.slot.mine {
    background: green;
    color: white;
}

.slot.other {
    background: gray;
    color: white;
    cursor: not-allowed;
}

.slot.past {
    background: red;
    color: white;
}

.booking-info {
    font-size: 18px;
    margin-bottom: 20px;
}


.rack-page {
    padding: 30px;
}

.rack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.rack-header h2{
   
    font-size:42px;
    font-weight:700;
    margin:0;
    
}

.rack-stats {

    background: #ffffff;

    padding: 15px 20px;

    border-radius: 10px;

    min-width: 220px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    text-align: left;

}

.rack-stats div {

    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-weight: 600;

}

.rack-stats div:last-child {

    margin-bottom: 0;

}

.rack-stats span {

    color: #16a34a;

    font-weight: 700;

}

.rack-container {
    display: flex;
    gap: 30px;
}

.calendar-panel {
    width: 50%;
}

.calendar-panel h3{

    text-align:center;
    font-size:28px;
    margin-bottom:25px;
}


.timeslot-panel {
    width: 50%;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 5px;
    margin-top: 15px;
}

.day-cell {
    border: 1px solid #ddd;
    min-height: 70px;
    padding: 10px;
    cursor: pointer;
    background: white;
}

.day-cell:hover {
    background: #f0f0f0;
}


#selectedDate{

    text-align:center;
    font-size:22px;
    margin-bottom:25px;
}

#timeSlots{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-auto-flow:column;
    grid-template-rows:repeat(6,70px);
    gap:10px;
}

.slot {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
}

.available {
    background: white;
}

.selected {
    background: yellow;
}

.mine {
    background: green;
    color: white;
}

.other {
    background: gray;
    color: white;
}

.past {
    background: red;
    color: white;
}

#bookButton {
    margin-top: 20px;
}

#dateList{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px;
}

.date-card{
    background:white;
    border:1px solid #ddd;
    border-radius:10px;
    height:90px;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    box-sizing:border-box;
}

.date-card .month{
    font-size:14px;
    color:#777;
}

.date-card .day{
    font-size:28px;
}

.date-card.active{

    background:white !important;

    border:solid #ffc107 !important;

    color:#000 !important;
}

.date-card.booked{
    background:#0d6efd;
    border-color:transparent;
}

.date-card.booked.active{

    background:#0d6efd !important;
    border-color:#ffc107 !important;
}

.date-card.booked .month{
    color:white !important;
}

.date-card.booked .day{
    color:white !important;
}

.date-card.disabled{
    background:#e5e5e5;
    color:#999;
    cursor:not-allowed;
}

.calendar-days{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px;
    margin-bottom:10px;
    font-weight:bold;
    text-align:center;
}

.calendar-days div{
    padding:8px;
}

/* =========================
   PNET MODAL
========================= */

.modal-overlay{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.45);

    display:none;

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

    z-index:9999;
}


.modal-header{

    background:#12376b;

    color:white;

    padding:18px 25px;

    font-size:22px;

    font-weight:700;

    text-align:center;
}



.modal-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:16px;

    padding:24px;

    border-top:1px solid #eee;
}

.btn-cancel{

    background:#6c757d;

    color:white;

    border:none;

    min-width:160px;

    height:54px;

    border-radius:12px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;
}

.btn-confirm{

    background:#16a34a;

    color:white;

    border:none;

    min-width:200px;

    height:54px;

    border-radius:12px;

    font-size:18px;

    font-weight:600;

    cursor:pointer;
}


.modal-body{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;
    padding:30px;
}

.modal-body input{
    width:320px;
    height:42px;
    padding:0 12px;
    font-size:16px;
    border:1px solid #cbd5e1;
    border-radius:6px;
    box-sizing:border-box;
}



.modal-box{

    width:550px;

    background:#ffffff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.25);
}


.toast{

    position:fixed;

    top:30px;

    right:30px;

    background:#16a34a;

    color:white;

    padding:16px 24px;

    border-radius:12px;

    font-size:16px;

    font-weight:600;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);

    z-index:10000;

    opacity:0;

    transition:all .3s ease;
}

.toast.show{

    opacity:1;
}


.tz-title{

    color:#666;

    font-size:14px;

    margin-bottom:8px;
}

.tz-clock{

    font-size:20px;

    font-weight:700;

    color:#12376b;
}

.tz-zone{

    margin-top:5px;

    font-size:13px;

    color:#777;
}



.header-cards{

    display:flex;

    gap:15px;

    align-items:stretch;
}

.timezone-card{

    width:220px;

    background:#fff;

    border-radius:10px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

    padding:15px 20px;

    text-align:center;

    display:flex;

    flex-direction:column;

    justify-content:center;
}




.calendar-note {
    margin-top: 36px;
    font-size: 18px;
    color: #666;
    text-align: center;
}

.calendar-note strong {
    color: #F00;
}


.buy-page{

    max-width:1200px;

    margin:auto;

    padding:40px;
}

.buy-card{

    background:white;

    padding:30px;

    border-radius:15px;

    margin-bottom:25px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.08);
}

.buy-card h2{

    margin-top:0;
}

.buy-card select,
.buy-card input{

    width:100%;

    padding:12px;

    margin-bottom:20px;

    border:1px solid #ccc;

    border-radius:8px;
}

#purchaseResult{

    margin-top:20px;

    font-weight:bold;
}


#packageSelect:disabled{

    background:#ececec;

    color:#888;

    cursor:not-allowed;
}


.runtime-summary{

    margin-top:20px;

    padding:18px;

    background:#f7f9fc;

    border-left:5px solid #16a34a;

    border-radius:10px;

    line-height:1.8;
}

#tokensToBuy{
    width:100%;
    box-sizing:border-box;
}



/* =========================
   MY ACCOUNT PAGE
   ========================= */

.account-page{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

.account-card{
    background:#ffffff;
    border-radius:12px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.account-card h2{
    margin-top:0;
    color:#1f3c6d;
}

.account-table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

.account-table th{
    background:#1f3c6d;
    color:white;
    padding:12px;
    text-align:left;
}

.account-table td{
    padding:12px;
    border-bottom:1px solid #e5e7eb;
}

.account-table tr:hover{
    background:#f8fafc;
}

.account-card button{
    width:auto;
    min-width:180px;
    margin-right:10px;
}

.danger-btn{
    background:#dc2626 !important;
}

.danger-btn:hover{
    background:#b91c1c !important;
}

#runtimeText{
    background:#f3f4f6;
    border-left:5px solid #16a34a;
    padding:15px;
    border-radius:8px;
    margin-top:15px;
}
