:root {
  --color-bg: #FEDE59;
  --color-bg-card: #ffffff;
  --color-bg-form: #fffef8;
  --color-primary: #FEDE59;
  --color-primary-dark: #FEAA27;
  --color-primary-light: #fff9d0;
  --color-success: #06AED5;
  --color-success-alt: #FEAA27;
  --color-accent: #06AED5;
  --color-accent-dark: #FEAA27;
  --color-border: #FEAA27;
  --color-border-light: #fff9d0;
  --color-text: #2d2d2d;
  --color-text-dark: #1a1a1a;
  --color-heading: #1a1a1a;
  --color-white: #ffffff;
  --color-disabled-bg: #cccccc;
  --color-disabled-text: #888888;
  --color-alert-success-bg: #fff9e6;
  --color-alert-success-text: #6b5400;
  --color-alert-error-bg: #ffe8e8;
  --color-alert-error-text: #DD1C1A;
  --color-error: #DD1C1A;
  --shadow-primary: rgba(254, 170, 39, 0.25);
  --shadow-primary-medium: rgba(254, 170, 39, 0.15);
  --shadow-primary-light: rgba(254, 170, 39, 0.2);
  --shadow-primary-strong: rgba(254, 170, 39, 0.3);
  --shadow-primary-intense: rgba(254, 170, 39, 0.5);
  --shadow-primary-hover: rgba(254, 170, 39, 0.6);
  --shadow-primary-btn: rgba(254, 222, 89, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --shadow-btn-hover: rgba(254, 170, 39, 0.4);
}

/* --- StickerVibez Modern, Fun, Minimalistic Theme --- */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg);
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll */
}
.container {
  width: 100%;
  max-width: 900px;
  margin: 1.5em auto;
  padding: 2.5em 1.5em 2em 1.5em;
  background: var(--color-bg-card);
  border-radius: 22px;
  box-shadow: 0 8px 40px var(--shadow-primary);
  border: 3px solid var(--color-primary);
  box-sizing: border-box; /* Include padding and border in width calculation */
}
h1 {
  font-size: 2.25em;
  margin-bottom: 0.5em;
  font-weight: 700;
  color: var(--color-heading);
}

/* Logo and Title */
.logo-link {
  text-decoration: none;
  display: block;
  text-align: center;
}
.main-title {
  font-size: 2.25em;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.2em;
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Alerts & Feedback */
.alert {
  padding: 1em 1.5em;
  border-radius: 10px;
  margin-bottom: 1.2em;
  font-size: 1.1em;
  font-weight: 500;
  box-shadow: 0 3px 12px var(--shadow-dark);
  border: 2px solid transparent;
}
.alert-success {
  background: var(--color-alert-success-bg);
  color: var(--color-alert-success-text);
  border-color: var(--color-accent);
}
.alert-danger, .alert-error {
  background: var(--color-alert-error-bg);
  color: var(--color-alert-error-text);
  border-color: var(--color-error);
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.7em 2em;
  font-size: 1.1em;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text);
  box-shadow: 0 3px 12px var(--shadow-primary-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text);
}
.btn-success,
button.btn-success,
input[type="submit"].btn-success,
input[type="button"].btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-alt) 100%);
  color: var(--color-white);
}
.btn:hover, .btn:focus,
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
  box-shadow: 0 5px 20px var(--shadow-primary-hover);
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-text-dark);
}
.btn[disabled],
button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled] {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
  border: none;
  transition: none;
}
.btn[disabled]:hover,
button[disabled]:hover,
input[type="submit"][disabled]:hover,
input[type="button"][disabled]:hover {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  transform: none;
  box-shadow: none;
}

#done {
  text-align: left;
  margin: 2em 0 0 0;
}

/* Upload Page Styles */
.upload-container {
  text-align: center;
  padding-top: 3em;
  padding-bottom: 3em;
}
.upload-logo {
  width: 110px;
  margin-bottom: 1.5em;
}
.upload-subtitle {
  font-size: 1.25em;
  color: var(--color-text);
  margin-bottom: 2.2em;
  font-weight: 600;
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.upload-form {
  max-width: 420px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 6px 30px var(--shadow-primary-strong);
  padding: 2.2em 2em 2em 2em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  border: 3px solid var(--color-primary);
}
.upload-label {
  font-size: 1.1em;
  color: var(--color-text-dark);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.3em;
}
.style-btn-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1.2em;
  justify-content: center;
  justify-items: center;
  margin-bottom: 1.5em;
}
@media (max-width: 600px) {
  .style-btn-group {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;
  }
}
.style-btn {
  width: 90px;
  height: 90px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 3px 12px var(--shadow-primary-light);
  cursor: pointer;
  border: 3px solid var(--color-border-light);
  position: relative;
  transition: border 0.2s, transform 0.2s;
}
.style-btn:hover {
  transform: scale(1.05);
}
.style-btn-text {
  background: rgba(255,255,255,0.9);
  border-radius: 0 0 12px 12px;
  width: 100%;
  font-weight: 700;
  color: var(--color-text);
  font-size: 1em;
  padding: 0.3em 0;
  text-align: center;
}
.style-radio:checked + .style-btn {
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 16px var(--shadow-btn-hover);
}
.upload-btn {
  width: 100%;
  font-size: 1.18em;
}
.upload-note {
  margin-top: 2.5em;
  font-size: 1em;
}

