@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Dancing+Script:wght@700&display=swap');

:root {
  --bg-dark: #0B0D10;
  --surface: #121417;
  --text-primary: #FFFFFF;
  --text-muted: #9FA6B2;
  --accent: #D0D2D6;
  --hover: #007BFF;
  --border: #1F2228;
  --warning: #FFC107;
  --error: #FF6B6B;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark);
  color: #fff;
  padding: 1rem 2rem;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), 
              transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 1;
  pointer-events: auto;
  border-bottom: 1px solid var(--border);
  text-align: left;
  transform: translateY(0);
}
header.hide-on-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-40px);
}
header h1 {
  font-size: 1.7rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
}

nav {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  background: var(--bg-dark);
  justify-content: center;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.logo-link {
  margin-top: 0.5rem;
}

.logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.beta-badge {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-55%);
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.6px;
  padding: 6px 6px;
  margin-left: 0;
  border-radius: 4px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  user-select: none;
}

.header-actions {
  margin-left: auto;
}

.join-login-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  text-decoration: none;
  margin-left: 1rem;
}
.join-login-btn:hover {
  background-color: var(--hover);
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}
.bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

main {
  padding: 1rem 1rem 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}
main img {
  border-radius: 50%;
  width: 150px;
  margin: 0 auto;
  display: block;
  border: 2px solid var(--border);
}

h1, h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
p {
  text-align: center;
  color: white;
}

.sections-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 3rem;
}
.supporters-section,
.buy-coffee-section {
  background-color: var(--surface);
  padding: 2rem;
  border: 1px solid var(--border);
  flex: 1;
  min-width: 300px;
  text-align: center;
  border-radius: 12px;
}
.buy-coffee-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

ul {
  list-style: none;
  padding: 0;
}
ul li {
  margin-bottom: 1rem;
}
ul li strong {
  color: var(--text-primary);
}
time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
form label {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
form input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
input[type="number"] {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 8px;
  padding: 0.4rem;
  appearance: textfield;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="number"]:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#coffee-selection {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
#coffee-icons {
  display: flex;
  gap: 6px;
  cursor: pointer;
}
.coffee-icon {
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, filter 0.2s;
  opacity: 0.4;
  filter: grayscale(100%) brightness(0.7);
  background-color: transparent;
  box-sizing: border-box;
}
.coffee-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
  filter: grayscale(50%) brightness(1);
}
.coffee-icon.selected {
  opacity: 1;
  filter: grayscale(0%) brightness(1.2);
  transform: scale(1.05);
}



form button,
#confirmBtn,
#generateWalletBtn,
#generateBtn {
  background-color: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 0.2rem;
  text-align: center;
}
form button { width: 6rem; }
#confirmBtn { width: 8rem; display: block; margin: 1.5rem auto 0 auto; }
#generateWalletBtn { width: 22rem; display: block; margin: 0.4rem auto 0 auto; }
#generateBtn { display: block; margin: 2rem auto 1rem auto; }
form button:hover,
#confirmBtn:hover,
#generateWalletBtn:hover,
#generateBtn:hover {
  background-color: var(--hover);
  color: var(--text-primary);
}

#conversion {
  font-size: 0.9rem;
  color: var(--accent);
}
.error {
  color: var(--error);
  font-size: 0.9rem;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

#name-input-container, #coffee-amount-container, #message-input-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#name-input-container label {
  margin-bottom: 0.5rem;
}
#coffee-amount-container label {
  margin-bottom: -0.2rem;
  margin-left: -0.65rem;
}
#name-input-container input{
  width: 20rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#message-input-container textarea {
  width: 20rem;
  height: 10rem;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;

  vertical-align: top;
  resize: none;
  line-height: 1.5;
}

#name-input-container input:focus, #message-input-container input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.start-earning-btn {
  display: inline-block;
  background-color: var(--accent);
  color: #000;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 0.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  text-decoration: none;
}
.start-earning-btn:hover {
  background-color: var(--hover);
  color: var(--text-primary);
  text-decoration: none;
}

.hero-title,
.why-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
}
.why-title { margin-top: 10rem; }

.benefits-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.benefit-card {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  min-width: 220px;
  max-width: 350px;
  flex: 1 1 220px;
  text-align: center;
}

