.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
  padding: 20px;
}

.login-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}

.login-header {
  background: #F9F9F9;
  color: #111;
  padding: 30px;
  text-align: center;
}
.login-header .logo {
  width: 280px;
  height: auto;
  margin-bottom: 5px;
}
.login-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  border: none;
  padding: 0;
  color: #111;
}
.login-header .subtitle {
  margin: 5px 0 0;
  opacity: 0.9;
  font-size: 15px;
}

.login-form-section {
  padding: 30px;
}

.instructions {
  text-align: center;
  color: #7f8c8d;
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
}

.login-form .form-group {
  margin-bottom: 20px;
}
.login-form .form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.login-form .form-group input[type=email] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.login-form .form-group input[type=email]:focus {
  outline: none;
  border-color: #006669;
  box-shadow: 0 0 0 3px rgba(0, 102, 105, 0.1);
}
.login-form .form-group input[type=email]::placeholder {
  color: #aaa;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  background: #006669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover:not(:disabled) {
  background: rgb(0, 77.2285714286, 79.5);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.message-container {
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.message-container p {
  margin: 0;
}
.message-container p:not(:last-child) {
  margin-bottom: 5px;
}
.message-container.success {
  background: #ccffcc;
  border: 1px solid #99cc99;
  color: #3c763d;
}
.message-container.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.message-container .dev-link a {
  color: #006669;
  font-weight: 600;
}
.message-container .link-text {
  word-break: break-all;
  color: #7f8c8d;
  font-family: monospace;
}

.login-footer {
  padding: 20px 30px;
  background: #fafafa;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}
.login-footer p {
  margin: 0;
  font-size: 14px;
  color: #7f8c8d;
}
.login-footer a {
  color: #006669;
  text-decoration: none;
}
.login-footer a:hover {
  text-decoration: underline;
}

.panel-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px;
  margin: -20px -20px 20px;
}

.panel-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-header-content .logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.panel-header-content img {
  height: 40px;
  width: auto;
}
.panel-header-content h1 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 24px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-info .user-email {
  color: #7f8c8d;
  font-size: 14px;
}
.user-info .admin-badge {
  background: #d4a800;
  color: #333;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.user-info .nav-link {
  color: #006669;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #006669;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.user-info .nav-link:hover {
  background: #006669;
  color: #fff;
}
.user-info .logout-btn {
  color: #e74c3c;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.user-info .logout-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.panel-content {
  max-width: 100%;
}

.panel-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}
.panel-footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.panel-footer .footer-credits {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #7f8c8d;
}
.panel-footer .version-link {
  background: none;
  border: none;
  padding: 2px 6px;
  font-size: 12px;
  color: #7f8c8d;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.panel-footer .version-link:hover {
  background: #f0f0f0;
  color: #006669;
}
.panel-footer .back-link {
  color: #7f8c8d;
  text-decoration: none;
  font-size: 14px;
}
.panel-footer .back-link:hover {
  color: #006669;
}

.empty-state {
  text-align: center;
  padding: 60px;
  background: #fafafa;
  border-radius: 8px;
}
.empty-state .empty-state-icon {
  font-size: 48px;
  margin-bottom: 10px;
}
.empty-state h2 {
  margin: 0 0 10px;
  color: #333;
}
.empty-state p {
  color: #7f8c8d;
  margin: 5px 0;
}
.empty-state p a {
  color: #006669;
}
.empty-state .btn-primary {
  margin-top: 20px;
  width: auto;
  display: inline-block;
}

.debug-token {
  background: #ffffcc;
  padding: 5px;
  margin: 5px;
  font-family: monospace;
}

.api-error {
  background: #f8d7da;
  padding: 20px;
  margin: 10px 0;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
}
.api-error h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #721c24;
}
.api-error p {
  margin: 5px 0;
  color: #721c24;
}
.api-error details {
  margin-top: 10px;
}
.api-error details summary {
  cursor: pointer;
  color: #7f8c8d;
  font-size: 14px;
}
.api-error details pre {
  margin-top: 5px;
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  overflow: auto;
  font-size: 12px;
}

.api-success {
  background: #ccffcc;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #99cc99;
  border-radius: 8px;
}
.api-success strong {
  font-weight: bold;
}

.subscription-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #006669 0%, rgb(0, 52.4571428571, 54) 100%);
  padding: 20px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  color: #fff;
}

