* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1a2e;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .page-wrapper {
    max-width: 500px;
  }
}

.header {
  text-align: center;
  padding: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.accounts {
  padding: 16px;
  padding-bottom: 80px;
}

.account-card {
  background: #16213e;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-content {
  position: relative;
  padding: 16px;
  transition: transform 0.3s;
  background: #16213e;
  z-index: 1;
}

.card-actions {
  position: absolute;
  right: 0;
  top: 36px;
  display: flex;
  align-items: center;
  padding-right: 16px;
  height: 40px;
}

.action-delete {
  background: #e57373;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.account-name {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.account-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-code {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 6px;
  cursor: pointer;
  user-select: none;
}

.account-timer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.add-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #4fc3f7;
  border-radius: 50%;
  border: none;
  font-size: 28px;
  color: #1a1a2e;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #16213e;
  border-radius: 12px;
  padding: 24px;
  min-width: 280px;
}

.modal-title {
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin: 8px 0;
  background: #4fc3f7;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.form-group {
  margin: 16px 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #1a1a2e;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
}

#video {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 500px;
  border-radius: 8px;
  background: #000;
  object-fit: cover;
}

.back-btn {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.scan-container {
  padding: 16px;
}

.scan-result {
  margin-top: 16px;
  text-align: center;
  color: #4fc3f7;
}

.form-container {
  padding: 16px;
}