.faq-section {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 2rem 2.5rem;
  margin: 3rem auto 0 auto;
  max-width: 700px;
  border: 1px solid var(--border);
  position: relative;
}
.faq-section #faq-list {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
}
.faq-section.collapsed #faq-list {
  max-height: 250px;
  height: 230px;
}
.faq-section:not(.collapsed) #faq-list {
  max-height: 1500px;
}
.faq-section h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
}
.faq-item {
  margin-bottom: 1.7rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-question {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}
.faq-answer {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: left;
  margin-left: 0.5rem;
}
.faq-fade {
  position: absolute;
  bottom: 60px;
  left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 0;
}
.faq-section.collapsed .faq-fade {
  opacity: 1;
}
.faq-toggle-icon:hover {
  color: var(--hover);
}

.join-login-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.8rem;
}

#username-label, #wallet-label, #display-name-label {
  display: block;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
#username, #display_name {
  display: block;
  margin: 0 auto 1.5rem auto;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}
#username:focus, #display_name:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

#wallet-address {
  max-width: 19rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#wallet-address:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.dashboard-container h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
}
.welcome-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  text-align: left;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.dashboard-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: left;
}
.link-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.link-section input {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  transition: border-color 0.2s, box-shadow 0.2s;
  align-self: center;
  width: 20rem;
  max-width: 100%;
}
.link-section input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(208, 210, 214, 0.2);
}
.link-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}
.link-buttons button {
  padding: 0.05rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.link-buttons button:hover {
  background: var(--hover);
  color: var(--text-primary);
}
.link-buttons button i {
  width: 2px;
  height: 2px;
}
.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  text-align: left;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}