.summary-stat {
  display: flex;
  flex-direction: column;
}
.summary-stat .stat-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.summary-stat .stat-label {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

.btn-mp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}
.btn-mp-link:hover {
  background: rgba(255, 255, 255, 0.3);
}
.btn-mp-link .btn-icon {
  width: 16px;
  height: 16px;
}

.subscription-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.subscription-card, .subscription-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.subscription-card:hover, .subscription-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.subscription-card.subscription-active, .subscription-active.subscription-item {
  border-color: rgb(177.6666666667, 218.75, 160.75);
}
.subscription-card.subscription-paused, .subscription-paused.subscription-item {
  border-color: #d4a800;
}

.subscription-card-header, .subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.subscription-title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subscription-title, .subscription-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.subscription-amount {
  text-align: right;
}
.subscription-amount .amount-value {
  font-size: 28px;
  font-weight: 700;
  color: #006669;
}
.subscription-amount .amount-currency {
  display: block;
  font-size: 14px;
  color: #7f8c8d;
}

.subscription-card-body, .subscription-details {
  padding: 20px;
}

.subscription-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
}
.info-item.info-highlight {
  background: #dff0d8;
}

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 12px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.subscription-actions {
  border-top: 1px dashed #e0e0e0;
  padding-top: 20px;
  margin-top: 20px;
}

.action-section {
  margin-bottom: 20px;
}
.action-section:last-child {
  margin-bottom: 0;
}

.action-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-action .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-update {
  background: #006669;
  color: #fff;
}
.btn-update:hover {
  background: rgb(0, 77.2285714286, 79.5);
}
.btn-update:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-pause {
  background: #fff;
  color: #d4a800;
  border: 1px solid #d4a800;
}
.btn-pause:hover {
  background: #d4a800;
  color: #fff;
}

.btn-resume {
  background: #4CAF50;
  color: #fff;
}
.btn-resume:hover {
  background: rgb(68.2788844622, 157.2211155378, 71.8725099602);
}

.btn-mp {
  background: #009ee3;
  color: #fff;
}
.btn-mp:hover {
  background: rgb(0, 140.2511013216, 201.5);
}

.btn-cancel-subscription {
  background: #fff;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}
.btn-cancel-subscription:hover {
  background: #e74c3c;
  color: #fff;
}

.action-hint {
  margin: 5px 0 0;
  font-size: 12px;
  color: #7f8c8d;
}

.change-amount-form .amount-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.amount-selector {
  display: flex;
  gap: 5px;
  flex: 1;
  min-width: 200px;
}

.amount-dropdown {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  min-width: 160px;
}
.amount-dropdown:focus {
  outline: none;
  border-color: #006669;
}

.custom-amount-input {
  display: none;
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  width: 140px;
}
.custom-amount-input:focus {
  outline: none;
  border-color: #006669;
}
.custom-amount-input.visible {
  display: block;
}

.change-amount-message {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.change-amount-message:not(:empty) {
  padding: 5px 10px;
  background: #f5f5f5;
  border-radius: 4px;
}
.change-amount-message.success {
  background: #ccffcc;
  color: #3c763d;
}
.change-amount-message.error {
  background: #f8d7da;
  color: #721c24;
}

.subscription-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fafafa;
  border-top: 1px solid #e0e0e0;
}

.subscription-id {
  font-family: monospace;
  font-size: 12px;
  color: #7f8c8d;
}

.mp-link {
  font-size: 12px;
  color: #006669;
  text-decoration: none;
}
.mp-link:hover {
  text-decoration: underline;
}

.subscription-cancelled-info {
  padding: 10px;
  background: #f8d7da;
  border-radius: 6px;
  margin-top: 20px;
}
.subscription-cancelled-info p {
  margin: 0;
  color: #721c24;
  font-size: 14px;
}

.subscription-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.status-active {
  background-color: #dff0d8;
  color: #3c763d;
}

.status-paused {
  background-color: #fcf8e3;
  color: #8a6d3b;
}

.status-pending {
  background-color: #fcf8e3;
  color: #8a6d3b;
}

.status-cancelled {
  background-color: #f2dede;
  color: #a94442;
}

.help-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #006669;
  border-radius: 0 8px 8px 0;
}
.help-section h3 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #333;
}
.help-section p {
  margin: 0;
  font-size: 15px;
  color: #7f8c8d;
}
.help-section p a {
  color: #006669;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.2s ease-out;
}
.modal-content.modal-content-wide {
  max-width: 560px;
}
.modal-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.modal-content p {
  margin: 5px 0;
  color: #7f8c8d;
}
.modal-content .modal-info {
  font-size: 14px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
  margin: 10px 0;
}
.modal-content .modal-hint {
  font-size: 14px;
  color: #7f8c8d;
  margin: 10px 0;
}
.modal-content .modal-hint strong {
  color: #333;
}

