/* --- Root Variables --- */
:root {
  --primary-color: #0052ff;
  --bg-color: #f8f9fa;
  --card-bg: #fff;
  --text-color: #202124;
  --muted-color: #5f6368;
  --sidebar-width: 280px;
  --primary-link-color: #0052ff;
  --heading-color: #000;
  --body-text-color: #262626;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* --- Base Layout --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: var(--body-text-color);
  transition: background-color 0.3s;
  min-height: 100vh;
}

@media (min-width: 901px) {
  body {
    display: flex;
  }
}

body.sidebar-open {
  background-color: rgba(0,0,0,0.1);
  overflow: hidden;
}

.content-wrapper {
  width: 100%;
  margin: 0;
  padding: 2.5rem 10rem 0 10rem;
  display: block;
  flex-grow: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%) !important;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-logo {
    padding: 18px 0 12px 0;
  }
  .content-wrapper {
    width: 100%;
    margin-left: 0;
    max-width: 100%;
    padding: 56px 24px 0 24px;
  }
  .main-content {
    padding-left: 0;
    padding-top: 2rem;
  }
}

.content-wrapper > *:last-child {
  margin-bottom: 4rem;
}

.login-google-partner {
    text-align: center;
    margin: 20px 0;
}

.partner-badge {
    height: 40px;
    margin-bottom: 10px;
}

.partner-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}


/* --- Header --- */
header {
  background: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: none !important;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 6px 12px;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
  color: var(--muted-color);
  display: flex;
  flex-direction: column;
  padding-top: 0;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border-right: 1px solid #e2e8f0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 18px 0;
}

.sidebar-logo img {
  height: 40px;
  width: auto;
}

.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-category {
  color: var(--muted-color);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px 6px 24px;
  margin-bottom: 2px;
  opacity: 0.8;
}

.sidebar a {
  color: var(--text-color);
  padding: 14px 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  background-color: #f8fafc;
  color: var(--heading-color);
  font-weight: 500;
}

.sidebar a.active {
  background-color: #f1f5f9;
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Main Content --- */
.main-content {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  transition: padding-left 0.3s ease;
  flex-grow: 1;
  min-height: 100vh;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  display: block;
  opacity: 1;
}

/* --- Navigation --- */
.brand img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
}

nav a.active {
  color: var(--primary-link-color);
}

/* --- Card Content --- */
.dashboard-cards {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  display: block;
}

.card, .card:hover {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 2.5rem;
}

.card h2, .section-header, h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: left;
}

.card p, .card ul {
  font-size: 1.05rem;
  color: var(--body-text-color) !important;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.status-card,
.terms-card,
.overview-card {
  border-left: none;
}

/* --- Buttons --- */
.button {
  pointer-events: auto;
  opacity: 1;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: none !important;
  transition: background 0.2s, box-shadow 0.2s;
}

.button.enabled,
#requestKeyButton.enabled,
.plan-box.recommended button.button {
  background: var(--primary-color);
  box-shadow: none !important;
  opacity: 1;
  color: #fff !important;
  text-decoration: none;
}

.button:disabled, .button:not(.enabled) {
  opacity: 0.5;
  pointer-events: none;
}

/* --- Form Styles --- */
.form-group, .core-app-form-group, .registration-form .form-group, .simulator-form-group {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-group.full-width, .core-app-form-group.full-width {
  grid-column: 1 / -1;
}

.form-group.token-group, .core-app-form-group.token-group {
  grid-column: 1 / -1;
}

.form-group label, .core-app-form-group label, .registration-form label, .simulator-form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text-color);
  font-size: 14px;
  transition: color 0.2s ease;
}

.form-group input,
.form-group select,
.form-group textarea,
.core-app-form-group input,
.core-app-form-group select,
.core-app-form-group textarea,
.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form select,
.simulator-form-group input[type="text"],
.simulator-form-group input[type="number"],
.simulator-form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  color: var(--text-color);
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.core-app-form-group input:focus,
.core-app-form-group select:focus,
.core-app-form-group textarea:focus,
.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form select:focus,
.simulator-form-group input[type="text"]:focus,
.simulator-form-group input[type="number"]:focus,
.simulator-form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 116, 224, 0.2);
}

.form-group input::placeholder,
.core-app-form-group input::placeholder,
.registration-form input::placeholder,
.simulator-form-group input::placeholder {
  color: var(--muted-color);
}

.form-group button {
  background-color: var(--primary-link-color);
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
}