.supporters-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.supporters-section h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: left;
}
.supporters-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.supporters-list::-webkit-scrollbar {
  width: 6px;
}
.supporters-list::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 3px;
}
.supporters-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.supporters-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.supporter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.supporter-item:hover {
  border-color: var(--accent);
}
.supporter-item:last-child {
  margin-bottom: 0;
}
.supporter-avatar {
  width: 50px;
  height: 50px;
  background: var(--hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.supporter-avatar i {
  width: 24px;
  height: 24px;
  color: #000;
}
.supporter-info { flex: 1; }
.supporter-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.supporter-amount {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.supporter-time {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.supporter-status { flex-shrink: 0; }
.status-completed {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-completed i {
  width: 20px;
  height: 20px;
}
.status-pending {
  color: var(--warning);
  background: rgba(255, 193, 7, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-pending i {
  width: 18px;
  height: 18px;
}
.no-supporters {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.no-supporters-icon {
  margin-bottom: 1rem;
  opacity: 0.5;
  display: flex;
  justify-content: center;
}
.no-supporters-icon i {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
}
.no-supporters h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.no-supporters p {
  font-size: 1rem;
  text-align: center;
}
.wallet-display, .email-display {
  margin-bottom: 1rem;
}
.wallet-address, .email-address {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  text-align: center;
}

.donation-status-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donation-status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.donation-status-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.donation-status-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.donation-status-card strong {
  color: var(--accent);
  font-weight: 600;
}

.donation-success {
  border-color: #22c55e;
}

.donation-success h2 {
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.donation-success .status-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.donation-success .status-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: #22c55e;
}

.donation-pending {
  border-color: var(--warning);
}

.donation-pending h2 {
  color: var(--warning);
}

.donation-pending .status-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  animation: pulse 2s infinite;
}

.donation-pending .status-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--warning);
}

.donation-waiting {
  border-color: var(--accent);
}

.donation-waiting h2 {
  color: var(--accent);
}

.donation-waiting .status-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(208, 210, 214, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  animation: pulse 2s infinite;
}

.donation-waiting .status-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}

.donation-expired {
  border-color: var(--error);
  background: rgba(255, 107, 107, 0.08);
}

.donation-expired h2 {
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.donation-expired .status-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 107, 107, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.donation-expired .status-icon i {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--error);
}

.donation-expired p {
  color: var(--error);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.wallet-info {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
}

.wallet-info .amount {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wallet-info .address {
  word-break: break-all;
  color: var(--text-primary);
  font-size: 0.9rem;
  background: rgba(208, 210, 214, 0.05);
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.address-section {
  margin-top: 1rem;
}

.address-section p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.transaction-id {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  color: var(--accent);
}

.transaction-section {
  margin: 1.5rem 0;
}

.transaction-id-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.transaction-id-container input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1;
  max-width: 400px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.transaction-id-container input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(208, 210, 214, 0.2);
}

.transaction-id-container button {
  padding: 0.35rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.transaction-id-container button:hover {
  background: var(--hover);
  color: var(--text-primary);
}

.transaction-id-container button i {
  width: 2px !important;
  height: 2px !important;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-primary) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.profile-picture {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  image-rendering: auto;
}

.profile-pic-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.current-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}

.dashboard-profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-profile-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.no-profile-pic i {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.profile-pic-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.profile-pic-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.remove-btn {
  background: rgba(255, 107, 107, 0.1) !important;
  border-color: rgba(255, 107, 107, 0.3) !important;
  color: var(--error) !important;
}

.remove-btn:hover {
  background: rgba(255, 107, 107, 0.2) !important;
  border-color: rgba(255, 107, 107, 0.4) !important;
}

.upload-status {
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  min-height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.upload-status.error {
  background: rgba(255, 107, 107, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.upload-status.info {
  background: rgba(208, 210, 214, 0.1);
  color: var(--accent);
  border: 1px solid rgba(208, 210, 214, 0.3);
}

.signature {
  font-family: 'Dancing Script', cursive;
}

.terms-content {
  text-align: left;
}

.terms-content p {
  text-align: left !important;
}

.privacy-content {
  text-align: left;
}

.privacy-content p {
  text-align: left !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (min-width: 768px) {
  .header-actions {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
  }
  main { padding: 0.5rem 0.2rem 1rem 0.2rem; }
  nav {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    display: none;
    margin-top: 1rem;
    background: var(--bg-dark);
  }
  nav.active { display: flex; }
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: right;
    align-items: right;
    margin: -3.4rem 0.5rem 0 0;
    align-self: right !important;
  }
  .navbar-toggle {
    width: 40px;
    height: 40px;
    color: #fff;
    font-size: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    margin-top: 0.25rem;
  }
  body { padding: 0 1rem; }
  .join-login-title {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .join-login-btn {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.18rem;
    box-shadow: none;
    line-height: 1.6;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }
  p { line-height: 1.6; margin-left: 0; margin-right: 0; }
  header, footer { padding-left: 1rem; padding-right: 1rem; }
  .hero-title, .why-title {
    font-size: 1.5rem;
    margin-top: 20rem;
    text-align: center;
    padding: 0 0.5rem;
  }
  .benefits-grid {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    display: flex;
  }
  .benefit-card {
    min-width: 0;
    max-width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; 
  }
  .benefit-title { margin-top: 0.8rem; }
  .faq-section {
    padding: 1.2rem 0.5rem 0rem 1rem;
    margin-top: 2rem;
    max-width: 100%;
  }
  .faq-section:not(.collapsed) #faq-list {
    max-height: none;
    height: auto;
  }
  .faq-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  #faq-toggle-btn i {
    width: 28px !important;
    height: 28px !important;
  }
  .start-earning-btn {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    margin-top: 1rem;
  }
  main { padding: 0.5rem 0.2rem; }
  .dashboard-container { padding: 1rem; }
  .dashboard-container h1 {
    font-size: 2rem;
    text-align: center;
  }
  .welcome-text {
    text-align: center;
    margin-bottom: 2rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .dashboard-card { padding: 1.5rem; }
  .stat-card .stat-value { font-size: 2rem; }
  .supporters-section { 
    padding: 1rem; 
  }
  .supporters-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .supporter-item { 
    padding: 0.75rem; 
    gap: 0.75rem;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  .supporter-avatar { 
    width: 36px; 
    height: 36px;
  }
  .supporter-avatar i {
    width: 18px;
    height: 18px;
  }
  .supporter-name {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }
  .supporter-amount {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
  }
  .supporter-time {
    font-size: 0.75rem;
  }
  .status-completed,
  .status-pending {
    width: 28px;
    height: 28px;
    padding: 0.3rem;
  }
  .status-completed i {
    width: 14px;
    height: 14px;
  }
  .status-pending i {
    width: 12px;
    height: 12px;
  }
  .no-supporters {
    padding: 2rem 1rem;
  }
  .no-supporters-icon i {
    width: 40px;
    height: 40px;
  }
  .no-supporters h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .no-supporters p {
    font-size: 0.85rem;
  }
  .link-section { flex-direction: column; }
  .link-section button { align-self: stretch; justify-content: center; }
  .logo-link {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin: 0;
    position: relative;
    z-index: 10;
    align-self: flex-start;
    margin-left: 0;
  }
  .logo-link img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -0.4rem;
  }
  .beta-badge {
    top: 45%;
    margin-left: -0.5rem;
  }
  #wallet-address,
  .transaction-id-container input {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
    height: auto;
    min-height: 2.8em;
    line-height: 1.4;
    font-size: 0.95rem;
    padding: 0.1rem 0.5rem;
    max-width: 100vw;
  }
}

.spacer {
    height: 6rem;
}
