html {
  font-size: 14px;
}

:root {
  --primary: #ffaa00;
  --primary-glow: rgba(255, 170, 0, 0.4);
  --secondary: #00e5ff;
  --secondary-glow: rgba(0, 229, 255, 0.4);
  --danger: #ff3d00;
  --background: #0b0f19;
  --card-bg: rgba(25, 32, 56, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 229, 255, 0.5);
  --text: #f0f4f8;
  --text-muted: #8fa0c0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* Background Glowing Blobs */
.glow-bg {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(255, 170, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Layout wrappers */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  padding: 2rem 0.8rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

/* Sidebar Menu Button replacing tab-btn */
.menu-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.75rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.menu-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.menu-btn.active {
  color: #0b0f19;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.sidebar-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-socials a {
  width: 100%;
  justify-content: center;
}

.sidebar-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Main Content Panel */
.main-content {
  margin-left: 260px;
  padding: 2rem 2.5rem;
  flex-grow: 1;
  box-sizing: border-box;
  min-width: 0;
}

.content-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #ffffff;
  display: block;
}

.content-header-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Social buttons */
.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #ffffff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}

.youtube-btn:hover {
  background: #e60000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.45);
}

.youtube-icon {
  width: 16px;
  height: 16px;
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0088cc;
  color: #ffffff;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.25);
}

.telegram-btn:hover {
  background: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
}

.telegram-icon {
  width: 16px;
  height: 16px;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffb300;
  color: #0b0f19;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.25);
}

.donate-btn:hover {
  background: #ffa000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.45);
}

.donate-icon {
  width: 16px;
  height: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo .icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% {
    transform: scale(1) rotate(-5deg);
  }

  100% {
    transform: scale(1.08) rotate(5deg);
  }
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  background: linear-gradient(135deg, #ffffff 40%, #a0c0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo h1 span {
  background: linear-gradient(135deg, #ffea00 0%, #ff7700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.45));
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge.disconnected {
  background: rgba(255, 61, 0, 0.15);
  border: 1px solid var(--danger);
  color: #ff6d00;
}

.badge.connected {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00e676;
  color: #00e676;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.badge.error {
  background: rgba(255, 61, 0, 0.2);
  border: 1px solid var(--danger);
  color: #ff3d00;
}

/* Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Glassmorphism Cards */
.card {
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

input,
select {
  width: 100%;
  height: 38px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem !important;
  cursor: pointer;
}

input:focus,
select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px var(--secondary-glow);
}

input[readonly] {
  color: var(--text-muted);
  cursor: default;
}

input[type="color"] {
  height: 38px !important;
  padding: 4px !important;
  cursor: pointer;
  box-sizing: border-box;
}

/* Copy URL styling */
.copy-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.copy-box input {
  flex-grow: 1;
  height: 38px;
}

.copy-box button {
  flex-shrink: 0;
  white-space: nowrap;
  height: 38px;
}

/* Button Styles */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  height: 38px;
  padding: 0 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #0b0f19;
}

.btn-primary:hover {
  background: #ffc400;
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #0b0f19;
  box-shadow: 0 0 15px var(--secondary-glow);
}

.btn-danger {
  background: rgba(255, 61, 0, 0.15);
  border: 1px solid var(--danger);
  color: #ff3d00;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
  box-shadow: 0 0 15px rgba(255, 61, 0, 0.4);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

/* Table styling for donations */
.history-card {
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-container {
  overflow-y: auto;
  max-height: 250px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 15, 25, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(25, 32, 56, 0.8);
  font-weight: 600;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
}

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

.empty-state {
  color: var(--text-muted);
  padding: 2rem 0;
}

.text-center {
  text-align: center;
}

.btn-delete {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
}

.btn-delete:hover {
  color: #ff6d00;
}

/* Console Styling */
.console-card {
  flex-grow: 1;
}

.console-box {
  background: #05070c;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 180px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  padding: 1rem;
  overflow-y: auto;
  color: #a0aec0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-line.system {
  color: #3182ce;
}

.log-line.success {
  color: #38a169;
}

.log-line.error {
  color: #e53e3e;
}

.iframe-container {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: none;
  transform-origin: top left;
}

.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticker-iframe-container {
  width: 100%;
  height: 60px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  transition: height 0.3s ease;
}

.ticker-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  width: 100%;
}

/* Save Status Indicator */
.save-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.save-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  transition: all 0.3s ease;
}

.save-status.saving::before {
  background: #ffb300;
  box-shadow: 0 0 8px #ffb300;
  animation: pulse-saving 1s infinite alternate;
}

@keyframes pulse-saving {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

/* Tab Content Visibility */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Align Status Container Items */
.status-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.status-container .save-status,
.status-container .badge,
.status-container .user-badge,
.status-container button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

/* Specific button style override */
.status-container button {
  border: 1px solid var(--danger);
  background: rgba(255, 61, 0, 0.15);
  color: #ff3d00;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.status-container button:hover {
  background: rgba(255, 61, 0, 0.3);
  transform: translateY(-1px);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
    height: auto;
    overflow: visible;
  }

  .tab-content.active {
    height: auto;
  }

  .settings-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.5rem;
  }

  .column {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
  }

  .menu-btn {
    width: auto;
  }

  .sidebar-socials {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-socials a {
    width: auto;
  }

  .status-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .status-container .save-status,
  .status-container .badge,
  .status-container .user-badge,
  .status-container button {
    width: auto;
  }
}

/* Metrics Cards Row */
.metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2) !important;
}

.metric-icon {
  font-size: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.metric-info h3 {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.metric-info p {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .metrics-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

.url-input-group {
  margin-bottom: 0;
}

.url-input-group label {
  font-weight: 700;
  color: #ffffff;
}

.url-input-group .copy-box {
  margin-top: 0.4rem;
}

@media (max-width: 1280px) {
  .app-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .sidebar {
    width: 100%;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
    height: auto;
    overflow: visible;
  }

  .tab-content.active {
    height: auto;
  }

  .settings-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.5rem;
  }

  .column {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }

  .iframe-container {
    transform-origin: top center;
  }
}

/* Auth Screen styles */
.auth-layout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 50%, rgba(20, 28, 48, 0.98) 0%, rgba(10, 14, 24, 0.99) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.auth-layout::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.08) 0%, rgba(255, 170, 0, 0) 70%);
  filter: blur(60px);
  top: 15%;
  left: 15%;
  z-index: -1;
  pointer-events: none;
}

.auth-layout::after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(0, 229, 255, 0) 70%);
  filter: blur(60px);
  bottom: 15%;
  right: 15%;
  z-index: -1;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 3.25rem 2.5rem;
  border-radius: 28px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 30px 70px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.08),
    0 0 100px rgba(255, 170, 0, 0.02),
    0 0 50px rgba(255, 170, 0, 0.12);
  box-sizing: border-box;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  opacity: 0.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-logo svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.4));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-header h1 {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  font-family: 'Outfit', sans-serif;
  text-transform: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.auth-header h1 span {
  background: linear-gradient(135deg, #ffea00 0%, #ff7700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 170, 0, 0.5));
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.85;
}

.auth-error-msg {
  background: rgba(255, 61, 0, 0.08);
  border: 1px solid rgba(255, 61, 0, 0.3);
  color: #ff5252;
  padding: 0.9rem;
  border-radius: 12px;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 61, 0, 0.1);
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.auth-card .form-group {
  margin-bottom: 1.5rem;
}

.auth-card label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.auth-card input {
  height: 48px;
  border-radius: 12px;
  background: rgba(8, 11, 20, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 1.25rem !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-card input::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

.auth-card input:hover {
  background: rgba(8, 11, 20, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.auth-card input:focus {
  background: rgba(8, 11, 20, 0.95) !important;
  border-color: var(--primary) !important;
  box-shadow:
    0 0 0 3px rgba(255, 170, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.auth-card .btn-primary {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffea00 0%, #ff7700 100%) !important;
  color: #0b0f19 !important;
  font-weight: 700 !important;
  font-size: 0.98rem !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 6px 20px rgba(255, 119, 0, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  margin-top: 1.5rem !important;
}

.auth-card .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(255, 119, 0, 0.4) !important;
  background: linear-gradient(135deg, #fff033 0%, #ff8800 100%) !important;
}

.auth-card .btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 10px rgba(255, 119, 0, 0.2) !important;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-toggle a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.4rem;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
}

.auth-toggle a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1.5px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.auth-toggle a:hover {
  color: #80f0ff;
  text-decoration: none;
}

.auth-toggle a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* User Account Info Bar styling */
.user-profile-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-profile-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 70%);
  pointer-events: none;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0b0f19;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.user-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

.btn-logout:hover {
  background: rgba(255, 82, 82, 0.15);
  border-color: rgba(255, 82, 82, 0.35);
  color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.15);
  transform: scale(1.05);
}

/* Storage Bar Quota styling */
.storage-quota-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.storage-quota-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.storage-quota-label {
  color: var(--text-muted);
  font-weight: 600;
}

.storage-quota-value {
  color: #ffffff;
  font-weight: 700;
}

.storage-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  width: 0%;
  transition: width 0.4s ease;
}

.storage-bar-fill.warning {
  background: linear-gradient(90deg, #ff8000, #ffaa00);
}

.storage-bar-fill.danger {
  background: linear-gradient(90deg, #ff3d00, #ff5252);
}

/* User Role Badge Styling */
.badge-member {
  background: rgba(160, 174, 192, 0.15);
  color: #a0aec0;
  border: 1px solid rgba(160, 174, 192, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-premium {
  background: rgba(212, 175, 55, 0.15);
  color: #ffd700;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.badge-sponsor {
  background: rgba(229, 62, 62, 0.15);
  color: #e53e3e;
  border: 1px solid rgba(229, 62, 62, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.15);
}

.badge-admin {
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.12) 0%, rgba(255, 128, 0, 0.06) 100%);
  border: 1px solid rgba(255, 61, 0, 0.4);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: admin-glow 2s infinite ease-in-out;
  cursor: default;
}

.badge-admin::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5252' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 3px;
  filter: drop-shadow(0 0 2px rgba(255, 61, 0, 0.5));
}

.badge-admin::after {
  content: "ADMIN";
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff4d4d 0%, #ff8000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255, 61, 0, 0.25);
  font-family: 'Outfit', sans-serif;
}

.badge-admin:hover {
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.2) 0%, rgba(255, 128, 0, 0.1) 100%);
  transform: translateY(-1px) scale(1.03);
}

@keyframes admin-glow {
  0% {
    box-shadow: 0 0 6px rgba(255, 61, 0, 0.2), inset 0 0 4px rgba(255, 61, 0, 0.1);
    border-color: rgba(255, 61, 0, 0.35);
  }

  50% {
    box-shadow: 0 0 14px rgba(255, 61, 0, 0.45), inset 0 0 7px rgba(255, 61, 0, 0.2);
    border-color: rgba(255, 61, 0, 0.65);
  }

  100% {
    box-shadow: 0 0 6px rgba(255, 61, 0, 0.2), inset 0 0 4px rgba(255, 61, 0, 0.1);
    border-color: rgba(255, 61, 0, 0.35);
  }
}

/* Range slider styling to match the Theme (yellow/orange) */
input[type="range"] {
  -webkit-appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 3px !important;
  outline: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  margin: 0.5rem 0 !important;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary);
  /* #ffaa00 (yellow/orange) */
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
  /* (track_height/2) - (thumb_height/2) */
  box-shadow: 0 0 10px var(--primary-glow);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #ffc400;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #ffc400;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

cursor: pointer;
-webkit-appearance: none;
margin-top: -5px;
/* (track_height/2) - (thumb_height/2) */
box-shadow: 0 0 10px var(--primary-glow);
transition: background-color 0.2s,
transform 0.1s,
box-shadow 0.2s;
border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #ffc400;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #ffc400;
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6);
}

/* Tutorials Playlist Grid */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tutorial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.tutorial-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 170, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tutorial-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tutorial-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}

.tutorial-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.btn-delete-tutorial {
  background: rgba(255, 61, 0, 0.1) !important;
  color: #ff5252 !important;
  border: 1px solid rgba(255, 61, 0, 0.2) !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.78rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease !important;
}

.btn-delete-tutorial:hover {
  background: rgba(255, 61, 0, 0.25) !important;
  border-color: #ff5252 !important;
  transform: translateY(-1px);
}