/* ==========================================
   PDFaja.com - Modern PDF Tools Website
   Clean, Professional, Public-Facing Design
   ========================================== */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #DBEAFE;
    --accent-color: #14B8A6;
    --accent-hover: #0D9488;
    --accent-light: #CCFBF1;
    --dark-color: #1E293B;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --success: #22C55E;
    --warning: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header ===== */
.pdfaja-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.pdfaja-header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gray-100);
}

.pdfaja-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.pdfaja-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.pdfaja-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pdfaja-logo img {
    height: 40px;
    width: auto;
}

.pdfaja-logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navigation ===== */
.pdfaja-nav {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.pdfaja-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    height: 100%;
}

.pdfaja-nav-item {
    position: relative;
}

.pdfaja-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.pdfaja-nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    border-radius: var(--radius);
}

.pdfaja-nav-link i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.pdfaja-nav-item:hover>.pdfaja-nav-link i {
    transform: rotate(180deg);
}

/* ===== Dropdown Menu ===== */
.pdfaja-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    z-index: 1001;
}

.pdfaja-nav-item:hover>.pdfaja-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pdfaja-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
}

.pdfaja-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.pdfaja-dropdown-item i {
    font-size: 1.25rem;
    color: var(--gray-500);
    transition: var(--transition);
    width: 24px;
    text-align: center;
}

.pdfaja-dropdown-item:hover i {
    color: var(--primary-color);
}

.pdfaja-dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.5rem 0;
}

/* ===== Mobile Menu Toggle ===== */
.pdfaja-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    order: 3;
}

.pdfaja-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger to X animation when active */
.pdfaja-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.pdfaja-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.pdfaja-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hide mobile nav header on desktop */
.mobile-nav-header {
    display: none;
}

/* ===== Auth Buttons ===== */
.pdfaja-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

/* ===== 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: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-hover);
    color: var(--white);
}

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-light:hover {
    background: var(--gray-200);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ===== Main Content ===== */
