@font-face {
    font-family: "Great Vibes";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/GreatVibes-Regular-tFK2q0F.ttf") format("truetype");
}

@font-face {
    font-family: "Allura";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/Allura-Regular-InFdFSo.ttf") format("truetype");
}

:root {
    --primary: #173d63;
    --primary-dark: #0d263f;
    --primary-light: #2d628f;
    --secondary: #657383;
    --secondary-dark: #46515d;
    --accent: #c99b4b;
    --gold: #a97d31;
    --dark: #091b2c;
    --gray-50: #fafaf8;
    --gray-100: #f4f4f1;
    --gray-200: #e7e5df;
    --gray-300: #d5d2ca;
    --gray-400: #aaa69d;
    --gray-600: #666b70;
    --gray-700: #454b51;
    --gray-800: #252b31;
    --danger: #b42318;
    --radius-md: 0.55rem;
    --radius-lg: 0.9rem;
    --shadow-sm: 0 2px 8px rgba(13, 38, 63, 0.08);
    --shadow-lg: 0 24px 60px rgba(13, 38, 63, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: #fffefa;
    color: var(--gray-800);
    display: flex;
    flex-direction: column;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, p, ul {
    margin-top: 0;
}

ul {
    margin-bottom: 0;
    padding-left: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1240px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.navbar {
    background: rgba(255, 254, 250, 0.97);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(13, 38, 63, 0.05);
    position: relative;
    z-index: 50;
}

.navbar-container {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    min-height: 5rem;
}

.navbar-brand {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    flex-shrink: 0;
    font-family: Georgia, "Times New Roman", serif;
    gap: 0.8rem;
}

.brand-logo {
    height: 3.25rem;
    object-fit: contain;
    width: 3.25rem;
}

.brand-wordmark strong {
    font-size: 1rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-wordmark small {
    color: var(--secondary);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 650;
    color: var(--gray-700);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 0.125rem;
    transition: color 0.15s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: right 0.2s ease-in-out;
}

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

.nav-link-alert {
    color: var(--danger);
}

.nav-link:hover::after, .nav-link.active::after {
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.6rem;
    list-style: none;
    max-width: 16rem;
    overflow: hidden;
    padding: 0.55rem 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    border-left: 0.3rem solid transparent;
    border-right: 0.3rem solid transparent;
    border-top: 0.35rem solid currentColor;
    content: '';
    flex-shrink: 0;
}

.account-menu[open] summary,
.account-menu summary:hover {
    background: var(--gray-100);
    border-color: var(--primary-light);
}

.account-menu-dropdown {
    background: #fffefa;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    padding: 0.4rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 100;
}

.account-menu-dropdown a {
    border-radius: 0.4rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 650;
    padding: 0.6rem 0.75rem;
}

.account-menu-dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(201, 155, 75, 0.55);
    outline-offset: 3px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-gold {
    background: #a97d31;
    border-color: #a97d31;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(90, 62, 19, 0.22);
}

.btn-gold:hover {
    background: #866024;
    border-color: #866024;
    color: #ffffff;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

/* Cards & Layout */
.card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: #ffffff;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-gold {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-red {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-pink {
    background-color: #fce7f3;
    color: #9d174d;
}

.badge-gray {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background-color: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-control, .form-select, textarea.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--gray-800);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Amber Alert Banner */
.amber-alert-bar {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.amber-alert-bar a {
    color: #fef08a;
    text-decoration: underline;
    font-weight: 700;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--dark);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer h5 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.625rem;
}

.footer a {
    color: var(--gray-400);
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Auth Pages (Sign In / Sign Up) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 3.5rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 2.25rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.925rem;
}

.btn-social {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.btn-social:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* Institutional landing page */
.official-hero {
    background-color: var(--primary-dark);
    background-image: linear-gradient(110deg, rgba(11, 32, 56, 0.98), rgba(23, 54, 87, 0.94)), repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(255, 255, 255, 0.018) 14px, rgba(255, 255, 255, 0.018) 15px);
    border-bottom: 5px solid var(--accent);
    color: #ffffff;
    overflow: hidden;
    padding: 6.5rem 0;
    position: relative;
}

.official-hero::after {
    background: radial-gradient(circle, rgba(201, 155, 75, 0.16) 0, rgba(201, 155, 75, 0) 68%);
    content: "";
    height: 44rem;
    pointer-events: none;
    position: absolute;
    right: -15rem;
    top: -16rem;
    width: 44rem;
}

.official-hero-grid {
    align-items: center;
    display: grid;
    gap: 4rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: #d8bd82;
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.society-motto {
    color: #d8bd82;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    margin: -0.65rem 0 1.35rem;
    text-transform: uppercase;
}

.official-hero h1,
.section-title,
.certificate-preview h2,
.name-feature strong {
    font-family: Georgia, "Times New Roman", serif;
}

.official-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.04;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.official-hero p {
    color: #d7dee6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 700px;
}

.hero-price {
    align-items: baseline;
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1.75rem;
}

.hero-price strong {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
}

.hero-price span {
    color: #b9c5d1;
    font-size: 0.84rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.hero-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    list-style: none;
    margin-top: 1.5rem;
}

.hero-assurances li {
    color: #d7dee6;
    font-size: 0.78rem;
}

.hero-assurances li::before {
    color: #d8bd82;
    content: "✓";
    font-weight: 800;
    margin-right: 0.45rem;
}

.hero-secondary {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
    color: #ffffff;
}

.hero-certificate {
    background: #f8f4ea;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.35);
    padding: 0.55rem;
    position: relative;
    transform: rotate(2deg);
    z-index: 1;
}

.hero-certificate-inner {
    align-items: center;
    aspect-ratio: 1.414 / 1;
    background: radial-gradient(circle at center, #fffdf8 0%, #f4eddd 100%);
    border: 4px solid #10243e;
    color: #10243e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.75rem 1.1rem;
    position: relative;
    text-align: center;
}

.hero-certificate-inner::before {
    border: 1px solid #b58a3a;
    bottom: 0.35rem;
    content: "";
    left: 0.35rem;
    outline: 1px solid #b58a3a;
    outline-offset: -0.18rem;
    pointer-events: none;
    position: absolute;
    right: 0.35rem;
    top: 0.35rem;
}

.hero-certificate-watermark {
    color: rgba(181, 138, 58, 0.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.16em;
    position: absolute;
    text-transform: uppercase;
    top: 43%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.hero-certificate-corner {
    height: 1rem;
    position: absolute;
    width: 1rem;
}

.hero-certificate-corner-tl { border-left: 1px solid #b58a3a; border-top: 1px solid #b58a3a; left: 0.7rem; top: 0.65rem; }
.hero-certificate-corner-tr { border-right: 1px solid #b58a3a; border-top: 1px solid #b58a3a; right: 0.7rem; top: 0.65rem; }
.hero-certificate-corner-bl { border-bottom: 1px solid #b58a3a; border-left: 1px solid #b58a3a; bottom: 0.65rem; left: 0.7rem; }
.hero-certificate-corner-br { border-bottom: 1px solid #b58a3a; border-right: 1px solid #b58a3a; bottom: 0.65rem; right: 0.7rem; }

.hero-certificate-masthead {
    align-items: center;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.35rem;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-top: 0.05rem;
    text-transform: uppercase;
    z-index: 1;
}

.hero-certificate-masthead img {
    height: 1.7rem;
    width: 1.7rem;
}

.hero-certificate-motto {
    color: #8b682d;
    font-size: 0.34rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    margin-top: 0.1rem;
    text-transform: uppercase;
    z-index: 1;
}

.hero-certificate-ornament {
    color: #b58a3a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    line-height: 1;
    margin: 0.2rem 0;
    z-index: 1;
}

.hero-certificate-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    z-index: 1;
}

.hero-certificate-declaration {
    color: #46515d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.48rem;
    font-style: italic;
    line-height: 1.2;
    margin-top: 0.42rem;
    width: 92%;
    z-index: 1;
}

.hero-certificate-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin: 0.14rem 0 0.1rem;
    text-transform: uppercase;
    z-index: 1;
}

.hero-certificate-copy {
    color: #46515d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.44rem;
    line-height: 1.3;
    z-index: 1;
}

.hero-certificate-copy strong {
    color: #10243e;
    font-size: 0.47rem;
}

.hero-certificate-date {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.44rem;
    margin-top: 0.1rem;
    z-index: 1;
}

.hero-certificate-authentication {
    align-items: flex-end;
    bottom: 0.72rem;
    display: grid;
    grid-template-columns: 1fr 0.85fr 1fr;
    left: 1.1rem;
    position: absolute;
    right: 1.1rem;
    z-index: 1;
}

.hero-certificate-signatory {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.hero-certificate-signatory strong {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.hero-certificate-signature-beatrice { font-family: "Great Vibes", cursive; }
.hero-certificate-signature-theodore { font-family: "Allura", cursive; }

.hero-certificate-signatory > span {
    border-top: 1px solid #10243e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.34rem;
    margin: 0.12rem auto 0;
    padding-top: 0.09rem;
    width: 78%;
}

.hero-certificate-signatory small {
    color: #8b682d;
    font-size: 0.24rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-certificate-verification {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: monospace;
    font-size: 0.28rem;
    line-height: 1.2;
}

.hero-certificate-verification > img {
    height: 2.6rem;
    object-fit: contain;
    width: 2.6rem;
}

.hero-certificate-verification > span {
    align-items: center;
    color: #8b682d;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 0.24rem;
    font-weight: 700;
    gap: 0.12rem;
    letter-spacing: 0.04em;
    margin-top: 0.06rem;
    text-transform: uppercase;
}

.hero-certificate-verification em {
    font-style: normal;
}

.hero-certificate-qr {
    background:
        linear-gradient(90deg, #10243e 25%, transparent 25% 50%, #10243e 50% 75%, transparent 75%),
        linear-gradient(#10243e 25%, transparent 25% 50%, #10243e 50% 75%, transparent 75%);
    background-size: 0.18rem 0.18rem;
    border: 1px solid #10243e;
    height: 0.58rem;
    width: 0.58rem;
}

.registry-facts {
    background: #f2ede3;
    border-bottom: 1px solid #d8cebc;
}

.registry-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.registry-fact {
    border-right: 1px solid #d8cebc;
    padding: 1.6rem 1rem;
    text-align: center;
}

.registry-fact:last-child {
    border-right: 0;
}

.registry-fact strong {
    color: var(--primary);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 500;
}

.registry-fact span {
    color: var(--gray-600);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.official-section {
    padding: 4.5rem 0;
}

.official-section-muted {
    background: #f3f0e9;
    border-bottom: 1px solid #ded6c8;
    border-top: 1px solid #ded6c8;
}

.section-heading {
    margin-bottom: 2.25rem;
    max-width: 720px;
}

.section-heading-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    color: var(--primary-dark);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-intro {
    color: var(--gray-600);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.official-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.official-panel {
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-top: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.official-panel-number {
    color: var(--gold);
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.official-panel h3 {
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.65rem;
}

.official-panel p {
    color: var(--gray-600);
    font-size: 0.92rem;
}

.feature-grid {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 0.85fr 1.15fr;
}

.name-feature,
.certificate-preview {
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
}

.name-feature strong {
    color: var(--primary);
    display: block;
    font-size: 2.8rem;
    font-weight: 500;
    margin: 1rem 0 0.2rem;
}

.name-feature p,
.certificate-preview p {
    color: var(--gray-600);
}

.certificate-preview {
    border-left: 5px solid var(--accent);
}

.certificate-preview h2 {
    color: var(--primary-dark);
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.official-list {
    list-style: none;
    margin: 1.4rem 0 1.75rem;
}

.official-list li {
    border-top: 1px solid var(--gray-200);
    padding: 0.65rem 0 0.65rem 1.5rem;
    position: relative;
}

.official-list li::before {
    color: var(--gold);
    content: "◆";
    font-size: 0.55rem;
    left: 0.15rem;
    position: absolute;
    top: 0.95rem;
}

.registry-cards,
.plans-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.registry-card {
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.registry-card-image {
    align-items: center;
    background: var(--gray-100);
    display: flex;
    height: 175px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.registry-card-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.registry-monogram {
    color: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
}

.registry-card-body {
    padding: 1.4rem;
}

.registry-card-body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
}

.registry-id {
    color: var(--secondary);
    display: block;
    font-family: monospace;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    text-align: left;
}

.plan-card-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-0.5rem);
}

.plan-badge {
    background: var(--accent);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.7rem;
    position: absolute;
    right: 1.25rem;
    text-transform: uppercase;
    top: -0.8rem;
}

.plan-card h3 {
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.plan-price {
    color: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    margin: 0.65rem 0;
}

.plan-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    min-height: 4.5rem;
}

.plan-card .btn {
    margin-top: 1.25rem;
    width: 100%;
}

.lead-section {
    background: var(--primary);
    color: #ffffff;
    padding: 3rem 0;
}

.lead-inner {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

.lead-section h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 500;
}

.lead-section p {
    color: #d7dee6;
}

.lead-form {
    display: flex;
    gap: 0.6rem;
}

.lead-form input {
    border: 1px solid #ffffff;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
}

.footer-brand {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.brand-logo-small {
    flex-basis: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
}

.footer-summary,
.footer-copyright {
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Registration campaign */
.promo-hero {
    background: var(--primary-dark);
    border-bottom: 5px solid var(--accent);
    color: #ffffff;
    padding: 5rem 0;
}

.promo-hero-grid {
    align-items: center;
    display: grid;
    gap: 4.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.promo-copy h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.promo-lead {
    color: #d7dee6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
    line-height: 1.7;
    max-width: 680px;
}

.promo-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.promo-actions span {
    color: #b9c5d1;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.promo-assurances {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.6rem;
    list-style: none;
    margin-top: 1.75rem;
}

.promo-assurances li {
    color: #d7dee6;
    font-size: 0.82rem;
}

.promo-assurances li::before {
    color: #d8bd82;
    content: "✓";
    margin-right: 0.45rem;
}

.promo-certificate {
    background: #e8dfca;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.32);
    padding: 0.65rem;
    transform: rotate(1.5deg);
}

.promo-certificate-inner {
    align-items: center;
    aspect-ratio: 1.414 / 1;
    background: #fffdf7;
    border: 3px double #9a7738;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem;
    text-align: center;
}

.promo-certificate-kicker,
.promo-certificate-id {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.promo-certificate-rule {
    background: #a97d31;
    height: 1px;
    margin: 0.6rem auto;
    width: 55%;
}

.promo-certificate-inner small {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.promo-certificate-name {
    border-bottom: 1px solid #b9a987;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin: 0.6rem 0 0.25rem;
    padding: 0 1.5rem 0.15rem;
}

.promo-certificate-inner p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.68rem;
}

.promo-certificate-seal {
    align-items: center;
    background: var(--primary-dark);
    border: 2px solid #b58a3a;
    border-radius: 50%;
    color: #f9f4e7;
    display: flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.58rem;
    height: 2.8rem;
    justify-content: center;
    margin: 0.65rem 0;
    width: 2.8rem;
}

.promo-proof {
    background: #f6f2e9;
    padding: 5rem 0;
}

.promo-section-heading {
    margin-bottom: 2.5rem;
    max-width: 760px;
    text-align: center;
}

.promo-section-heading h2,
.promo-final h2 {
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.promo-section-heading p {
    color: var(--gray-600);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

.promo-benefits {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}

.promo-benefits article {
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-top: 3px solid var(--primary);
    padding: 2rem;
}

.promo-benefits strong {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
}

.promo-benefits h3 {
    color: var(--primary-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0.8rem 0 0.55rem;
}

.promo-benefits p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.promo-final {
    background: var(--primary);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
}

.promo-final h2 {
    color: #ffffff;
}

.promo-final p {
    color: #d7dee6;
    margin: 0 auto 1.75rem;
    max-width: 680px;
}

.purchase-toast {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d8cebc;
    border-radius: var(--radius-md);
    bottom: 1.5rem;
    box-shadow: 0 16px 38px rgba(16, 36, 62, 0.22);
    display: flex;
    gap: 0.85rem;
    left: 1.5rem;
    max-width: min(390px, calc(100vw - 3rem));
    opacity: 0;
    padding: 1rem;
    position: fixed;
    transform: translateY(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.purchase-toast[hidden] {
    display: none;
}

.purchase-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.purchase-toast-icon {
    align-items: center;
    background: var(--primary);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    flex: 0 0 2.25rem;
    height: 2.25rem;
    justify-content: center;
}

.purchase-toast-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.35;
}

.purchase-toast-content strong {
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.purchase-toast-content small {
    color: var(--gray-600);
    font-size: 0.76rem;
}

.purchase-toast-close {
    align-self: flex-start;
    background: transparent;
    border: 0;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0;
}

@media (max-width: 1080px) {
    .navbar-container {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-bottom: 0.75rem;
        padding-top: 0.75rem;
    }

    .navbar-nav {
        order: 3;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .purchase-toast {
        bottom: 1rem;
        left: 1rem;
        max-width: none;
        right: 1rem;
    }

    .brand-wordmark strong {
        font-size: 0.9rem;
    }

    .brand-wordmark small {
        display: none;
    }

    .navbar-container {
        gap: 0.5rem;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .nav-link {
        white-space: nowrap;
    }

    .nav-actions .btn-outline {
        display: none;
    }

    .official-hero {
        padding: 3.5rem 0;
    }

    .official-hero-grid,
    .feature-grid,
    .lead-inner,
    .promo-hero-grid,
    .promo-benefits {
        grid-template-columns: 1fr;
    }

    .promo-hero {
        padding: 3.5rem 0;
    }

    .promo-certificate {
        margin: 0 auto;
        max-width: 440px;
        transform: none;
    }

    .hero-certificate {
        margin: 0 auto;
        max-width: 470px;
        transform: none;
    }

    .registry-facts-grid,
    .official-grid {
        grid-template-columns: 1fr;
    }

    .registry-fact {
        border-bottom: 1px solid #d8cebc;
        border-right: 0;
    }

    .lead-form {
        flex-direction: column;
    }

    .plan-card-featured {
        transform: none;
    }
}

@media (max-width: 380px) {
    .hero-certificate-inner {
        padding: 0.6rem 0.8rem;
    }

    .hero-certificate-masthead {
        font-size: 0.68rem;
    }

    .hero-certificate-masthead img {
        height: 1.4rem;
        width: 1.4rem;
    }

    .hero-certificate-motto {
        font-size: 0.27rem;
    }

    .hero-certificate-ornament {
        font-size: 0.42rem;
        margin: 0.12rem 0;
    }

    .hero-certificate-title {
        font-size: 0.67rem;
    }

    .hero-certificate-declaration {
        font-size: 0.38rem;
        margin-top: 0.25rem;
    }

    .hero-certificate-name {
        font-size: 1.25rem;
        margin: 0.08rem 0 0.04rem;
    }

    .hero-certificate-copy,
    .hero-certificate-date {
        font-size: 0.35rem;
    }

    .hero-certificate-copy strong {
        font-size: 0.38rem;
    }

    .hero-certificate-authentication {
        bottom: 0.6rem;
        left: 0.8rem;
        right: 0.8rem;
    }

    .hero-certificate-signatory strong {
        font-size: 0.7rem;
    }

    .hero-certificate-signatory > span {
        font-size: 0.27rem;
    }

    .hero-certificate-signatory small {
        font-size: 0.18rem;
    }

    .hero-certificate-verification {
        font-size: 0.21rem;
    }

    .hero-certificate-verification > img {
        height: 2rem;
        width: 2rem;
    }

    .hero-certificate-verification > span {
        font-size: 0.18rem;
    }

    .hero-certificate-qr {
        height: 0.45rem;
        width: 0.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