.release-notes-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
}
.release-notes-content h4 {
  margin: 10px 0 5px;
  font-size: 14px;
  color: #006669;
}
.release-notes-content h4:first-child {
  margin-top: 0;
}
.release-notes-content ul {
  margin: 0 0 10px;
  padding-left: 20px;
}
.release-notes-content li {
  margin-bottom: 4px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 10px 20px;
  background: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-cancel:hover {
  background: #e5e5e5;
}

.btn-confirm {
  padding: 10px 20px;
  background: #006669;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-confirm:hover {
  background: rgb(0, 77.2285714286, 79.5);
}
.btn-confirm.btn-pause-confirm {
  background: #d4a800;
  color: #333;
}
.btn-confirm.btn-pause-confirm:hover {
  background: rgb(186.5, 147.7924528302, 0);
}
.btn-confirm.btn-resume-confirm {
  background: #4CAF50;
}
.btn-confirm.btn-resume-confirm:hover {
  background: rgb(68.2788844622, 157.2211155378, 71.8725099602);
}
.btn-confirm.btn-danger {
  background: #e74c3c;
}
.btn-confirm.btn-danger:hover {
  background: rgb(228.2054794521, 55.1575342466, 37.2945205479);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toast {
  padding: 10px 20px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  animation: toastSlideIn 0.3s ease-out;
  max-width: 320px;
}
.toast.toast-success {
  background: #4CAF50;
}
.toast.toast-error {
  background: #e74c3c;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.admin-page {
  background: #f5f7fa;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.admin-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}

.admin-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #7f8c8d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover {
  color: #006669;
}
.admin-tab.active {
  color: #006669;
  border-bottom-color: #006669;
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.section-header h2 {
  margin: 0 0 5px;
}
.section-header .section-description {
  margin: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  background: #006669;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.btn-download:hover {
  background: rgb(0, 77.2285714286, 79.5);
}

.admin-section {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.admin-section h2 {
  margin: 0 0 5px;
  font-size: 20px;
  color: #333;
  border: none;
  padding: 0;
}
.admin-section .section-description {
  margin: 0 0 20px;
  color: #7f8c8d;
  font-size: 15px;
}

.suggested-amounts-form .amounts-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}
.suggested-amounts-form .amount-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.suggested-amounts-form .amount-item .amount-input {
  width: 150px;
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
}
.suggested-amounts-form .amount-item .amount-input:focus {
  outline: none;
  border-color: #006669;
}
.suggested-amounts-form .amount-item .currency-label {
  color: #7f8c8d;
  font-size: 14px;
}
.suggested-amounts-form .amount-item .btn-remove-amount {
  width: 32px;
  height: 32px;
  border: none;
  background: #f8d7da;
  color: #721c24;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.2s;
}
.suggested-amounts-form .amount-item .btn-remove-amount:hover {
  background: rgb(244.2021276596, 193.2978723404, 197.9255319149);
}
.suggested-amounts-form .amounts-actions {
  display: flex;
  gap: 10px;
}
.suggested-amounts-form .btn-secondary {
  padding: 10px 16px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.suggested-amounts-form .btn-secondary:hover {
  background: #e5e5e5;
}
.suggested-amounts-form .form-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}
.suggested-amounts-form .form-message:empty {
  display: none;
}
.suggested-amounts-form .form-message.success {
  background: #ccffcc;
  color: #3c763d;
}
.suggested-amounts-form .form-message.error {
  background: #f8d7da;
  color: #721c24;
}

.template-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.template-tab {
  padding: 5px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #7f8c8d;
  cursor: pointer;
  transition: all 0.2s;
}
.template-tab:hover {
  color: #333;
  background: #f5f5f5;
}
.template-tab.active {
  color: #006669;
  background: #fff;
  border-color: #e0e0e0;
  border-bottom-color: #fff;
  margin-bottom: -1px;
}

.template-editor {
  background: #fafafa;
  padding: 20px;
  border-radius: 6px;
}

.template-field {
  margin-bottom: 20px;
}
.template-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.template-field code {
  background: #e8e8e8;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #666;
}

.template-subject-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}
.template-subject-input:focus {
  outline: none;
  border-color: #006669;
}

.template-body-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  line-height: 1.5;
  background: #fff;
  resize: vertical;
  min-height: 200px;
}
.template-body-input:focus {
  outline: none;
  border-color: #006669;
}

.template-hint {
  margin: 5px 0 0;
  font-size: 12px;
  color: #7f8c8d;
}
.template-hint.template-hint-muted {
  opacity: 0.8;
  font-style: italic;
}

.notification-settings {
  padding: 10px 0;
}

.checkbox-setting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.checkbox-setting:hover {
  background: #f0f0f0;
}
.checkbox-setting input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #006669;
}
.checkbox-setting .checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkbox-setting .checkbox-label strong {
  color: #333;
  font-size: 15px;
}
.checkbox-setting .checkbox-label small {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.4;
}

