@font-face {
  font-family: 'TeluguSMPFont';
  src: url('Fonts/TeluguSMP.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('Fonts/TeluguSMP.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family: 'TeluguSMPFont', 'Geist', sans-serif;

  --primary: #4383ea;
  --primary-hover: #3775db;
  --primary-active: #2b65c4;
  
  --bg-dark: #0a0b0e;
  --card-bg: #121318;
  --card-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #ffffff;
  --text-muted: #828594;
  --text-sub: #9497a6;
  
  --btn-sec-bg: #22242a;
  --btn-sec-hover: #2b2e37;
  --btn-sec-border: rgba(255, 255, 255, 0.06);

  --radius-card: 24px;
  --radius-banner: 16px;
  --radius-avatar: 22px;
  --radius-btn: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family) !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font-family) !important;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: clamp(12px, 3vw, 24px);
  -webkit-tap-highlight-color: transparent;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.discord-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: clamp(12px, 3vw, 16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  width: 100%;
}

.banner-container {
  height: clamp(140px, 36vw, 180px);
  border-radius: var(--radius-banner);
  overflow: hidden;
  position: relative;
  background-color: #0d121d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.card-header {
  padding: 0 6px;
}

.avatar-wrapper {
  margin-top: calc(-1 * clamp(36px, 9vw, 44px));
  margin-left: 8px;
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
  display: inline-block;
}

.avatar-box {
  width: clamp(64px, 17vw, 76px);
  height: clamp(64px, 17vw, 76px);
  background: #141720;
  border-radius: var(--radius-avatar);
  border: 4px solid var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.server-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-avatar) - 4px);
}

.server-title-container {
  margin-bottom: 12px;
}

.server-name {
  font-family: var(--font-family) !important;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.3px;
  flex-wrap: wrap;
}

.verified-badge {
  width: clamp(18px, 4.5vw, 20px);
  height: clamp(18px, 4.5vw, 20px);
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--font-family) !important;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 500;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-icon {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.stat-count {
  font-family: var(--font-family) !important;
  color: var(--text-main);
  font-weight: 500;
}

.stat-label {
  font-family: var(--font-family) !important;
  color: var(--text-muted);
  font-weight: 400;
}

.server-description {
  font-family: var(--font-family) !important;
  font-size: clamp(13px, 3.5vw, 14px);
  line-height: 1.5;
  color: var(--text-sub);
  margin-bottom: 20px;
  padding: 0 6px;
  word-break: break-word;
}

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

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(44px, 10vw, 48px);
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-family) !important;
  font-size: clamp(14px, 3.8vw, 15px);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:active {
  background-color: var(--primary-active);
  transform: scale(0.99);
}

.btn-secondary {
  background-color: var(--btn-sec-bg);
  color: var(--text-main);
  border: 1px solid var(--btn-sec-border);
  gap: 6px;
}

.btn-secondary:hover {
  background-color: var(--btn-sec-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:active {
  transform: scale(0.99);
}

.btn-link-icon {
  width: 14px;
  height: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: clamp(10px, 3vw, 16px);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #12141d;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: clamp(18px, 5vw, 28px);
  width: 100%;
  max-width: 580px;
  padding: clamp(18px, 4vw, 26px) clamp(14px, 4vw, 24px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 0 0 50px rgba(67, 131, 234, 0.08);
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title {
  font-family: var(--font-family) !important;
  font-size: clamp(18px, 4.5vw, 21px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.modal-subtitle {
  font-size: clamp(12px, 3.2vw, 13.5px);
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 400;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.form-section {
  background-color: #0b0c13;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: clamp(14px, 4vw, 20px);
  padding: clamp(14px, 3.5vw, 18px) clamp(14px, 3.5vw, 20px);
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.form-section:hover {
  border-color: rgba(255, 255, 255, 0.09);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13.5px, 3.5vw, 14.5px);
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-badge {
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(67, 131, 234, 0.35);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-section .form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-family: var(--font-family) !important;
  font-size: clamp(12.5px, 3.2vw, 13.5px);
  font-weight: 500;
  line-height: 1.4;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.required-star {
  color: #f43f5e;
  font-weight: 700;
  margin-left: 3px;
}

.form-input {
  width: 100%;
  padding: clamp(9px, 2.5vw, 11px) clamp(12px, 3vw, 15px);
  background-color: #171a26;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-family) !important;
  font-size: clamp(13px, 3.5vw, 14px);
  line-height: 1.5;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-input::placeholder {
  color: #5d6379;
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: #191d2c;
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #1b1f2e;
  box-shadow: 0 0 0 3px rgba(67, 131, 234, 0.2);
}

textarea.form-input {
  min-height: 76px;
  resize: vertical;
}

.modal-actions {
  margin-top: 20px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: #191c27;
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-family) !important;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  max-width: 100%;
}

/* Device Breakpoints */

/* Mobile Phones (< 540px) */
@media (max-width: 540px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-card {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .form-section {
    padding: 14px 14px;
    border-radius: 16px;
  }
}

/* Very Small Mobile Screens (< 360px) */
@media (max-width: 360px) {
  body {
    padding: 8px;
  }
  
  .discord-card {
    padding: 10px;
    border-radius: 16px;
  }
  
  .avatar-wrapper {
    margin-top: -32px;
    margin-left: 4px;
  }

  .avatar-box {
    border-width: 3px;
  }
  
  .stats-row {
    font-size: 12px;
    gap: 10px;
  }
  
  .server-description {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .btn {
    min-height: 42px;
    font-size: 13.5px;
  }
}

/* Short Screen Heights & Landscape Orientation */
@media (max-height: 680px) {
  body {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .modal-card {
    max-height: 92vh;
    max-height: 92dvh;
  }
}