.pdfaja-main {
    flex: 1;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h3,
.card-header h4,
.card-header h5 {
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ===== Upload Area ===== */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-area-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.upload-area p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.upload-area input[type="file"] {
    display: none;
}

/* ===== Tool Cards Grid ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tool-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-card-icon i {
    font-size: 2rem;
    color: var(--white);
}

.tool-card-icon.blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.tool-card-icon.green {
    background: linear-gradient(135deg, #10B981, #059669);
}

.tool-card-icon.orange {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.tool-card-icon.red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.tool-card-icon.purple {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.tool-card-icon.teal {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
}

.tool-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===== Document List (Frontend Style) ===== */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.document-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.document-icon {
    width: 48px;
    height: 48px;
    background: var(--danger);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-success {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== Signer Choice Cards ===== */
.signer-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.signer-choice {
    padding: 2rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.signer-choice:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.signer-choice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.signer-choice:hover .signer-choice-icon {
    background: var(--primary-color);
}

.signer-choice-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.signer-choice:hover .signer-choice-icon i {
    color: var(--white);
}

.signer-choice h4 {
    margin-bottom: 0.5rem;
}

.signer-choice p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin: 0;
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Recipient Row ===== */
.recipient-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.recipient-row .drag-handle {
    color: var(--gray-400);
    cursor: move;
}

.recipient-row .recipient-avatar {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipient-row .recipient-avatar i {
    color: var(--gray-500);
}

.recipient-row .form-control,
.recipient-row .form-select {
    flex: 1;
}

.recipient-row .btn-remove {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.recipient-row .btn-remove:hover {
    color: var(--danger-hover);
}

/* ===== Info Box ===== */
.info-box {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--accent-light);
    border-left: 4px solid var(--accent-color);
}

.info-box h5 {
    color: var(--accent-hover);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box ol,
.info-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--gray-700);
}

.info-box li {
    margin-bottom: 0.5rem;
}

.info-box li:last-child {
    margin-bottom: 0;
}

/* ===== Hero Section ===== */
.hero {
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light), #EDE9FE);
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.pdfaja-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    margin-top: auto;
}

.pdfaja-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.pdfaja-footer a {
    color: var(--gray-400);
}

.pdfaja-footer a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #1E40AF);
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #1D4ED8, #1E3A8A);
}

.scroll-to-top i {
    font-size: 1.5rem;
}

/* ===== Modal z-index Fix ===== */
/* Ensure Bootstrap modals appear above all elements including footer */
.modal {
    z-index: 100000 !important;
    pointer-events: auto !important;
}

/* Modal uses its own light background - hide Bootstrap backdrop */
.modal.show {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.modal-backdrop {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.modal-dialog {
    z-index: 100001 !important;
    pointer-events: auto !important;
    position: relative !important;
    margin-top: 1rem;
}

.modal-content {
    z-index: 100002 !important;
    pointer-events: auto !important;
    position: relative !important;
    background: #fff !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure clickable elements in modal receive clicks */
.modal .signer-choice-card,
.modal .btn,
.modal button,
.modal a,
.modal input {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100003 !important;
}

/* ===== Responsive ===== */
/* Tablet and below - show mobile menu */
@media (max-width: 1024px) {

    /* Mobile Menu Toggle */
    .pdfaja-menu-toggle {
        display: flex;
        position: relative;
        z-index: 99999;
    }

    /* Mobile Sidebar Navigation */
    .pdfaja-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 0 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 99998;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    }

    .pdfaja-nav.active {
        transform: translateX(0);
    }

    /* Mobile Nav Header (inside sidebar) */
    .mobile-nav-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        z-index: 1;
    }

    .mobile-nav-header .pdfaja-logo {
        font-size: 1.25rem;
    }

    .mobile-nav-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gray-100);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--gray-600);
    }

    .mobile-nav-close:hover {
        background: var(--gray-200);
        color: var(--gray-900);
    }

    .mobile-nav-close i {
        font-size: 1.25rem;
    }

    /* Backdrop Overlay */
    .pdfaja-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .pdfaja-nav.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pdfaja-nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .pdfaja-nav-item {
        width: 100%;
        position: relative;
        border-bottom: 1px solid var(--gray-100);
    }

    .pdfaja-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--gray-800);
        border-bottom: none;
    }

    .pdfaja-nav-link .mdi-chevron-down {
        margin-left: auto;
    }

    .pdfaja-nav-link:hover {
        background: var(--gray-50);
        color: var(--primary-color);
    }

    .pdfaja-dropdown {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
        background: var(--gray-50);
        border-radius: 0;
        margin-left: 0;
        padding: 0;
    }

    .pdfaja-nav-item.open>.pdfaja-dropdown {
        visibility: visible;
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .pdfaja-dropdown-item {
        padding: 0.875rem 2rem;
    }

    .pdfaja-auth {
        width: 100%;
        margin: auto 0 0 0;
        padding: 1.5rem;
        border-top: 1px solid var(--gray-200);
        flex-direction: column;
        gap: 0.75rem;
    }

    .pdfaja-auth .btn {
        width: 100%;
        justify-content: center;
    }

    /* Fix user menu in mobile sidebar */
    .pdfaja-auth .user-menu {
        width: 100%;
        position: relative;
    }

    .pdfaja-auth .user-menu-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        background: var(--gray-50);
        border-radius: var(--radius);
        border: 1px solid var(--gray-200);
    }

    .pdfaja-auth .user-menu-trigger .user-name {
        display: block;
        max-width: none;
    }

    .pdfaja-auth .user-menu-trigger .dropdown-icon {
        display: block;
        margin-left: auto;
    }

    .pdfaja-auth .user-dropdown {
        position: absolute;
        bottom: calc(100% + 8px);
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: var(--radius-lg);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }

    .pdfaja-auth .user-menu.open .user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .signer-choices {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdfaja-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .recipient-row {
        flex-wrap: wrap;
    }

    .recipient-row .form-control,
    .recipient-row .form-select {
        width: 100%;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-slideUp {
    animation: slideUp 0.4s ease;
}

/* ===== Login Modal Specific ===== */
.login-modal .modal-container {
    max-width: 420px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-500);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* ===== Spinner ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.alert-danger {
    background: #FEE2E2;
    color: var(--danger);
}

.alert-warning {
    background: #FEF3C7;
    color: #D97706;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* =========================================
   PREMIUM UPGRADE STYLES
   ========================================= */

/* ===== Enhanced Hero Section ===== */
.hero {
    padding: 0 0 3rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gray-900), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-cta .btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.hero-badges span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-badges i {
    color: var(--accent-color);
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    max-width: 400px;
    width: 100%;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.mockup-header i {
    font-size: 2.5rem;
    color: var(--danger);
}

.mockup-header span {
    font-weight: 600;
    color: var(--gray-900);
}

.mockup-signature {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.mockup-signature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mockup-signature p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.mockup-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

.mockup-check i {
    font-size: 1.25rem;
}

/* ===== 3-Step Process Section - PREMIUM DESIGN ===== */
.process-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #dbeafe 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.process-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite;
}

.process-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBubble 10s ease-in-out infinite reverse;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.process-section .section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.process-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.process-section .section-title p {
    color: var(--gray-600);
    font-size: 1.15rem;
    font-weight: 500;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Premium connecting line with gradient */
.process-steps::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 18%;
    right: 18%;
    height: 4px;
    background: linear-gradient(90deg,
            #2563eb 0%,
            #7c3aed 25%,
            #10b981 50%,
            #06b6d4 75%,
            #2563eb 100%);
    background-size: 200% 100%;
    animation: gradientFlow 4s linear infinite;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
    z-index: 0;
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* Premium glassmorphism card effect on hover */
.process-step::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 200px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.process-step:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

/* Premium step icon with glow effect */
.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 10px 40px rgba(37, 99, 235, 0.4),
        0 0 60px rgba(37, 99, 235, 0.2),
        inset 0 -4px 10px rgba(0, 0, 0, 0.1),
        inset 0 4px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4), 0 0 60px rgba(37, 99, 235, 0.2);
    }

    50% {
        box-shadow: 0 15px 50px rgba(37, 99, 235, 0.5), 0 0 80px rgba(37, 99, 235, 0.3);
    }
}

/* Different colors for each step */
.process-step:nth-child(2) .step-icon {
    background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
    box-shadow:
        0 10px 40px rgba(124, 58, 237, 0.4),
        0 0 60px rgba(124, 58, 237, 0.2),
        inset 0 -4px 10px rgba(0, 0, 0, 0.1),
        inset 0 4px 10px rgba(255, 255, 255, 0.2);
    animation: iconPulse2 3s ease-in-out infinite 0.5s;
}

@keyframes iconPulse2 {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4), 0 0 60px rgba(124, 58, 237, 0.2);
    }

    50% {
        box-shadow: 0 15px 50px rgba(124, 58, 237, 0.5), 0 0 80px rgba(124, 58, 237, 0.3);
    }
}

.process-step:nth-child(3) .step-icon {
    background: linear-gradient(145deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow:
        0 10px 40px rgba(16, 185, 129, 0.4),
        0 0 60px rgba(16, 185, 129, 0.2),
        inset 0 -4px 10px rgba(0, 0, 0, 0.1),
        inset 0 4px 10px rgba(255, 255, 255, 0.2);
    animation: iconPulse3 3s ease-in-out infinite 1s;
}

@keyframes iconPulse3 {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4), 0 0 60px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5), 0 0 80px rgba(16, 185, 129, 0.3);
    }
}