.template-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.template-actions .btn-danger {
  background: #fff;
  color: #e74c3c;
  border-color: #e74c3c;
}
.template-actions .btn-danger:hover {
  background: #e74c3c;
  color: #fff;
}

.log-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}
.log-filters .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-filters .filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
}
.log-filters .filter-group select,
.log-filters .filter-group input {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}
.log-filters .filter-group select:focus,
.log-filters .filter-group input:focus {
  outline: none;
  border-color: #006669;
}
.log-filters .filter-group select {
  min-width: 150px;
}
.log-filters .filter-group input {
  width: 200px;
}
.log-filters .btn-filter {
  padding: 8px 16px;
  background: #006669;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}
.log-filters .btn-filter:hover {
  background: rgb(0, 77.2285714286, 79.5);
}
.log-filters .btn-clear-filters {
  padding: 8px 16px;
  color: #7f8c8d;
  text-decoration: none;
  font-size: 14px;
}
.log-filters .btn-clear-filters:hover {
  color: #006669;
}

.logs-table-container {
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.logs-table.logs-table-wide {
  min-width: 900px;
}
.logs-table th,
.logs-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.logs-table th {
  background: #f9f9f9;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.logs-table tr:hover {
  background: #fafafa;
}
.logs-table .log-date {
  white-space: nowrap;
  font-family: monospace;
  font-size: 12px;
  color: #7f8c8d;
}
.logs-table .log-user {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logs-table .log-amount {
  white-space: nowrap;
  font-family: monospace;
  font-size: 13px;
}
.logs-table .log-amount .no-data {
  color: #7f8c8d;
}
.logs-table .log-amount.log-amount-new {
  font-weight: 600;
  color: #006669;
}
.logs-table .log-amount .amount-change {
  margin-left: 4px;
}
.logs-table .log-ip code {
  font-size: 11px;
  color: #7f8c8d;
}
.logs-table .log-details details summary {
  cursor: pointer;
  color: #006669;
  font-size: 12px;
}
.logs-table .log-details details summary:hover {
  text-decoration: underline;
}
.logs-table .log-details details .details-content {
  margin-top: 5px;
  padding: 5px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 12px;
}
.logs-table .log-details details .details-content > div {
  margin-bottom: 4px;
}
.logs-table .log-details details .details-content > div:last-child {
  margin-bottom: 0;
}
.logs-table .log-details details .details-content code {
  font-size: 11px;
  background: #e0e0e0;
  padding: 1px 4px;
  border-radius: 2px;
}
.logs-table .log-details .no-details {
  color: #7f8c8d;
}

.action-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.action-badge.action-amount_change {
  background: #e3f2fd;
  color: #1565c0;
}
.action-badge.action-pause {
  background: #fcf8e3;
  color: #8a6d3b;
}
.action-badge.action-resume {
  background: #dff0d8;
  color: #3c763d;
}
.action-badge.action-login, .action-badge.action-logout {
  background: #f3e5f5;
  color: #7b1fa2;
}
.action-badge.action-admin_settings_change {
  background: #fff3e0;
  color: #e65100;
}

.empty-logs {
  text-align: center;
  padding: 30px;
  color: #7f8c8d;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.pagination .btn-page {
  padding: 8px 16px;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.pagination .btn-page:hover {
  background: #e5e5e5;
}
.pagination .page-info {
  color: #7f8c8d;
  font-size: 14px;
}

.notice {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #4CAF50;
  border-radius: 0 8px 8px 0;
}
.notice p {
  margin: 5px 0;
  font-size: 15px;
}
.notice p:first-child {
  margin-top: 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice a {
  color: #006669;
}

.detail-row {
  display: flex;
  padding: 5px 0;
  border-bottom: 1px solid rgb(236.75, 236.75, 236.75);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row .label {
  font-weight: 600;
  color: #7f8c8d;
  width: 140px;
  flex-shrink: 0;
  font-size: 14px;
}
.detail-row .value {
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .subscription-summary {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .subscription-card-header, .subscription-header {
    flex-direction: column;
    gap: 10px;
  }
  .subscription-amount {
    text-align: left;
  }
  .subscription-info-grid {
    grid-template-columns: 1fr;
  }
  .action-buttons {
    flex-direction: column;
  }
  .action-buttons .btn-action {
    width: 100%;
    justify-content: center;
  }
  .amount-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .amount-selector {
    flex-direction: column;
  }
  .log-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .log-filters .filter-group input,
  .log-filters .filter-group select {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .panel-header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .user-info {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .modal-content {
    margin: 10px;
    padding: 20px;
  }
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn-cancel,
  .modal-actions .btn-confirm {
    width: 100%;
  }
}
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
body.admin-page {
  max-width: 1200px;
}

h1 {
  color: rgb(25.5, 25.5, 25.5);
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.tiers-management {
  margin-top: 2rem;
}

.currency-group {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.currency-group h3 {
  margin: 0 0 1.5rem 0;
  color: #006669;
  font-size: 1.25rem;
  border-bottom: 2px solid #006669;
  padding-bottom: 0.5rem;
}

.tiers-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.tiers-table thead {
  background: #f8f9fa;
}
.tiers-table thead th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #dee2e6;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tiers-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s;
}
.tiers-table tbody tr:hover {
  background-color: #f8f9fa;
}
.tiers-table tbody tr td {
  padding: 12px;
  vertical-align: middle;
}

.tier-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-input:focus {
  outline: none;
  border-color: #006669;
  box-shadow: 0 0 0 3px rgba(0, 102, 105, 0.1);
}
.tier-input.tier-number, .tier-input.tier-order {
  width: 80px;
}
.tier-input.tier-amount {
  width: 120px;
}
.tier-input.tier-active {
  width: 120px;
}

.tier-currency {
  margin-left: 8px;
  color: #666;
  font-weight: 500;
}

.tier-actions {
  white-space: nowrap;
}
.tier-actions button {
  margin-right: 8px;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.tier-actions button:last-child {
  margin-right: 0;
}

.btn-tier-save {
  background: #006669;
  color: white;
}
.btn-tier-save:hover {
  background: #005456;
}
.btn-tier-save:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-tier-delete {
  background: #dc3545;
  color: white;
}
.btn-tier-delete:hover {
  background: #c82333;
}

.btn-add-tier {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-add-tier:hover {
  background: #218838;
}

.tiers-message {
  margin-top: 1.5rem;
  padding: 12px 16px;
  border-radius: 4px;
}
.tiers-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.tiers-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 1024px) {
  .tiers-table {
    font-size: 0.85rem;
  }
  .tiers-table thead th,
  .tiers-table tbody td {
    padding: 8px;
  }
  .tiers-table .tier-input {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .currency-group {
    padding: 1rem;
  }
  .tiers-table {
    display: block;
    overflow-x: auto;
  }
  .tiers-table thead,
  .tiers-table tbody,
  .tiers-table tr,
  .tiers-table th,
  .tiers-table td {
    display: block;
  }
  .tiers-table thead {
    display: none;
  }
  .tiers-table tbody tr {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
  }
  .tiers-table tbody tr td {
    padding: 8px 0;
    border: none;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
  }
  .tiers-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }
  .tiers-table tbody tr.tier-actions {
    grid-template-columns: 1fr;
  }
  .tiers-table tbody tr.tier-actions button {
    display: block;
    width: 100%;
    margin: 4px 0;
  }
}

/*# sourceMappingURL=main.css.map */