.form-group button:hover {
  background-color: #007ecc;
}

/* --- Container Styles --- */
.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: none;
}

/* --- Report Styles --- */
.report-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  margin-bottom: 24px;
  box-shadow: none;
}

.section-header {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  text-align: left;
}

.data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f5;
}

.data-label {
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
}

.data-value {
  font-weight: 600;
  text-align: left;
}

.risk-high { 
  color: #dc3545; 
  font-weight: bold; 
}

.risk-neutral { 
  color: #28a745; 
  font-weight: bold; 
}

.small-mono {
  font-size: 12px;
  color: var(--muted-color);
  font-family: monospace;
}

/* --- Action Buttons --- */
.action-buttons {
  margin-top: 10px;
  text-align: right;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.action-btn {
  width: auto;
  padding: 6px 10px;
  font-size: 14px;
  background-color: var(--muted-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Token Input Styles --- */
.token-input {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: var(--text-color);
}

.token-help {
  font-size: 0.9em;
  color: var(--muted-color);
  margin-top: 4px;
}

.token-link {
  color: var(--primary-link-color);
  font-weight: 500;
  text-decoration: underline dotted;
}

/* --- Checkbox --- */
.checkbox {
  margin-right: 8px;
}

/* --- Iframe Wrapper --- */
.iframe-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

/* --- Footer --- */
footer {
  background: #fff;
  color: var(--text-color);
  text-align: center;
  padding: 10rem 0 30px 0;
  font-size: 1rem;
  margin-top: auto;
  box-shadow: none;
  flex-shrink: 0;
}

footer a {
  color: var(--primary-link-color);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

/* --- Upgrade Styles --- */
.upgrade-header-boxes {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin: 48px auto 64px auto;
  flex-wrap: wrap;
}

.plan-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  flex: 1 1 320px;
  min-width: 300px;
}

.plan-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.plan-box.recommended {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.plan-box.recommended:hover {
  transform: scale(1.05) translateY(-8px);
}

.plan-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-box .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.1;
}

.plan-box p {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 40px;
}

.plan-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
  width: 100%;
  flex-grow: 1;
}

.plan-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-size: 1rem;
  text-align: left;
}

.plan-box li::before {
  content: '⭐';
  color: #34a853;
  font-weight: 600;
  font-size: 1.1rem;
}

.plan-box form {
  margin-top: auto;
  width: 100%;
}

.plan-box button.button {
  background: #f1f5f9;
  color: var(--text-color);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 1;
  pointer-events: auto;
}

.plan-box button.button:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.plan-box.recommended button.button {
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.2);
}

.plan-box.recommended button.button:hover {
  background: #0041cc;
  color: #fff;
  text-decoration: none;
}

.badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--primary-color);
  color: white;
  padding: 4px 60px;
  font-size: 0.7rem;
  font-weight: 600;
  transform: rotate(45deg) translate(30%, -60%);
  transform-origin: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Registration Page Styles --- */
.registration-header {
  text-align: left;
  margin-bottom: 48px;
}

.registration-subtitle {
  font-size: 1.1rem;
  color: var(--muted-color);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 600px;
  position: relative;
  padding-left: 20px;
}

.registration-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  border-radius: 2px;
}

.registration-form {
  max-width: 700px;
  position: relative;
}

.registration-form::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-radius: 16px;
  z-index: -1;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.form-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  border-radius: 2px;
  transition: height 0.3s ease;
}

