@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: radial-gradient(circle at top, #101010, #000);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 30px;
}

.container {
  width: 95%;
  max-width: 1100px;
  animation: fadeIn 1s ease forwards;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

header h1 {
  font-size: 2.5em;
  font-weight: 800;
  color: gold;
}

header .dot {
  color: white;
}

.subtitle {
  opacity: 0.7;
  font-size: 0.9em;
}

.balance {
  font-size: 1em;
  opacity: 0.8;
}

main {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.chart-section {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
  animation: float 6s ease-in-out infinite;
}

.price-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  font-size: 1.2em;
}

.price-info .label {
  opacity: 0.7;
  margin-right: 10px;
}

.price {
  font-weight: 700;
  color: gold;
  margin-right: 10px;
}

.change.green {
  color: #00ff99;
}

.change.red {
  color: #ff4444;
}

.trade-panel, .positions {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

.trade-panel h2, .positions h2 {
  margin-bottom: 10px;
  color: gold;
}

.inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 8px;
  padding: 8px;
  color: white;
  font-size: 1em;
  outline: none;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

button {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

.long {
  background: #00c67f;
  color: white;
}

.short {
  background: #ff4e50;
  color: white;
}

.positions ul {
  list-style: none;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.positions li {
  padding: 8px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
}

footer {
  text-align: center;
  margin-top: 40px;
  opacity: 0.5;
  font-size: 0.8em;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