.step-icon:hover {
    transform: translateY(-8px) scale(1.08);
}

/* Glowing ring around icon */
.step-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4), transparent 60%);
    z-index: -1;
}

.step-icon::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.step-icon i {
    font-size: 3rem;
    color: var(--white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.process-step:hover .step-icon i {
    transform: scale(1.1);
}

/* Premium step number badge */
.step-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 36px;
    height: 36px;
    background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
    border: 3px solid;
    border-color: currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #2563eb;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

.process-step:nth-child(2) .step-number {
    color: #7c3aed;
}

.process-step:nth-child(3) .step-number {
    color: #10b981;
}

.process-step h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    transition: color 0.3s ease;
}

.process-step:hover h4 {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-step p {
    color: var(--gray-500);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ===== Enhanced Security Section ===== */
.security-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.security-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.security-section .section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.security-section .section-title p {
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.security-feature {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.security-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.security-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.security-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.security-feature p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

.security-badge {
    display: inline-block;
    background: var(--gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-top: 0.75rem;
}

/* ===== Multi-Signer Highlight Section ===== */
.multisigner-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4F46E5 100%);
    color: var(--white);
}

.multisigner-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.multisigner-content h2 {
    color: var(--white);
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.multisigner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.multisigner-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.multisigner-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.multisigner-features i {
    font-size: 1.25rem;
    color: var(--accent-light);
}

.multisigner-section .btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
}

.multisigner-section .btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.multisigner-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signer-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.5s ease;
}

.signer-card:nth-child(2) {
    animation-delay: 0.1s;
}

.signer-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.signer-avatar {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signer-avatar i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.signer-info {
    flex: 1;
}

.signer-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.signer-role {
    font-size: 0.85rem;
    opacity: 0.8;
}

.signer-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.signer-status.signed {
    background: var(--accent-color);
}

/* ===== Trust Signals Section ===== */
.trust-section {
    padding: 4rem 0;
    background: var(--white);
    text-align: center;
}

.trust-section p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.trust-section h4 {
    font-size: 1.1rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section .section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question {
    color: var(--primary-color);
    background: var(--primary-light);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #DBEAFE 100%);
}

.blog-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-section .section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.blog-section .section-title p {
    color: var(--gray-500);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
}

.blog-card-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-content p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card-meta i {
    font-size: 0.9rem;
}

.blog-more {
    text-align: center;
}

.blog-more .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.75rem 1.5rem;
}

.blog-more .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 160px;
    }
}

/* ===== Modern Footer ===== */
.pdfaja-footer {
    background: var(--gray-700);
    color: var(--gray-300);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.pdfaja-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.pdfaja-footer p {
    margin: 0;
}

.pdfaja-footer a {
    color: var(--gray-300);
    transition: color 0.2s ease;
}

.pdfaja-footer a:hover {
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* ===== Premium Tool Card Enhancement ===== */
.tool-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--gray-100);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.tool-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1);
}

.tool-card-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

/* ===== Section Spacing ===== */
.section-spacing {
    padding: 5rem 0;
}

.section-spacing-lg {
    padding: 6rem 0;
}

/* ===== Responsive Premium Styles ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-illustration {
        display: none;
    }

    .multisigner-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .multisigner-features {
        align-items: center;
    }

    .multisigner-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .process-section {
        padding: 3.5rem 0;
    }

    .process-section::before,
    .process-section::after {
        display: none;
    }

    .process-section .section-title {
        margin-bottom: 2.5rem;
    }

    .process-section .section-title h2 {
        font-size: 1.75rem;
    }

    .process-section .section-title p {
        font-size: 1rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 320px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step::before {
        display: none;
    }

    .step-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 1.25rem;
    }

    .step-icon i {
        font-size: 2.25rem;
    }

    .step-icon::after {
        display: none;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        top: -4px;
        right: -4px;
    }

    .process-step h4 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .process-step p {
        font-size: 0.9rem;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }

    .tool-card-icon {
        width: 60px;
        height: 60px;
    }

    .tool-card-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.875rem;
    }

    .hero-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .process-section,
    .security-section,
    .multisigner-section {
        padding: 2.5rem 0;
    }

    .process-section .section-title h2 {
        font-size: 1.5rem;
    }

    .process-section .section-title p {
        font-size: 0.9rem;
    }

    .process-steps {
        gap: 1.75rem;
        max-width: 280px;
    }

    .step-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .step-icon i {
        font-size: 2rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        border-width: 2px;
        top: -3px;
        right: -3px;
    }

    .process-step h4 {
        font-size: 1.1rem;
    }

    .process-step p {
        font-size: 0.85rem;
    }
}

/* =========================================
   FINAL PREMIUM TOUCHES
   ========================================= */

/* ===== Pre-Footer CTA Section ===== */
.prefooter-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, #E0E7FF 100%);
    text-align: center;
}

