:root { --bg-main: #f8fafc; --bg-card: #ffffff; --border-color: #f1f5f9; --text-primary: #0f172a; --text-secondary: #64748b; --brand-primary: #2563eb; --brand-hover: #1d4ed8; --radius-lg: 16px; --radius-full: 9999px; --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05); --shadow-md: 0 10px 25px -5px rgb(37 99 235 / 0.08); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-main); color: var(--text-primary); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.main-header { background-color: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 14px 24px; position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 10px; }
.logo-icon { background-color: var(--brand-primary); color: white; padding: 8px; border-radius: 12px; display: flex; align-items: center; flex-shrink: 0; }
.logo-title { font-size: 16px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }

/* Auth Buttons */
.auth-buttons { display: flex; align-items: center; gap: 8px; }
.btn-login { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text-primary); background: transparent; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-login:hover { background: var(--bg-main); }
.btn-register { padding: 8px 16px; font-size: 14px; font-weight: 600; color: white; background: var(--brand-primary); border-radius: 8px; text-decoration: none; transition: all 0.2s; }
.btn-register:hover { background: var(--brand-hover); }

/* Dropdown (Kept for search bar) */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { display: flex; align-items: center; gap: 8px; background-color: var(--bg-card); border: 1px solid #e2e8f0; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-primary); transition: background-color 0.15s ease; }
.dropdown-trigger:hover { background-color: var(--bg-main); }
.dropdown-trigger svg { color: var(--text-secondary); flex-shrink: 0; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background-color: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); border-radius: 12px; min-width: 220px; max-height: 280px; overflow-y: auto; z-index: 200; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { padding: 10px 16px; font-size: 14px; cursor: pointer; }
.dropdown-item:hover { background-color: var(--bg-main); }

/* Workspace */
.workspace { max-width: 960px; width: 100%; margin: 0 auto; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.hero-section { text-align: center; max-width: 640px; margin-bottom: 32px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background-color: #eff6ff; color: var(--brand-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid #dbeafe; margin-bottom: 16px; }
.pulse-dot { width: 6px; height: 6px; background-color: var(--brand-primary); border-radius: 50%; }
.hero-section h2 { font-size: 38px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.text-blue { color: var(--brand-primary); }
.hero-section p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Main Search Input */
.search-form { width: 100%; background-color: var(--bg-card); border: 1px solid var(--border-color); padding: 8px; border-radius: var(--radius-full); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.dropdown-trigger-type { background: transparent; border: none; border-right: 1px solid var(--border-color); padding: 0 16px 0 12px; font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.input-field-wrapper { flex: 1; display: flex; align-items: center; position: relative; }
.search-icon-svg { position: absolute; left: 12px; color: var(--text-secondary); pointer-events: none; }
.input-field-wrapper input { width: 100%; border: none; outline: none; padding: 12px 12px 12px 42px; font-size: 14px; color: var(--text-primary); }
.action-buttons { display: flex; gap: 8px; }
.btn-search, .btn-new-reg { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: var(--radius-full); border: none; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.btn-search { background-color: var(--brand-primary); color: white; }
.btn-new-reg { background-color: var(--bg-card); border: 1px solid #e2e8f0; color: var(--text-primary); }

/* Navigation Tab Bar */
.tabs-navigationbar { 
    width: 100%; 
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    padding: 6px; 
    display: flex; 
    justify-content: space-between; 
    gap: 4px; 
    margin-bottom: 24px; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.tabs-navigationbar::-webkit-scrollbar {
    display: none;
}
.tabs-locked { opacity: 0.6; pointer-events: none; }
.tab-btn { 
    flex: 1 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    background: transparent; 
    border: none; 
    padding: 12px 16px; 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-secondary); 
    border-radius: 12px; 
    cursor: pointer; 
    white-space: nowrap; 
    transition: all 0.15s ease; 
}
.tab-btn.active { background-color: var(--brand-primary); color: white; }
.tab-btn.active svg { color: white !important; }
.tab-btn svg { color: #94a3b8; transition: color 0.15s; }

/* Stage Visibility Rules */
.tabs-display-stage { width: 100%; }
.tab-stage-panel { display: none; width: 100%; animation: fadePanelIn 0.2s ease; }
.tab-stage-panel.active-panel { display: block; }
@keyframes fadePanelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Display Container Empty States */
.display-container { width: 100%; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 64px 32px; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.bordered-container { border: 1px solid #cbd5e1; border-style: dashed; background: transparent; padding: 48px 24px; border-radius: 16px; }
.empty-state-card { max-width: 360px; text-align: center; }
.icon-frame { width: 48px; height: 48px; background-color: #eff6ff; color: var(--brand-primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 1px solid #dbeafe; }
.icon-frame.gray-icon { background-color: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
.empty-state-card h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.empty-state-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Status View Grid */
.result-card { background: var(--bg-card); border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.flex-title-row { display: flex; align-items: flex-start; gap: 16px; }
.avatar-letter { width: 48px; height: 48px; background: #2563eb; color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.avatar-letter.light-blue { background: #0284c7; }
.avatar-letter.red-badge { background: #dc2626; }
.title-badge-group { display: flex; align-items: center; gap: 10px; }
.title-badge-group h3 { font-size: 22px; font-weight: 800; color: #0f172a; }
.status-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 9999px; letter-spacing: 0.02em; }
.status-badge.approved { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.status-badge.pending { background: #fef9c3; color: #ca8a04; border: 1px solid #fef08a; }
.status-badge.rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.goods-subtitle-text { font-size: 14px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.result-horizontal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; margin-top: 24px; border-top: 1px solid #f1f5f9; padding-top: 20px; }
.result-horizontal-grid .meta-item { display: flex; flex-direction: column; gap: 4px; }
.result-horizontal-grid .meta-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }
.result-horizontal-grid .meta-value { font-size: 14px; font-weight: 600; color: #1e293b; }

.timeline-card { background: var(--bg-card); border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; text-align: left; }
.timeline-card h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #475569; letter-spacing: 0.05em; margin-bottom: 20px; }
.vertical-timeline-box { position: relative; padding-left: 32px; display: flex; flex-direction: column; gap: 24px; }
.vertical-timeline-box::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: #cbd5e1; }
.timeline-node { position: relative; display: flex; align-items: flex-start; }
.line-checkpoint { position: absolute; left: -32px; width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; z-index: 2; }
.timeline-node.done .line-checkpoint { background: #2563eb; color: white; }
.checkpoint-details h5 { font-size: 14px; font-weight: 700; color: #0f172a; }
.checkpoint-details p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; font-weight: 500; }

/* Portfolio Grid */
.portfolio-filter-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.portfolio-inner-search { background: #ffffff; border: 1px solid #e2e8f0; padding: 10px 16px; border-radius: 10px; font-size: 14px; outline: none; width: 260px; }
.filter-pill-group { display: flex; gap: 6px; }
.filter-pill-group .pill { font-size: 13px; font-weight: 600; color: #64748b; padding: 6px 14px; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.filter-pill-group .pill.active { background: #2563eb; color: white; }
.portfolio-cards-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.portfolio-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 200px; transition: box-shadow 0.15s; }
.portfolio-card:hover { box-shadow: var(--shadow-sm); }
.p-card-top { display: flex; align-items: center; gap: 12px; position: relative; margin-bottom: 14px; }
.p-card-top .avatar-letter { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
.p-card-top h5 { font-size: 15px; font-weight: 700; color: #0f172a; }
.p-card-top p { font-size: 12px; color: #64748b; margin-top: 1px; font-weight: 500; }
.p-card-top .status-badge { position: absolute; right: 0; top: 0; padding: 2px 8px; font-size: 10px; }
.p-card-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; border-top: 1px solid #f1f5f9; padding-top: 12px; margin-bottom: 14px; }
.p-meta { display: flex; flex-direction: column; gap: 2px; }
.p-meta span { font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: 0.05em; }
.p-meta strong { font-size: 12px; font-weight: 600; color: #334155; }
.btn-card-action { width: 100%; border: 1px solid #cbd5e1; background: #ffffff; padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: #334155; }

/* Download Panel Split */
.download-split-wrapper { width: 100%; display: grid; grid-template-columns: 11fr 9fr; gap: 24px; align-items: start; }
.certificate-mock-frame { background: #ffffff; border: 1px solid #cbd5e1; border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
.cert-border-inner { border: 1px solid #e2e8f0; border-radius: 8px; padding: 32px 24px; text-align: center; background: #fbfdff; }
.cert-top-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #2563eb; letter-spacing: 0.05em; background: #eff6ff; padding: 4px 10px; border-radius: 9999px; margin-bottom: 16px; }
.cert-border-inner h4 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 24px; letter-spacing: -0.01em; }
.cert-border-inner .large-avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; margin: 0 auto 16px; }
.cert-title-name { font-size: 20px; font-weight: 800; color: #0f172a; }
.cert-owner-name { font-size: 13px; color: #64748b; font-weight: 500; margin-top: 2px; margin-bottom: 28px; }
.cert-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; border-top: 1px solid #e2e8f0; padding-top: 16px; }
.cert-details-grid div { display: flex; flex-direction: column; gap: 2px; }
.cert-details-grid span { font-size: 9px; font-weight: 700; color: #94a3b8; letter-spacing: 0.03em; }
.cert-details-grid strong { font-size: 12px; font-weight: 600; color: #334155; }
.download-actions-sidebar { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; }
.download-actions-sidebar h5 { font-size: 16px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.sidebar-info-txt { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 16px; }
.sidebar-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.sidebar-bullets li { font-size: 13px; font-weight: 500; color: #334155; display: flex; align-items: center; gap: 8px; }
.sidebar-bullets li::before { content: '•'; color: #2563eb; font-weight: bold; font-size: 16px; }
.sidebar-buttons-tray { display: flex; flex-direction: column; gap: 8px; }
.btn-sidebar-download { width: 100%; background: #2563eb; color: white; border: none; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sidebar-preview { width: 100%; background: #ffffff; border: 1px solid #cbd5e1; color: #334155; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Multi-step Registration Modal Overlay */
.hidden { display: none !important; }
.modal-backdrop { position: fixed; inset: 0; background-color: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-card { background: #ffffff; width: 100%; max-width: 680px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display: flex; flex-direction: column; max-height: calc(100vh - 40px); overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 24px 16px; border-bottom: 1px solid #f1f5f9; flex-shrink: 0; }
.modal-header h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.modal-header p { font-size: 13px; color: #64748b; }
.btn-modal-close { background: transparent; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; line-height: 1; }

.step-indicator-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #fafafa; border-bottom: 1px solid #f1f5f9; flex-shrink: 0; }
.step-node { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; font-weight: 600; }
.node-idx { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.step-node.active { color: #0f172a; }
.step-node.active .node-idx { background: #2563eb; color: white; }
.step-node.completed .node-idx { background: #e0f2fe; color: #2563eb; }
.step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 12px; }
.step-node.completed + .step-line { background: #2563eb; }

/* Wizard Form Body */
#wizardForm { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.wizard-panel { display: none; padding: 24px; overflow-y: auto; flex: 1; }
.wizard-panel.active { display: block; }
.input-grid-twin { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; position: relative; }
.form-group label { font-size: 11px; font-weight: 700; color: #475569; letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input, .form-group textarea { border: 1px solid #d8e2ef; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: #0f172a; outline: none; font-family: inherit; width: 100%; }
.form-group input:focus, .form-group textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }

/* Field Error Highlight */
.field-error-msg { font-size: 11px; font-weight: 600; color: #dc2626; margin-top: -4px; }
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important; }

/* Wizard Selects */
.relative-select { position: relative; }
.custom-select-box { border: 1px solid #d8e2ef; padding: 10px 14px; border-radius: 8px; font-size: 14px; background: #fff; cursor: pointer; min-height: 41px; display: flex; align-items: center; }
.custom-select-box::after { content: ''; position: absolute; right: 14px; width: 6px; height: 6px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); }
.select-dropdown-list { display: none; position: absolute; bottom: calc(100% + 4px); top: auto; left: 0; right: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 -10px 15px -3px rgba(0,0,0,0.08); z-index: 999; max-height: 180px; overflow-y: auto; }
.custom-select-box.open .select-dropdown-list { display: block; }
.option { padding: 10px 14px; cursor: pointer; color: #0f172a; text-align: left; }
.option:hover { background: #f8fafc; }

/* Hidden Standard File Inputs & Modern Facades */
.hidden-file-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; border: 0 !important; opacity: 0 !important; display: none !important; }
.modern-file-upload { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: #64748b; background: #f8fafc; transition: all 0.15s; width: 100%; }
.modern-file-upload:hover { border-color: #2563eb; background: #eff6ff; }
.modern-file-upload.has-file { border-color: #16a34a; background: #f0fdf4; color: #16a34a; }
.modern-file-upload.plain-upload { border: none; background: transparent; flex-direction: row; padding: 0; justify-content: flex-start; color: #0f172a; font-weight: 500; }
.modern-file-upload.plain-upload svg { width: 18px; height: 18px; }

/* Payment & Layout */
.payment-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 20px; }
.wallet-readonly-input { background: #f8fafc !important; font-family: monospace; color: #334155 !important; font-weight: 500; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px 14px; width: 100%; font-size: 14px; margin-bottom: 8px; }
.btn-qr-view { background: #ffffff; border: 1px solid #cbd5e1; color: #334155; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; align-self: flex-start; transition: all 0.15s; }
.mt-4 { margin-top: 16px; }

/* Flexbox Review Unbreakable Rows Layout */
.review-intro-txt { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.flex-review-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; display: flex; flex-direction: column; width: 100%; margin-bottom: 20px; }
.review-row { display: flex; padding: 14px 16px; border-bottom: 1px solid #e2e8f0; align-items: flex-start; }
.review-row:last-child { border-bottom: none; }
.r-lbl { width: 35%; font-weight: 600; color: #475569; font-size: 13px; text-transform: capitalize; flex-shrink: 0; }
.r-val { flex: 1; color: #0f172a; font-weight: 500; font-size: 14px; word-break: break-word; }

/* Modal Footer Actions */
.modal-footer { padding: 16px 24px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: #fafafa; flex-shrink: 0; }
.btn-save-draft { background: transparent; border: none; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nav-btn-group { display: flex; gap: 8px; }
.btn-wizard-nav.back { background: #ffffff; border: 1px solid #cbd5e1; color: #0f172a; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-wizard-nav.next { background: #e2e8f0; color: #94a3b8; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: not-allowed; transition: all 0.2s; }
.btn-wizard-nav.next.active-ready { background: #2563eb; color: #ffffff; cursor: pointer; }
.btn-wizard-submit { background: #2563eb; color: white; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; }

/* Modal Certificate Preview */
.cert-preview-backdrop { z-index: 3000; }
.cert-popup-card { background: #ffffff; width: 100%; max-width: 520px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); padding: 24px; animation: popupScaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popupScaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cert-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding-bottom: 12px; }
.cert-popup-header h5 { font-size: 16px; font-weight: 800; color: #0f172a; }
.close-cert-popup { background: transparent; border: none; font-size: 22px; color: #94a3b8; cursor: pointer; line-height: 1; }
.cert-popup-body-inner { border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px 20px; text-align: center; background: #fff; }
.official-cert-badge { display: inline-block; font-size: 9px; font-weight: 700; color: #2563eb; letter-spacing: 0.05em; background: #eff6ff; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; }
.cert-popup-body-inner h4 { font-size: 24px; font-weight: 800; color: #0f172a; }
.cert-serial-line { font-size: 12px; color: #94a3b8; font-family: monospace; margin-top: 2px; margin-bottom: 20px; }
.cert-quad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.quad-node { display: flex; flex-direction: column; gap: 2px; }
.quad-node .q-lbl { font-size: 9px; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
.quad-node .q-val { font-size: 13px; font-weight: 600; color: #1e293b; }
.quad-node .q-val.text-green { color: #16a34a; }

/* Modal QR Code View */
.qr-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.4); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.qr-modal-card { background: #fff; padding: 24px; border-radius: 12px; width: 300px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.qr-graphic-frame { width: 180px; height: 180px; background: #ffffff; border: 1px solid #e2e8f0; margin: 0 auto 12px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.qr-code-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-notice { font-size: 11px; color: #64748b; font-weight: 500; }

.main-footer { background-color: var(--bg-card); border-top: 1px solid var(--border-color); padding: 20px 24px; text-align: center; margin-top: auto; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header { padding: 12px 16px; }
    .logo-title { font-size: 14px; }
    
    /* Ensure swipe behavior properly on mobile screen sizes */
    .tabs-navigationbar { justify-content: flex-start; }
    .tab-btn { flex: 0 0 auto; padding: 10px 16px; font-size: 13px; }
    
    /* Auth Buttons Mobile Alignment */
    .auth-buttons { gap: 6px; }
    .btn-login, .btn-register { padding: 6px 12px; font-size: 13px; }
    
    .search-form { flex-direction: column; border-radius: 20px; padding: 12px; align-items: stretch; }
    .dropdown-trigger-type { border-right: none; border-bottom: 1px solid var(--border-color); padding: 12px 6px; width: 100%; justify-content: space-between; }
    .input-field-wrapper input { padding: 14px 12px 14px 42px; }
    .action-buttons { flex-direction: column; width: 100%; }
    .btn-search, .btn-new-reg { width: 100%; justify-content: center; border-radius: 12px; }
    .hero-section h2 { font-size: 32px; }
    
    .result-horizontal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .portfolio-filter-row { flex-direction: column; align-items: stretch; }
    .portfolio-inner-search { width: 100%; }
    .portfolio-cards-grid { grid-template-columns: 1fr; }
    .download-split-wrapper { grid-template-columns: 1fr; }
    
    .input-grid-twin { grid-template-columns: 1fr; gap: 0; }
    .step-node span:last-child { display: none; }
    .modal-backdrop { padding: 10px; }
    .modal-card { max-height: calc(100vh - 20px); border-radius: 12px; }
    .wizard-panel { padding: 16px; }
    .r-lbl { width: 40%; font-size: 12px; }
}




/* User Profile Header Text */
.user-profile-tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 6px;
    text-transform: capitalize;
    background-color: var(--bg-main);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Mobile responsive font sizing */
@media (max-width: 768px) {
    .user-profile-tag {
        font-size: 12px;
        padding: 4px 8px;
        margin-right: 2px;
    }
}