/* Trkeeb Pro — تركيب برو */
:root {
  --color-primary: #0c6e9e;
  --color-primary-dark: #073a56;
  --color-primary-light: #d8eff9;
  --color-accent: #00a8e8;
  --color-dark: #10203a;
  --color-text: #1f2a3d;
  --color-text-muted: #5f6f86;
  --color-border: rgba(14, 77, 125, 0.12);
  --color-bg: #eff6fb;
  --color-white: #ffffff;
  --color-success: #059669;
  --color-whatsapp: #25d366;
  --hero-bg-image: url("https://images.unsplash.com/photo-1631545914516-26b3850b83b8?w=1920&q=80");
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-lg: 24px;
  --font: "Tajawal", system-ui, sans-serif;
  --header-h: 76px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text);
  background: radial-gradient(circle at top left, rgba(0, 168, 232, 0.14), transparent 28%),
              radial-gradient(circle at bottom right, rgba(12, 110, 158, 0.1), transparent 24%),
              var(--color-bg);
  direction: rtl;
  text-align: right;
}

body.lang-en {
  direction: ltr;
  text-align: left;
}

body.lang-en .nav-main,
body.lang-en .header-actions,
body.lang-en .nav-mobile,
body.lang-en .logo,
body.lang-en .hero-buttons,
body.lang-en .social-links,
body.lang-en .cr-downloads,
body.lang-en .breadcrumb {
  direction: ltr;
}

body.lang-en .stat-item {
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

body.lang-en .stat-item:last-child {
  border-left: none;
}

body.lang-en .faq-question {
  text-align: left;
}

body.lang-en .form-group input,
body.lang-en .form-group select,
body.lang-en .form-group textarea {
  direction: ltr;
  text-align: left;
}

body.lang-en .service-detail:nth-child(even),
body.lang-en .service-detail:nth-child(even) .service-detail-text {
  direction: ltr;
  text-align: left;
}

body.lang-en .cr-table th,
body.lang-en .cr-table td {
  text-align: left;
}

body.lang-en .content-page ul {
  padding-right: 0;
  padding-left: 1.5rem;
}

body.lang-en .testimonial::before {
  right: auto;
  left: 1rem;
}

body.lang-en .cr-disclaimer {
  border-right: 0;
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius) 0 0 var(--radius);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border-color: rgba(12, 110, 158, 0.2);
  box-shadow: 0 16px 30px rgba(12, 110, 158, 0.07);
}

.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

.btn-language {
  background: #eef7fb;
  color: var(--color-primary-dark);
  border-color: rgba(12, 110, 158, 0.2);
  min-width: 86px;
}

.btn-language:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Hide settings button globally */
a[href="settings.html"] {
  display: none !important;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(14, 77, 125, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.4rem;
}

.logo-text strong {
  display: block;
  font-size: 1.15rem;
  color: var(--color-dark);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-main a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--color-primary);
  text-shadow: 0 1px 4px rgba(12, 110, 158, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 56, 89, 0.82) 0%, rgba(7, 56, 89, 0.55) 35%, rgba(0, 168, 232, 0.22) 100%),
    var(--hero-bg-image) center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 700px;
  color: var(--color-white);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) * 1.2);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.stat-item {
  padding: 1rem 0.75rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
}

.stat-item span {
  display: block;
  margin-top: 0.3rem;
}

.stat-item span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(247, 250, 255, 0.9);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Services */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .card-icon {
  background: linear-gradient(135deg, var(--color-primary-light), #d4f1fc);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.step-item h4 {
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-overlay span {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 3rem;
  color: rgba(12, 110, 158, 0.16);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial .stars {
  color: #f59e0b;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.testimonial p {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  text-align: right;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-success {
  display: none;
  background: #d1fae5;
  color: var(--color-success);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-grid ul li {
  margin-bottom: 0.6rem;
}

.footer-grid a:hover {
  color: var(--color-accent);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Legal / content pages */
.content-page {
  padding: 3rem 0 5rem;
}

.content-page .prose {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin: 2rem 0 0.75rem;
  font-weight: 800;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p,
.content-page li {
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.content-page ul {
  list-style: disc;
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.services-detail-grid {
  display: grid;
  gap: 2rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
}

.service-detail:nth-child(even) {
  direction: ltr;
}

.service-detail:nth-child(even) .service-detail-text {
  direction: rtl;
  text-align: right;
}

.service-detail img {
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.service-detail h3 {
  font-size: 1.35rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Mobile nav */
@media (max-width: 992px) {
  .nav-main {
    display: none;
  }

  .header-actions {
    display: flex;
    margin-inline-start: auto;
  }

  .header-actions a {
    display: none;
  }

  .header-actions .btn-language {
    display: inline-flex;
    min-width: 74px;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
  }

  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-mobile .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .header-inner {
    gap: 0.5rem;
  }

  .logo {
    flex: 1 1 auto;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .logo-text {
    min-width: 0;
  }

  .logo-text strong {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .logo-text span {
    display: none;
  }

  .header-actions .btn-language {
    min-width: 66px;
    padding: 0.4rem 0.65rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

/* Commercial record page */
.cr-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.cr-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cr-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 2rem 0 1rem;
}

.cr-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-white);
}

.cr-table th,
.cr-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: right;
}

.cr-table th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.cr-table tr:last-child td {
  border-bottom: none;
}

.cr-table td:nth-child(3) strong {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.cr-activities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cr-activities li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.cr-activities code {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cr-activities span {
  display: block;
  margin-top: 0.35rem;
}

.cr-activities span[lang="en"] {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.cr-manager {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

.cr-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border-right: 3px solid var(--color-primary);
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.footer-legal {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-legal span[dir="ltr"] {
  display: inline-block;
}

.settings-page {
  background: var(--color-bg);
}

.settings-section {
  padding-bottom: 3rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(320px, 1fr);
  gap: 2rem;
  align-items: start;
}

.settings-panel {
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.settings-panel h2 {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.settings-panel p,
.settings-panel .settings-note {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.settings-panel .settings-note {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--color-primary-light);
}

.settings-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: grid;
  gap: 0.6rem;
}

.form-group label {
  font-weight: 700;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(12, 110, 158, 0.12);
}

.form-control[type="color"] {
  height: 56px;
  padding: 0.25rem;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