.prefooter-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.prefooter-cta p {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.prefooter-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.prefooter-cta .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section .section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i {
    font-size: 1.25rem;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Trust Strip ===== */
.trust-strip {
    padding: 2rem 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.trust-strip .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-strip-item i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* ===== Section Background Variations ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.process-section {
    padding: 5rem 0;
    background: var(--white);
}

.security-section {
    padding: 5rem 0;
    background: var(--white);
}

/* ===== System Status Badge ===== */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.system-status .status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== Enhanced Footer ===== */
.pdfaja-footer {
    background: var(--gray-700);
    color: var(--gray-300);
    padding: 0;
    margin-top: auto;
}

.footer-main {
    padding: 3.5rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-brand .pdfaja-logo {
    margin-bottom: 1rem;
}

.footer-brand .pdfaja-logo i {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.footer-brand .pdfaja-logo span {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin: 0;
}

.footer-column h5 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.trust-microcopy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.trust-microcopy i {
    color: var(--accent-color);
}

.legal-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

/* ===== Fade In Animations ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animation */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(7) {
    transition-delay: 0.35s;
}

.stagger-children.visible>*:nth-child(8) {
    transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(9) {
    transition-delay: 0.45s;
}

.stagger-children.visible>*:nth-child(10) {
    transition-delay: 0.5s;
}

.stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Footer Responsive ===== */
@media (max-width: 1024px) {
    .footer-main {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1.5rem 2rem;
        padding: 2rem 1rem;
    }

    .footer-brand {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
        padding-right: 0;
    }

    .footer-brand .pdfaja-logo {
        justify-content: flex-start;
    }

    .footer-brand p {
        font-size: 0.85rem;
        line-height: 1.6;
        max-width: 100%;
        margin: 0;
    }

    .footer-column {
        text-align: left;
        flex: 0 0 auto;
        min-width: 120px;
    }

    .footer-column h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .footer-column li {
        margin-bottom: 0.5rem;
    }

    .footer-column a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding: 1.25rem 1rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .trust-microcopy {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.5;
    }

    .system-status {
        font-size: 0.75rem;
    }

    .legal-badge {
        font-size: 0.7rem;
        padding: 0.75rem 1rem;
        line-height: 1.5;
        text-align: center;
    }

    .prefooter-cta {
        padding: 3rem 0;
    }

    .prefooter-cta h2 {
        font-size: 1.5rem;
    }

    .faq-section {
        padding: 3rem 0;
    }

    .trust-strip {
        padding: 1.5rem 0;
    }

    .trust-strip .container {
        gap: 1rem;
    }

    .trust-strip-item {
        font-size: 0.8rem;
    }
}

/* ===== Premium User Menu ===== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-menu-trigger .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-trigger .dropdown-icon {
    font-size: 1rem;
    color: var(--gray-500);
    transition: transform 0.2s ease;
}

.user-menu.open .user-menu-trigger .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown Card */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-100);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-100);
}

.user-dropdown-header .user-fullname {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.user-dropdown-header .user-email {
    font-size: 0.8rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.user-dropdown-item i {
    font-size: 1.15rem;
    color: var(--gray-400);
    width: 22px;
    text-align: center;
}

.user-dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

.user-dropdown-item.logout {
    color: var(--danger);
}

.user-dropdown-item.logout:hover {
    background: #FEF2F2;
    color: var(--danger-hover);
}

.user-dropdown-item.logout i {
    color: var(--danger);
}

/* Mobile User Menu */
@media (max-width: 768px) {
    .user-menu-trigger .user-name {
        display: none;
    }

    .user-menu-trigger {
        padding: 0.25rem;
        background: transparent;
        border: none;
    }

    .user-menu-trigger .dropdown-icon {
        display: none;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .user-menu {
        position: static;
    }

    .user-dropdown {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: 320px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        z-index: 10000;
    }

    .user-menu.open .user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-dropdown-header {
        padding: 1rem;
    }

    .user-dropdown-header .user-fullname {
        font-size: 1rem;
    }

    .user-dropdown-header .user-email {
        font-size: 0.85rem;
    }

    .user-dropdown-item {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .user-dropdown-item i {
        font-size: 1.25rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .user-dropdown {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}