:root{
  --bg:#0b0f14;
  --panel:#121825;
  --muted:#8aa2b6;
  --text:#eaf2ff;
  --brand:#5de2a5;
  --brand-2:#8ab4ff;
  --accent:#ffd166;
  --danger:#ff6b6b;
  --radius:16px;
  --shadow:0 10px 24px rgba(0,0,0,.35);
  --transition: all 0.3s ease;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:linear-gradient(180deg,#0b0f14,#0b1320 40%,#0b0f14);
  background-attachment: fixed;
  color:var(--text);
  font-family:'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height:100vh;
  width:100vw;
  overflow-x:hidden;
}

a{
  color:var(--brand-2);
  text-decoration:none;
  transition:var(--transition);
}

a:hover{
  color:var(--brand);
}

.container{
  width:100%;
  max-width:100%;
  margin:0 auto;
  padding:0 15px;
}

.site-header{
  position:sticky;
  top:0;
  background:rgba(9,13,20,.97);
  backdrop-filter:blur(15px);
  border-bottom:1px solid #1b2335;
  z-index:100;
  padding:18px 0;
  width:100%;
}

.brand{
  display:flex;
  gap:.8rem;
  align-items:center;
  font-weight:700;
  font-size:1.3rem;
  color:var(--text);
  transition:var(--transition);
}

.brand:hover{
  color:var(--brand);
}

.brand img{
  width:32px;
  height:32px;
}

.nav{
  display:flex;
  gap:1.5rem;
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  font-weight:500;
  padding:8px 12px;
  border-radius:8px;
  transition:var(--transition);
}

.nav a:hover{
  background:rgba(93, 226, 165, 0.1);
  color:var(--brand);
}

.nav .btn{
  margin-left:.8rem;
}

.balance{
  opacity:.9;
  padding:.6rem 1rem;
  background:rgba(16, 22, 36, 0.7);
  border-radius:999px;
  border:1px solid #1f2a44;
  font-weight:500;
  transition:var(--transition);
}

.balance:hover{
  background:rgba(16, 22, 36, 1);
  transform: translateY(-2px);
}

main.container{
  padding:30px 0 80px;
  min-height:calc(100vh - 180px);
  width:100%;
}

.card{
  background:linear-gradient(170deg,#0f1628,#0d1423);
  border:1px solid #1b2540;
  border-radius:var(--radius);
  padding:35px;
  box-shadow:var(--shadow);
  transition:var(--transition);
  margin-bottom:30px;
  width:100%;
  box-sizing:border-box;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow:0 15px 30px rgba(0,0,0,.45);
}

.card h2{
  margin-top:0;
  padding-bottom:15px;
  border-bottom:1px solid #1b2540;
  color:var(--brand);
}

.mt{
  margin-top:30px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  width:100%;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:35px;
  width:100%;
}

@media (max-width:900px){
  .grid-2,.grid-3{
    grid-template-columns:1fr;
  }
  
  .nav{
    gap:0.8rem;
  }
  
  .balance{
    font-size:0.9rem;
    padding:0.4rem 0.8rem;
  }
}

.btn{
  display:inline-block;
  padding:0.9rem 1.5rem;
  border-radius:12px;
  background:linear-gradient(145deg,var(--brand),#4bbf8d);
  color:#082112;
  border:none;
  font-weight:700;
  box-shadow:0 6px 14px rgba(93,226,165,.25);
  cursor:pointer;
  transition:var(--transition);
  text-align:center;
  font-size:1rem;
}

.btn:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 20px rgba(93,226,165,.4);
  color:#082112;
}

.btn:active{
  transform: translateY(0);
}

.btn-outline{
  background:transparent;
  color:var(--text);
  border:1px solid #2b3a5f;
  box-shadow:0 4px 10px rgba(43, 58, 95, 0.2);
}

.btn-outline:hover{
  background:rgba(43, 58, 95, 0.2);
  box-shadow:0 6px 15px rgba(43, 58, 95, 0.3);
  color:var(--text);
}

.btn-light{
  background:#0f1524;
  color:var(--text);
  border:1px solid #1f2a44;
  box-shadow:0 4px 10px rgba(31, 42, 68, 0.2);
}

.btn-light:hover{
  background:#131a2d;
  box-shadow:0 6px 15px rgba(31, 42, 68, 0.3);
}

label{
  display:block;
  margin:.8rem 0 .3rem;
  font-size:1rem;
  color:var(--muted);
  font-weight:500;
}

input,select{
  width:100%;
  padding:1rem;
  border-radius:12px;
  background:#0f1524;
  border:1px solid #1f2a44;
  color:var(--text);
  font-size:1rem;
  transition:var(--transition);
}

input:focus,select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(93, 226, 165, 0.2);
}

.table{
  display:grid;
}

.tr{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:15px;
  padding:15px;
  border-bottom:1px solid #19233d;
  align-items:center;
}

.tr.th{
  font-weight:700;
  color:#9eb6ff;
  background:#0e1526;
  border-radius:12px;
  margin-bottom:10px;
}

.tr .inline{
  display:flex;
  gap:.6rem;
}

.badge{
  padding:.3rem .7rem;
  border:1px solid #203055;
  border-radius:999px;
  text-align:center;
  font-size:0.9rem;
  display:inline-block;
}

.stock{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin:20px 0;
}

.stock-item{
  background:#0f1524;
  border:1px solid #1f2a44;
  border-radius:12px;
  padding:20px;
  text-align:center;
  transition:var(--transition);
}

.stock-item:hover{
  transform: translateY(-5px);
  border-color:var(--brand);
}

.stock-item span{
  color:var(--muted);
  font-size:1rem;
}

.stock-item b{
  display:block;
  font-size:2rem;
  margin-top:.5rem;
  color:var(--brand);
}

.auth-card{
  max-width:500px;
  margin:60px auto;
  padding:40px;
  text-align:center;
}

.alert{
  margin:1rem 0;
  padding:1rem 1.5rem;
  background:#102034;
  border:1px solid #1b2a4a;
  border-radius:12px;
  text-align:center;
}

pre.code{
  background:#0b1223;
  border:1px solid #162245;
  border-radius:12px;
  padding:18px;
  overflow:auto;
  max-height:500px;
  margin:20px 0;
  font-size:0.95rem;
  line-height:1.5;
}

.btn-row{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin:20px 0;
}

.btn-row .btn{
  flex:1;
  min-width:150px;
}

.site-footer{
  border-top:1px solid #1a2340;
  background:#0b101c;
  padding:30px 0;
  margin-top:50px;
  text-align:center;
}

.hint{
  opacity:.85;
  font-size:0.9rem;
  margin:10px 0;
}

.guide{
  line-height:1.8;
  padding-left:20px;
}

.guide li{
  margin:10px 0;
}

/* Full screen enhancements */
.full-screen{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  width:100%;
  overflow-x:hidden;
  background-attachment: fixed;
}

.main-content{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  width:100%;
  padding:0;
}

.center-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:80vh;
  width:100%;
}