.form-section:hover .form-section-title::before {
  height: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.registration-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.registration-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.registration-form .form-group:focus-within label {
  color: var(--primary-color);
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background-color: #fff;
  font-size: 15px;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
}

.registration-form input[type="text"]:focus,
.registration-form input[type="email"]:focus,
.registration-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.registration-form input::placeholder {
  color: var(--muted-color);
  transition: color 0.2s ease;
}

.registration-form input:focus::placeholder {
  color: #cbd5e1;
}

.registration-form .error-msg {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 6px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.registration-form .error-msg:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

.registration-form .tooltip {
  font-size: 0.875rem;
  color: var(--muted-color);
  margin-left: 8px;
  font-weight: 400;
  position: relative;
  cursor: help;
}

.registration-form .tooltip::after {
  content: '?';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #f3f4f6;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  margin-left: 4px;
  color: var(--muted-color);
}

.smart-contract-input {
  margin-top: 8px;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background-color: #fff;
  font-size: 15px;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.smart-contract-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

.registration-form .add-btn {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.registration-form .add-btn:hover {
  color: #0041cc;
  background: rgba(0, 82, 255, 0.05);
  text-decoration: none;
}

.form-actions {
  text-align: left;
  margin-top: 40px;
  position: relative;
}

.form-actions::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
}

.registration-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.registration-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

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

.registration-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0041cc 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.3);
}

.registration-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.registration-message {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  display: none;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .registration-btn {
    width: 100%;
    min-width: auto;
  }
  
  .form-section:hover {
    padding: 16px;
    margin: 0 -16px 40px -16px;
  }
}

/* --- Simulator Page Styles --- */
.simulator-container {
  padding: 40px 20px;	  
  max-width: 680px;
  background: white;
  border: 1px solid #E6E8EC;
  border-radius: 16px;
  margin: 40px auto;
  box-shadow: none;
}

.simulator-container h2 {
  text-align: center;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 24px;
}

.simulator-subheading {
  text-align: center;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted-color);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.simulator-form-group input[type="text"], 
.simulator-form-group input[type="number"], 
.simulator-form-group select {
  width: 100%;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #CBD5E0;
  border-radius: 8px;
  background: #F7FAFC;
  color: var(--heading-color);
  outline: none;
  box-sizing: border-box;
}

.simulator-form-group input::placeholder {
  color: #A0AEC0;
}

.simulator-btn {
  background-color: #0052CC;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease-in-out;
  width: 100%;
}

.simulator-btn:disabled {
  background-color: #A0AEC0;
  cursor: not-allowed;
}

.simulator-btn:hover:enabled {
  background-color: #0041AA;
}

.joke-box {
  margin-top: 1rem;
  font-style: italic;
  color: var(--muted-color);
  font-size: 0.9rem;
  text-align: center;
}

.simulator-result-box {
  margin-top: 32px;
  border-radius: 12px;
  padding: 24px 30px;
  background-color: #F9FAFB;
  border: 1px solid #E2E8F0;
}

.risk-entry {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border-left: 6px solid #CBD5E0;
}

.risk-entry.LOW { 
  border-color: #00B894; 
}

.risk-entry.NOTICE { 
  border-color: #FFA726; 
}

.risk-entry.ANOMALY { 
  border-color: #EF5350; 
}

.risk-entry.EXPLAINED { 
  font-size: 13px; 
  color: var(--muted-color); 
  margin-top: 4px; 
}

.summary-section {
  padding: 12px 16px;
  border-bottom: 1px solid #E0E0E0;
  background: #ffffff;
  margin-bottom: 16px;
  border-radius: 8px;
}

.simulator-token-help {
  font-size: 13px;
  margin-top: 6px;
}

.simulator-token-help a {
  color: #0052CC;
  text-decoration: underline;
}

.simulator-token-help a:hover {
  color: #003B99;
}

.network-notice {
  margin-top: -16px;
  margin-bottom: 24px;
  color: #D97706;
  font-size: 13px;
  display: none;
}

@media (max-width: 720px) {
  .simulator-container {
    margin: 20px;
    padding: 32px 20px;
  }
}

/* --- Upgrade Page Specific Styles --- */
.upgrade-status-box {
  background-color: #e6f7ff;
  border-left: 6px solid #00A3FF;
  padding: 16px;
  margin-bottom: 20px;
}

.upgrade-status-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.upgrade-status-box code {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.upgrade-status-box a {
  color: #00A3FF;
  text-decoration: none;
}

.upgrade-status-box a:hover {
  text-decoration: underline;
}

.upgrade-message {
  margin-top: 20px;
  font-weight: bold;
}

.alert {
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  display: none;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.alert.show {
  display: flex;
}

.alert-icon {
  font-size: 1.5rem;
  margin-top: 2px;
  line-height: 1;
}

.alert-success {
  background-color: #e6f4ea;
  border: 1px solid #b7e1c7;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.upgrade-features {
  margin: 0;
  padding: 0;
}

.upgrade-features ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.upgrade-features li {
  margin-bottom: 14px;
  color: var(--text-color);
  font-size: 1.08rem;
  position: relative;
}

.upgrade-features li::marker {
  font-size: 1em;
}

.upgrade-details {
  margin: 40px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: flex-start;
}

.upgrade-info-box {
  background: #fff;
  border: 1.5px solid #DAEEFF;
  border-radius: 14px;
  padding: 26px 24px 18px 24px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 280px;
  margin-bottom: 0;
  margin-right: 0;
  box-shadow: none;
}

.upgrade-info-box h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary-link-color);
  font-size: 1.13rem;
  font-weight: 700;
}

.upgrade-info-box ul {
  list-style: disc inside;
  padding-left: 1.2em;
  margin: 0;
}

.upgrade-info-box li {
  margin-bottom: 10px;
  color: var(--text-color);
  font-size: 1.01rem;
}

.upgrade-info-box li::marker {
  color: var(--primary-link-color);
  font-size: 1.1em;
}

@media (max-width: 900px) {
  .upgrade-details {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .upgrade-info-box {
    min-width: 0;
    width: 100%;
    max-width: 400px;
  }
}

/* --- Login Page Styles --- */
.login-body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 48px;
  width: 100%;
  max-width: 450px;
  box-shadow: none;
  text-align: center;
  border: 1px solid #eaf2ff;
}

.login-card-header {
  margin-bottom: 32px;
}

.login-logo {
  height: 50px;
  margin-bottom: 24px;
}

.login-card-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.login-card-header p {
  font-size: 16px;
  color: var(--muted-color);
  margin: 0;
  line-height: 1.5;
}

.g_id_signin {
  margin: 0 auto 32px auto;
  display: flex;
  justify-content: center;
}

.login-card-footer {
  font-size: 12px;
  color: var(--muted-color);
  line-height: 1.6;
}

.login-card-footer a {
  color: var(--primary-link-color);
  text-decoration: none;
  font-weight: 500;
}

.login-card-footer a:hover {
  text-decoration: underline;
}

.login-footer-text {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted-color);
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
  }
}

