/* Elite Trading Dashboard - Ultra Modern Design */

:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);

  /* Glass Morphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

  /* Dark Theme */
  --dark-bg: #0f0f23;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-text: #ffffff;
  --dark-text-secondary: rgba(255, 255, 255, 0.7);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 70%;
  animation-delay: -15s;
}

.shape-5 {
  width: 140px;
  height: 140px;
  top: 10%;
  left: 50%;
  animation-delay: -7s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0.3;
  }

  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.7;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Hero Header */
.hero-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.logo-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-lg);
}

.section-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Form Styles */
.webhook-form,
.trading-form {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group {
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group label i {
  color: #4facfe;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #4facfe;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--success-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.input-wrapper input:focus+.input-highlight,
.input-wrapper textarea:focus+.input-highlight {
  width: 100%;
}

/* Button Styles */
.btn-gradient {
  position: relative;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  min-height: 60px;
}

.btn-primary-action {
  background: var(--primary-gradient);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-submit {
  background: var(--success-gradient);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
  width: 100%;
  font-size: 1.2rem;
  padding: 1.5rem;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-gradient:hover .btn-shine {
  left: 100%;
}

/* Webhook Management */
.webhook-management {
  padding: var(--spacing-lg);
}

.management-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  font-weight: 500;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 10px #43e97b;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.management-header h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.webhook-info {
  margin-bottom: var(--spacing-lg);
}

.webhook-url-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.copy-btn {
  background: none;
  border: none;
  color: #4facfe;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: rgba(79, 172, 254, 0.2);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.btn-secondary {
  background: var(--secondary-gradient);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.btn-info {
  background: var(--warning-gradient);
  box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

.btn-primary {
  background: var(--primary-gradient);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

.btn-action:hover {
  transform: translateY(-2px);
}

/* Status Messages */
.status-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
}

.status {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.status.success {
  background: rgba(67, 233, 123, 0.2);
  color: #43e97b;
  border-color: rgba(67, 233, 123, 0.3);
}

.status.error {
  background: rgba(250, 112, 154, 0.2);
  color: #fa709a;
  border-color: rgba(250, 112, 154, 0.3);
}

.status.info {
  background: rgba(79, 172, 254, 0.2);
  color: #4facfe;
  border-color: rgba(79, 172, 254, 0.3);
}

/* Footer Brand */
.footer-brand {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: var(--spacing-lg);
}

.footer-brand a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-brand a:hover {
  color: #4facfe;
}

/* Modal Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: var(--spacing-lg);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-dialog {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.modal-large {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xl);
  color: white;
}

.modal-body h4 {
  color: white;
  margin: var(--spacing-lg) 0 var(--spacing-sm) 0;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.modal-body pre {
  background: rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-body pre::before {
  content: 'JSON';
  position: absolute;
  top: 10px;
  right: 15px;
  background: var(--primary-gradient);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Modal Button Styles */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(240, 147, 251, 0.4);
}

.btn-cancel {
  background: rgba(108, 117, 125, 0.8);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  backdrop-filter: blur(10px);
}

.btn-cancel:hover {
  transform: translateY(-2px);
  background: rgba(108, 117, 125, 1);
}

/* Settings Modal Specific */
.setting-group {
  margin-bottom: var(--spacing-lg);
}

.setting-group label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.setting-group label i {
  color: #4facfe;
  width: 20px;
}

.setting-group input,
.setting-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.setting-group input:focus,
.setting-group select:focus {
  outline: none;
  border-color: #4facfe;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.setting-group input[type="color"] {
  width: 80px;
  height: 50px;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: var(--spacing-md);
  }

  .header-content {
    text-align: center;
  }

  .logo-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .container {
    padding: var(--spacing-sm);
    margin: 0;
  }

  .hero-header {
    padding: var(--spacing-lg) var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .logo-text h1 {
    font-size: 2rem;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .glass-card {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
  }

  .section-header {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
  }

  .section-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .webhook-form,
  .trading-form {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 1rem;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .btn-gradient {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    min-height: 56px;
    /* Better touch target */
  }

  .btn-submit {
    padding: 1.5rem;
    font-size: 1.1rem;
    min-height: 60px;
  }

  .action-buttons {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .btn-action {
    padding: 1rem;
    min-height: 50px;
    font-size: 0.95rem;
  }

  .webhook-management {
    padding: var(--spacing-md);
  }

  .webhook-url-display {
    padding: 0.8rem;
    font-size: 0.8rem;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .footer-brand {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    font-size: 1rem;
  }

  /* Modal Responsive */
  .modal-overlay {
    padding: var(--spacing-sm);
  }

  .modal-dialog {
    max-width: 100%;
    margin: 0;
    max-height: 95vh;
  }

  .modal-header {
    padding: var(--spacing-md);
  }

  .modal-header h3 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: var(--spacing-md);
  }

  .modal-footer {
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .modal-footer button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .modal-body pre {
    font-size: 0.8rem;
    padding: var(--spacing-md);
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .hero-header {
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
  }

  .logo-section {
    gap: var(--spacing-sm);
  }

  .logo-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .logo-text h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .glass-card {
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
  }

  .section-header {
    padding: var(--spacing-md);
  }

  .webhook-form,
  .trading-form {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  .webhook-management {
    padding: var(--spacing-md);
  }

  .modal-header {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .modal-body {
    padding: var(--spacing-md);
  }

  .modal-footer {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .btn-gradient {
    padding: 1rem;
    font-size: 1rem;
  }

  .btn-submit {
    padding: 1.2rem;
    font-size: 1.1rem;
  }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Success Animation */
@keyframes success {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.success-animation {
  animation: success 0.6s ease;
}

/* Hover Effects */
.glass-card:hover .section-icon {
  transform: scale(1.1) rotate(5deg);
}

.form-group:hover label i {
  transform: scale(1.2);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Selection */
::selection {
  background: rgba(79, 172, 254, 0.3);
  color: white;
}

/* Focus Visible */
*:focus-visible {
  outline: 2px solid #4facfe;
  outline-offset: 2px;
}

/* Hide number input spinner arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox number input styling */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: none;
}

.section-header {
  padding: var(--spacing-sm);
}

.section-icon {
  width: 45px;
  height: 45px;
  font-size: 1.1rem;
}

.section-title h2 {
  font-size: 1.3rem;
}

.section-title p {
  font-size: 0.9rem;
}

.webhook-form,
.trading-form {
  padding: 0 var(--spacing-sm) var(--spacing-sm);
}

.form-grid {
  gap: var(--spacing-sm);
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.input-wrapper input,
.input-wrapper textarea {
  padding: 0.9rem;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.btn-gradient {
  padding: 1rem;
  font-size: 0.95rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
}

.btn-submit {
  padding: 1.3rem;
  font-size: 1rem;
  min-height: 56px;
}

.webhook-management {
  padding: var(--spacing-sm);
}

.management-header h3 {
  font-size: 1.2rem;
}

.webhook-url-display {
  padding: 0.7rem;
  font-size: 0.75rem;
}

.action-buttons {
  gap: 0.5rem;
}

.btn-action {
  padding: 0.9rem;
  min-height: 48px;
  font-size: 0.9rem;
}

.footer-brand {
  padding: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
  font-size: 0.95rem;
  margin-top: var(--spacing-md);
}

/* Modal adjustments for very small screens */
.modal-overlay {
  padding: 0.5rem;
}

.modal-dialog {
  border-radius: var(--radius-md);
  max-height: 98vh;
}

.modal-header {
  padding: var(--spacing-sm) var(--spacing-md);
}

.modal-header h3 {
  font-size: 1.1rem;
}

.modal-body {
  padding: var(--spacing-sm) var(--spacing-md);
}

.modal-footer {
  padding: var(--spacing-sm) var(--spacing-md);
}

.modal-footer button {
  min-height: 44px;
  font-size: 0.9rem;
}

.setting-group input {
  padding: 0.9rem;
  font-size: 16px;
}

.modal-body pre {
  font-size: 0.75rem;
  padding: var(--spacing-sm);
  line-height: 1.3;
}


/* Extra small screens */
@media (max-width: 360px) {
  .container {
    padding: 0.25rem;
  }

  .hero-header {
    padding: var(--spacing-sm);
  }

  .logo-text h1 {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .section-title h2 {
    font-size: 1.2rem;
  }

  .webhook-form,
  .trading-form {
    padding: 0 0.5rem 0.5rem;
  }

  .input-wrapper input,
  .input-wrapper textarea {
    padding: 0.8rem;
  }

  .btn-gradient {
    padding: 0.9rem;
    min-height: 48px;
  }

  .footer-brand {
    font-size: 0.9rem;
  }
}