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

body {
  font-family: Arial, sans-serif;
  background: #f5f7f9;
  color: #151515;
}


/* COMMON */

.hidden {
  display: none !important;
}

.screen {
  min-height: 100vh;
}


/* LOGIN */

.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: #f5f7f9;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.app-logo {
  width: 75px;
  height: 75px;
  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #16a34a;
  color: white;

  border-radius: 20px;

  font-size: 42px;
  font-weight: bold;
}

.login-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.login-text {
  color: #666;
  margin-bottom: 28px;
}


/* GOOGLE BUTTON */

.google-btn {
  width: 100%;
  height: 52px;

  border: 1px solid #ddd;
  border-radius: 12px;

  background: white;
  color: #222;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-btn:hover {
  background: #f7f7f7;
}

.google-btn span {
  font-size: 20px;
  font-weight: bold;
}


/* ERROR */

.error-text {
  color: #dc2626;
  font-size: 14px;
  margin-top: 15px;
}


/* TOPBAR */

.topbar {
  min-height: 72px;

  padding: 12px 22px;

  background: white;

  border-bottom: 1px solid #e5e7eb;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.topbar h2 {
  font-size: 21px;
}

.topbar p {
  margin-top: 3px;
  color: #777;
  font-size: 13px;
}


/* LOGOUT */

.logout-btn {
  border: none;
  background: #ef4444;
  color: white;

  padding: 10px 16px;

  border-radius: 10px;

  cursor: pointer;

  font-weight: 600;
}


/* MAIN */

.main-content {
  width: 100%;
  max-width: 1100px;

  margin: auto;

  padding: 25px 18px 50px;
}


/* WELCOME */

.welcome-box {
  background: white;

  padding: 24px;

  border-radius: 18px;

  margin-bottom: 25px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.welcome-box h1 {
  margin-bottom: 7px;
}

.welcome-box p {
  color: #666;
}


/* ADS */

.ads-section {
  margin-bottom: 28px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 20px;
}


.ads-container {
  min-height: 110px;

  display: grid;

  grid-template-columns:
    repeat(auto-fill, minmax(220px, 1fr));

  gap: 15px;
}


/* EMPTY */

.empty-card {
  background: white;

  border: 1px dashed #d1d5db;

  border-radius: 14px;

  min-height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #888;

  font-size: 14px;
}


/* MOBILE */

@media (max-width: 600px) {

  .topbar {
    align-items: flex-start;
  }

  .topbar h2 {
    font-size: 18px;
  }

  .logout-btn {
    padding: 9px 12px;
  }

  .main-content {
    padding: 18px 12px 40px;
  }

  .welcome-box {
    padding: 20px;
  }

  .ads-container {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   DEVELOPER ACCOUNT
================================ */

.profile-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.profile-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.profile-section input,
.profile-section select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.profile-section input:focus,
.profile-section select:focus {
    border-color: #16a34a;
}

#generateAdsJsonBtn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#generateAdsJsonBtn:hover {
    opacity: 0.9;
}

#jsonStatus {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
}