/* --- Docs Page Styles --- */
.docs-container {
  max-width: 820px;
  background: #fff;
  border: 1px solid #E6E8EC;
  padding: 40px;
  border-radius: 16px;
  margin: 30px auto;
  box-shadow: none;
}

.docs-container h2 {
  text-align: center;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 24px;
}

.docs-subheading {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.docs-subheading ul {
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.docs-subheading ul li {
  margin-bottom: 8px;
}

.docs-subheading a {
  color: var(--primary-link-color);
  text-decoration: underline;
}

.docs-subheading a:hover {
  color: #003b99;
}

@media (max-width: 900px) {
  .dashboard-cards {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.dashboard-cards.cardless {
  display: block;
  margin-bottom: 2rem;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}

.section-header {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top:2.5rem;
  letter-spacing: -0.5px;
  text-align: left;
}

.section-divider {
  border: none;
  border-top: 1.5px solid #e3e7ed;
  margin: 2.5rem 0 2.5rem 0;
}

.dashboard-cards.cardless p,
.dashboard-cards.cardless ul {
  font-size: 1.08rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.3rem;
}

.dashboard-cards.cardless ul {
  margin-left: 1.2rem;
  margin-bottom: 1.5rem;
}

#requestKeyButton {
  display: inline-block;
  background: linear-gradient(90deg, #1a73e8 60%, #4285f4 100%);
  color: #fff !important;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  border: none;
  box-shadow: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
#requestKeyButton:hover, 
#requestKeyButton.enabled:hover,
.plan-box.recommended button.button:hover {
  background: #0041cc;
  color: #fff;
  text-decoration: none;
}
#requestKeyButton:disabled, #requestKeyButton:not(.enabled) {
  opacity: 0.5;
  pointer-events: none;
}

#requestKeyButton .arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

#requestKeyButton:hover .arrow-icon {
  transform: translateX(5px);
}

/* Mobile header styles */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%);
  padding: 10px 18px;
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}
.mobile-logo img {
  height: 36px;
  width: auto;
}
.mobile-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 6px 12px;
  z-index: 1250;
}

@media (max-width: 900px) {
  .mobile-header {
    display: flex;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;
    width: 240px;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%) !important;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-logo {
    padding: 18px 0 12px 0;
  }
  .content-wrapper {
    padding-top: 56px;
  }
  .main-content {
    padding-left: 0;
    padding-top: 64px;
  }
}

@media (min-width: 901px) {
  .mobile-header {
    display: none;
  }
}

.footer-links {
  margin-bottom: 18px;
}
.footer-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 18px;
  margin-bottom: 2px;
}
.footer-sep {
  color: var(--muted-color);
  margin: 0 8px;
  font-weight: 400;
}
.footer-alert-row {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-color);
}
.footer-alert {
  color: var(--primary-link-color);
  font-weight: 500;
  margin-left: 6px;
}
.footer-copy {
  font-size: 0.98rem;
  color: var(--text-color);
  margin-top: 8px;
}

