:root {
  --tech-blue: #0ea5e9; /* Sky Blue */
  --tech-blue-dark: #0284c7;
  --bg-gray: #f2f2f2;
  --text-dark: #333;
  --text-muted: #666;
  --border-color: #e5e7eb;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
}

.main-layout {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
}

.content-center {
  flex-grow: 1;
  min-width: 0;
}

.hero-banner {
  width: 100%;
  height: auto; /* Allow height to adjust to image */
  min-height: 300px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.right-panel {
  width: 280px;
  flex-shrink: 0;
}

.mobile-nav-links {
    display: none;
}

.welcome-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.welcome-avatar {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.welcome-card h4 {
  margin: 10px 0;
}

.auth-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn-full {
  width: 100%;
  padding: 12px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-join {
  background: var(--tech-blue);
  color: #fff;
}

.btn-signin {
  background: #fff;
  color: #333;
  border: 1px solid var(--border-color);
}

/* Side Widgets */
.side-widgets {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 1001;
}

.widget-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.widget-btn:hover {
  background: var(--tech-blue);
  color: #fff;
}

.widget-btn i {
  font-size: 20px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-auth {
    max-width: 400px;
}

.modal-auth h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--tech-blue);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.phone-input-group:focus-within {
    border-color: var(--tech-blue);
}

.phone-prefix, .phone-prefix-input {
    padding: 0 12px;
    background: #f9fafb;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    height: 46px;
    display: flex;
    align-items: center;
    width: 65px;
    text-align: center;
    outline: none;
}

.phone-input-group input {
    border: none;
    flex-grow: 1;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-muted);
}

@media (max-width: 1200px) {
    .right-panel { display: none; }
}

@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .hero-banner { height: 250px; }
}
