/* ==========================================================================
   Component Styles - OpenDev Platform
   科技感组件 - Tech Components
   ========================================================================== */

/* ==========================================================================
   Buttons - 科技感按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.4),
    0 8px 25px rgba(0, 255, 136, 0.2);
  text-decoration: none;
}

/* 按钮发光扫过效果 */
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--border-color-hover);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  text-decoration: none;
}

.btn-danger,
.btn-error {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger:hover,
.btn-error:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: var(--error);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn:disabled,
.btn.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Groups */
.btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ==========================================================================
   Cards - 科技感卡片
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* 卡片发光效果层 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--glow-card);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  color: var(--text-secondary);
}

.card-body p {
  margin: 0 0 14px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Forms - 科技感表单
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label.required::after {
  content: " *";
  color: var(--error);
}

.form-input,
.form-control {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus,
.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.15),
    0 0 15px rgba(0, 212, 255, 0.2);
  outline: none;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  transition: var(--transition);
}

.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.15),
    0 0 15px rgba(0, 212, 255, 0.2);
  outline: none;
}

.form-select {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--accent-primary);
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, 0.15),
    0 0 15px rgba(0, 212, 255, 0.2);
  outline: none;
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
}

.form-help {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ==========================================================================
   Tables - 科技感表格
   ========================================================================== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.table thead {
  background: linear-gradient(
    180deg,
    var(--bg-tertiary) 0%,
    rgba(18, 18, 26, 0.9) 100%
  );
}

.table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

/* 设置表格列宽 - Key 列固定宽度，Value 列自适应 */
.table th:first-child,
.table td:first-child {
  width: 25%;
  min-width: 150px;
}

.table td {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color-light);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 表格内 code 元素样式 */
.table td code {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: rgba(0, 212, 255, 0.03);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Badges - 科技感徽章
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.badge-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border-color: rgba(0, 255, 136, 0.3);
}

.badge-warning {
  background: rgba(255, 170, 0, 0.1);
  color: var(--warning);
  border-color: rgba(255, 170, 0, 0.3);
}

.badge-error {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
  border-color: rgba(255, 71, 87, 0.3);
}

.badge-info {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  border-color: rgba(0, 212, 255, 0.3);
}

/* ==========================================================================
   Alerts - 科技感提示
   ========================================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert-success {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--error);
}

.alert-warning {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--warning);
}

.alert-info {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-primary);
}

/* ==========================================================================
   Loading - 科技感加载动画
   ========================================================================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ==========================================================================
   Empty State - 空状态
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ==========================================================================
   Tabs - 科技感标签页
   ========================================================================== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
  gap: 4px;
}

.tab {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.05);
}

.tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* 活动标签发光效果 */
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ==========================================================================
   Modal - 科技感弹窗
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.15),
    var(--shadow-lg);
  animation: fade-in-up 0.3s ease;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Modal header 底部发光线 */
.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.3),
    transparent
  );
}

.modal-title,
.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Settings Page
   ========================================================================== */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 100%;
  overflow-x: hidden;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

.settings-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 100%;
  overflow: hidden;
}

.settings-card:hover {
  border-color: var(--border-color-hover);
}

.settings-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.settings-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 设置页面表格容器 - 支持横向滚动 */
.settings-card .table-wrapper,
#env-vars-container,
#config-params-container,
#db-config-container,
#migration-list-container,
#backup-list-container,
#jwt-key-status-container,
#encryption-key-status-container,
#session-config-container,
#log-list-container,
#audit-log-list-container,
#metrics-container,
#system-metrics-container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 表格内长文本值处理 */
.settings-card .table td:last-child {
  max-width: 400px;
}

/* 环境变量值显示样式 */
.env-value {
  display: block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.4;
}

.text-muted {
  color: var(--text-tertiary);
}

/* ==========================================================================
   Login Page - 科技感登录页
   ========================================================================== */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #000000 0%, #050508 50%, #0a1020 100%);
}

/* 登录页背景效果 */
body.login-page::before {
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(0, 212, 255, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size:
    100% 100%,
    50px 50px,
    50px 50px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.1),
    var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* 登录卡片顶部发光线 */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-description {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-page .form-group {
  margin-bottom: 24px;
}

.code-input-group {
  display: flex;
  gap: 10px;
}

.code-input-group input {
  flex: 1;
}

.code-sent-message {
  padding: 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-primary);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.code-sent-message.show {
  display: block;
}

.success-message {
  padding: 14px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.success-message.show {
  display: block;
}

.error-message {
  padding: 14px;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.error-message.show {
  display: block;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* ==========================================================================
   View Link
   ========================================================================== */
.view-link {
  white-space: nowrap;
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.view-link:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ==========================================================================
   Documentation Page Styles
   ========================================================================== */
.docs-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.docs-list-item {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.docs-list-item a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

.docs-list-item a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.docs-ordered-list {
  padding-left: 24px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.docs-ordered-list .docs-list-item {
  padding: 6px 0;
}

.docs-section-title {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.docs-link-wrapper {
  margin-top: 18px;
}

.docs-link-wrapper a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

.docs-link-wrapper a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.docs-subsection-title {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.docs-guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}

.docs-guide-list .docs-list-item {
  padding: 0;
}

.docs-guide-list .docs-list-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.docs-guide-list .docs-list-item a:hover {
  border-color: var(--accent-primary);
  background-color: rgba(59, 130, 246, 0.1);
  text-shadow: none;
}

.docs-guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  flex-shrink: 0;
}

.docs-guide-icon svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Operations Monitoring Styles
   ========================================================================== */
.log-level {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-level-debug {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.log-level-info {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.log-level-warn {
  background: rgba(255, 170, 0, 0.1);
  color: var(--warning);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.log-level-error {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.log-message {
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.metric-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--glow-card);
}

.metric-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 6px 0 0 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* ==========================================================================
   Agreement Page Styles
   ========================================================================== */
.agreement-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.agreement-section-title {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-primary);
}

.agreement-section-title:first-child {
  margin-top: 0;
}

.agreement-list {
  margin: 14px 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.agreement-list li {
  margin: 10px 0;
  padding-left: 8px;
}

.agreement-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.agreement-update-date {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 12px;
}

.agreement-link {
  color: var(--accent-primary);
  text-decoration: none;
  margin-left: 8px;
  font-size: 12px;
  transition: var(--transition);
}

.agreement-link:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.agreement-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.agreement-checkbox-wrapper input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.agreement-checkbox-wrapper label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agreement-checkbox-wrapper label span {
  flex: 1;
}

.agreement-modal {
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

.agreement-modal .modal-body {
  padding: 24px;
}

.agreement-modal .agreement-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* ==========================================================================
   Icon Components - SVG Based Icons
   ========================================================================== */

/* Check Icon */
.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-check::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

/* Cross Icon */
.icon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon-cross::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Eye Icon (View/Hide) */
.icon-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.icon-eye::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition);
}

.icon-eye:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
}

/* Eye Off Icon (Hidden) */
.icon-eye-off {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.icon-eye-off::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition);
}

.icon-eye-off:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6));
}