/* Misc */
label { color: var(--color-text); font-weight: 500; }
input[type="file"], select { 
  padding: 0.5em; 
  border-radius: 6px; 
  border: 2px solid var(--color-border); 
  background: var(--color-white);
}
form { display: flex; flex-direction: column; gap: 1em; }

/* Fun accent for minimal look */
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 8px;
}
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-border-light);
}

input.style-radio {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Footer (common across all pages) */
.footer {
  background: #f8f9fa;
  padding: 3em 2em 1.5em 2em;
  margin-top: auto;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 0.5fr;
  gap: 3em;
  max-width: 1200px;
  margin: 0 auto 2.5em auto;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.footer-heading {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 0.5em 0;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.footer-info p {
  margin: 0;
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}

.footer-info strong {
  color: var(--color-text-dark);
  font-size: 1.05em;
}

.footer-social {
  display: flex;
  gap: 0.8em;
  margin-top: 0.5em;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 8px;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--shadow-primary-medium);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-primary-strong);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer-nav a {
  color: #555;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.footer-description {
  color: #555;
  font-size: 0.95em;
  line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2em;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
  margin: 0;
  color: #999;
  font-size: 0.9em;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 2em 1.5em 1.5em 1.5em;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5em;
    margin-bottom: 2em;
  }
  
  .footer-block {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-nav {
    align-items: center;
  }
}

/* Site Header & Logo */
.site-header {
  padding: 0.5rem 0;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.site-logo {
  max-width: 300px;
  height: auto;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 950px) {
  .container {
    margin: 1em;
    padding: 2em 1.2em 1.5em 1.2em;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.4rem 0;
  }
  
  .site-logo {
    max-width: 220px;
  }
  
  .main-title {
    font-size: 1.75em;
  }
  
  .upload-subtitle {
    font-size: 1.1em;
  }
  
  .container {
    margin: 0.8em;
    padding: 1.8em 1em 1.2em 1em;
  }
}

/* Page Header inside container */
.page-header {
  margin: -2.5em -1.5em 1em -1.5em;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3em;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2.5em;
  flex: 1;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left a,
.nav-right a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.25em;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  transition: color 0.2s ease;
  position: relative;
}

.nav-left a:hover,
.nav-right a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.header-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo {
  height: 100px;
  width: auto;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .page-header {
    margin: -2.5em -1.5em 0em -1.5em;
    padding: 0.6em 1em;
  }
  
  .header-nav {
    gap: 1em;
  }
  
  .nav-left,
  .nav-right {
    gap: 0.8em;
    font-size: 0.85em;
  }
  
  .nav-left a,
  .nav-right a {
    font-size: 1.25em;
  }
  
  .header-logo {
    height: 60px;
  }
  
  .main-title {
    font-size: 1.75em;
    margin-bottom: 0.15em;
  }
  
  .upload-subtitle {
    font-size: 1.1em;
    margin-bottom: 1.5em;
  }
}

@media (max-width: 480px) {
  .nav-left,
  .nav-right {
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
  }
  
  .header-logo {
    height: 50px;
  }
  
  .main-title {
    font-size: 1.5em;
    margin-bottom: 0.1em;
  }
  
  .upload-subtitle {
    font-size: 1em;
    margin-bottom: 1.2em;
  }
}

/* FAQ styles (moved from inline) */
.faq-section { max-width: 900px; width: 100%; margin: 3em auto; padding: 2em 1.5em; background: #f9f9f9; border-radius: 12px; box-sizing: border-box; }
.faq-section h2 { text-align: center; margin-bottom: 0.5em; color: #333; }
.faq-section > p { text-align: center; color: #666; margin-bottom: 2em; }
.faq-container { display: grid; gap: 1rem; width: 100%; }
.faq-item { background: #ffffff; margin-bottom: 1em; padding: 1.5em; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); width: 100%; box-sizing: border-box; }
.faq-item summary { font-weight: 600; font-size: 1.1em; cursor: pointer; color: #333; margin-bottom: 0.5em; }
.faq-item p { color: #555; line-height: 1.6; margin-top: 1em; }