/* Animation for elements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .btn, .stock-item {
  animation: fadeIn 0.5s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* Helper classes */
.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center-v {
  align-items: center;
}

.full-width {
  width: 100% !important;
  max-width: 100% !important;
}

.center {
  text-align: center;
}

.center h3 {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.center b {
  font-size: 2.5rem;
  color: var(--brand);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* Landing page specific styles */
.landing-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.landing-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--brand);
}

.landing-price-display {
  margin: 30px 0;
  padding: 20px;
  background: rgba(93, 226, 165, 0.1);
  border-radius: 12px;
  border: 1px solid var(--brand);
}

.landing-price-display h3 {
  margin-top: 0;
  color: var(--text);
}

.landing-price-display .price {
  font-size: 2rem;
  color: var(--brand);
  margin: 10px 0;
  font-weight: 700;
}

.landing-cta {
  margin-top: 30px;
}

/* Styles for price display boxes */
.price-container {
  display: flex;
  gap: 20px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.price-box {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.price-box h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.price-box .price-value {
  font-size: 24px;
  font-weight: bold;
}

.unit-price {
  background: rgba(138, 180, 255, 0.15);
  border: 1px solid #8ab4ff;
}

.unit-price h3 {
  color: #8ab4ff;
}

.unit-price .price-value {
  color: #eaf2ff;
}

.total-price {
  background: rgba(93, 226, 165, 0.15);
  border: 1px solid #5de2a5;
}

.total-price h3 {
  color: #5de2a5;
}

.total-price .price-value {
  color: #5de2a5;
  font-size: 26px;
}

.price-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Thêm các lớp CSS cho giao diện tối trong trang đơn hàng */
.dark-card {
  background-color: #1a2035;
  border-color: #2a3555;
  color: #e0e0e0;
}

.dark-code {
  background-color: #2a3555;
  color: #e0e0e0;
  border-color: #3a4565;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-item {
  background-color: #2a3555;
  border: 1px solid #3a4565;
  border-radius: 8px;
  padding: 15px;
  color: #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.order-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-id {
  font-weight: bold;
  color: #8ab4ff;
}

.order-date {
  color: #a0a0a0;
  font-size: 0.9em;
}

.order-details {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.order-type {
  background-color: #8ab4ff;
  color: #0f1525;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.order-count {
  font-weight: bold;
  color: #5de2a5;
}

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

.btn-small {
  padding: 5px 10px;
  font-size: 0.9em;
  background-color: #5de2a5;
  color: #0f1525;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-small:hover {
  background-color: #4cc594;
}

.full-width {
  width: 100%;
}

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center-v {
  align-items: center;
}

.center-content {
  max-width: 1000px;
  margin: 0 auto;
}