.trial-warning {
  background: #fff8e1;
  border: 1px solid #ffe0b2;
  border-radius: 10px;
  padding: 18px 20px 14px 20px;
  margin: 24px 0 18px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.trial-warning-icon {
  font-size: 1.5rem;
  margin-top: 2px;
}
.trial-warning-main {
  font-weight: 700;
  color: #b26a00;
  font-size: 1.08rem;
  margin-bottom: 2px;
}
.trial-warning-support {
  color: var(--muted-color);
  font-size: 1rem;
}

.main-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 1.5rem 0;
}

.main-content li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
  line-height: 1.6;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-top: -2px;
  color: var(--primary-color);
}

.feature-text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #262626;
}

.feature-text span {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Core Apps Styles (Exact Registration Form Style) --- */
.core-app-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  margin: auto;
}

.core-app-header {
  text-align: center;
  margin-bottom: 30px;
}

.core-app-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.core-app-subtitle {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.core-app-form-section {
  margin-bottom: 30px;
}

.core-app-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.core-app-form-group {
  margin-bottom: 18px;
}

.core-app-form-group.full-width {
  grid-column: 1 / -1;
}

.core-app-form-group.token-group {
  grid-column: 1 / -1;
}

.core-app-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.core-app-form-group input,
.core-app-form-group select,
.core-app-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  color: #334155;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.core-app-form-group input:focus,
.core-app-form-group select:focus,
.core-app-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 116, 224, 0.2);
}

.core-app-form-group input::placeholder {
  color: #999;
}

.core-app-token-input {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.core-app-token-help {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.core-app-token-link {
  font-weight: 400;
  font-size: 12px;
}

.core-app-token-link a {
  color: #00A3FF;
  text-decoration: none;
  font-weight: 500;
}

.core-app-token-link a:hover {
  text-decoration: underline;
}

.core-app-submit-section {
  text-align: center;
  margin-top: 20px;
}

.core-app-submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.core-app-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.core-app-submit-btn:hover::before {
  left: 100%;
}

.core-app-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0041cc 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.3);
  transform: translateY(-2px);
}

.core-app-submit-btn:disabled {
  background-color: #94a3b8;
  background-image: none;
  cursor: not-allowed;
  transform: none;
}

.core-app-action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.core-app-action-btn {
  padding: 8px 16px;
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.core-app-action-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
}

.core-app-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.core-app-result-box {
  margin-top: 30px;
}

.core-app-report-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.core-app-section-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.core-app-data-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
  align-items: center;
}

.core-app-data-row:last-child {
  border-bottom: none;
}

.core-app-data-label {
  font-weight: 500;
  color: #666;
  font-size: 14px;
}

.core-app-data-value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.core-app-risk-high {
  color: #dc3545;
  font-weight: bold;
  background: rgba(220, 53, 69, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.core-app-risk-neutral {
  color: #28a745;
  font-weight: bold;
  background: rgba(40, 167, 69, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.core-app-small-mono {
  font-size: 12px;
  color: #666;
  font-family: monospace;
  background: #f8f9fa;
  padding: 2px 4px;
  border-radius: 2px;
}

.core-app-loading-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.core-app-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-top: 2px solid #00A3FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Simulator specific styles */
.core-app-risk-entry {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #fff;
  border-left: 4px solid #dee2e6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.core-app-risk-entry.LOW {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.core-app-risk-entry.NOTICE {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.core-app-risk-entry.ANOMALY {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

.core-app-risk-entry.EXPLAINED {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  padding-left: 8px;
  border-left: 2px solid #dee2e6;
}

.core-app-summary-section {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  margin-bottom: 16px;
  border-radius: 6px;
  font-weight: 500;
  color: #333;
}

.core-app-network-notice {
  margin-top: -8px;
  margin-bottom: 20px;
  color: #856404;
  font-size: 12px;
  display: none;
  padding: 6px 10px;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 4px;
  border-left: 3px solid #ffc107;
}

.core-app-joke-box {
  font-size: 12px;
  color: #666;
  margin-top: 12px;
  text-align: center;
  font-style: italic;
  padding: 8px;
  background: rgba(0, 163, 255, 0.05);
  border-radius: 4px;
  border-left: 3px solid #00A3FF;
}

/* Anomaly analyzer specific styles */
.core-app-anomaly-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
}

.core-app-score-low {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.core-app-score-moderate {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.core-app-score-high {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.core-app-explanation-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  margin-top: 25px;
  border: 1px solid #e9ecef;
}

.core-app-explanation-section ul {
  margin: 0;
  padding-left: 20px;
}

.core-app-explanation-section li {
  margin-bottom: 12px;
  line-height: 1.5;
  color: #333;
}

.core-app-explanation-section strong {
  color: #333;
}

.core-app-explanation-section ul ul {
  margin-top: 6px;
  margin-bottom: 12px;
}

.core-app-explanation-section ul ul li {
  margin-bottom: 6px;
  font-size: 13px;
  color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
  .core-app-container {
    padding: 25px 20px;
    margin: 20px;
  }
  
  .core-app-title {
    font-size: 20px;
  }
  
  .core-app-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .core-app-data-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .core-app-action-buttons {
    flex-direction: column;
  }
}


.app-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.app-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.app-subtitle {
  font-size: 1rem;
  color: #475569;
  max-width: 85ch;
  margin: 0;
}

.app-section {
  margin-bottom: 2.5rem;
}

.app-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1.5rem;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-controls {
  display: flex;
  gap: 1rem;
}

.accordion-control-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.accordion-control-btn:hover {
  text-decoration: underline;
}

.app-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.5rem; /* row-gap, column-gap */
}

.app-form-group {
  display: flex;
  flex-direction: column;
}

.app-form-group.full-width {
  grid-column: 1 / -1;
}

.app-form-group label {
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.app-form-group input,
.app-form-group select,
.app-form-group textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  color: #334155;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.app-form-group input:focus,
.app-form-group select:focus,
.app-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 116, 224, 0.2);
}

.app-form-group .token-help {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.app-form-group .token-input {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

.app-submit-section {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.app-submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.app-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

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

.app-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0041cc 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(0, 82, 255, 0.3);
  transform: translateY(-2px);
}

.app-submit-btn:disabled {
  background-color: #94a3b8;
  background-image: none;
  cursor: not-allowed;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  body.sidebar-open {
    background-color: rgba(0,0,0,0.1);
  }
}

.network-notice {
  font-size: 0.85rem;
  color: #c2410c;
  background-color: #fff7ed;
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 5px solid #fb923c;
  margin-top: 0.5rem;
}

/* --- Explanation Accordion --- */
.explanation-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e2e8f0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: #f8fafc;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: #f1f5f9;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fff;
}

.accordion-content p {
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.accordion-item.active .accordion-header {
  background-color: #f1f5f9;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
  max-height: 200px; /* Adjust as needed */
  padding-bottom: 1rem;
}

/* --- Resource Link Cards --- */
.resource-link-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.resource-link-card:hover {
  border-color: var(--primary-color);
  background-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.resource-link-card strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}
.resource-link-card span {
  font-size: 0.95rem;
  color: #475569;
}

/* General text color */
body, p, .card p, .card ul, .main-content, .core-app-container, .core-app-form-group, .core-app-data-value, .core-app-form-group label, .core-app-token-help, .core-app-small-mono, .core-app-joke-box, .core-app-explanation-section, .docs-subheading, .dashboard-cards.cardless p, .dashboard-cards.cardless ul {
  color: var(--body-text-color) !important;
}

/* Headings color */
h1, h2, h3, h4, h5, h6, .card h2, .section-header, .form-section-title, .core-app-title, .core-app-section-header, .core-app-header, .app-title, .app-section-title {
  color: var(--heading-color) !important;
  font-weight: 700;
}

/* App-wide link color (excluding sidebar/sidenav) */
a:not(.sidebar a):not(.sidebar-category),
nav a,
.token-link,
.core-app-token-link a,
.docs-subheading a,
.footer-links a,
.login-card-footer a,
.resource-link-card,
.resource-link-card strong {
  color: var(--primary-link-color) !important;
  text-decoration: underline;
}

a:not(.sidebar a):not(.sidebar-category):hover,
nav a:hover,
.token-link:hover,
.core-app-token-link a:hover,
.docs-subheading a:hover,
.footer-links a:hover,
.login-card-footer a:hover,
.resource-link-card:hover,
.resource-link-card strong:hover {
  color: #003b99 !important;
  text-decoration: underline;
}

.headerimage{
  margin-top:20px;
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .google-signin-btn {
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}
