/* =========================================================
   REPORTER CARD GENERATOR
   PREMIUM ADMIN + CARD DESIGN SYSTEM
   ========================================================= */

:root {
    --rcg-primary: #1e40af;
    --rcg-secondary: #dbeafe;
    --rcg-accent: #2563eb;
    --rcg-background: #ffffff;
    --rcg-text: #0f172a;
    --rcg-border: #cbd5e1;
}


/* =========================================================
   GLOBAL ADMIN CONTAINER
   ========================================================= */

.rcg-admin-container,
.rcg-admin-container * {
    box-sizing: border-box;
}

.rcg-admin-container {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 22px !important;
    margin-top: 12px;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.rcg-form-section,
.rcg-preview-section {
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    overflow: hidden;
}

.rcg-form-section {
    flex: 1;
    min-width: 350px;
    background: #ffffff;
    padding: 20px;
}

.rcg-preview-section {
    flex: 1.25;
    min-width: 420px;
    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        );
    padding: 20px;
}


/* =========================================================
   REQUIRED STAR
   ========================================================= */

span.req {
    color: #dc2626;
    font-weight: 800;
    margin-left: 3px;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.rcg-error-notice {
    display: none;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 5px solid #e11d48;
    color: #9f1239;
    padding: 13px 15px;
    margin: 0 0 18px;
    border-radius: 8px;
    font-size: 13px;
}

.rcg-error-notice ul {
    margin: 0;
    padding-left: 20px;
}

.rcg-error-notice li {
    margin: 3px 0;
    font-weight: 600;
}


/* =========================================================
   TAB NAVIGATION
   ========================================================= */

.rcg-tab-nav-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 18px;
    padding-bottom: 7px;
}

.rcg-tab-nav-btn {
    appearance: none;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #475569;
    padding: 9px 15px;
    min-height: 38px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition:
        all .2s ease;
}

.rcg-tab-nav-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rcg-tab-nav-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb;
    box-shadow:
        0 3px 10px
        rgba(37, 99, 235, .20);
}

.rcg-tab-pane {
    display: none;
}

.rcg-tab-pane.active {
    display: block !important;
}


/* =========================================================
   FORM
   ========================================================= */

.rcg-field-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.flex-1 {
    flex: 1;
    min-width: 0;
}

.rcg-field-group {
    margin-bottom: 13px;
}

.rcg-field-group label {
    display: block;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rcg-field-group input,
.rcg-field-group select,
.rcg-field-group textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.rcg-field-group textarea {
    min-height: 70px;
    resize: vertical;
}

.rcg-field-group input:focus,
.rcg-field-group select:focus,
.rcg-field-group textarea:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .10);
}


/* =========================================================
   ID INPUT + AUTO BUTTON
   ========================================================= */

.rcg-input-btn-group {
    display: flex;
    gap: 5px;
}

.rcg-input-btn-group input {
    flex: 1;
}

.rcg-input-btn-group .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MEDIA UPLOAD
   ========================================================= */

.rcg-upload-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.rcg-upload-box .button {
    font-size: 11px;
    font-weight: 700;
}

.rcg-img-preview,
.rcg-logo-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.rcg-sig-preview {
    width: 120px;
    height: 38px;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
}


/* =========================================================
   CARD PREVIEW AREA
   ========================================================= */

.rcg-cards-wrapper {
    width: 100%;
    min-height: 390px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 25px 10px;
}


/* =========================================================
   BASE CARD
   ========================================================= */

.rcg-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--rcg-background);
    color: var(--rcg-text);
    border: 1px solid var(--rcg-border);
    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, .16);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.rcg-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px
        rgba(15, 23, 42, .20);
}


/* =========================================================
   CARD PRINT DIMENSIONS
   ========================================================= */

.rcg-id-card {
    width: 204px;
    height: 324px;
    border-radius: 12px;
}

.rcg-visiting-card {
    width: 336px;
    height: 192px;
    border-radius: 11px;
}


/* =========================================================
   CARD DECORATION LAYERS
   ========================================================= */

.rcg-card::before,
.rcg-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.rcg-card::before {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background:
        var(--rcg-primary);
    opacity: .07;
    top: -60px;
    right: -60px;
}

.rcg-card::after {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background:
        var(--rcg-accent);
    opacity: .06;
    bottom: -45px;
    left: -45px;
}


/* =========================================================
   ID CARD HEADER
   ========================================================= */

.rcg-id-card .rcg-card-header {
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background:
        var(--rcg-primary);
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.rcg-id-card .rcg-card-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    background:
        var(--rcg-accent);
}

.rcg-id-card .rcg-card-header h2 {
    margin: 0;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2px;
    word-break: break-word;
}

.rcg-live-logo {
    display: block;
    width: 90px;
    max-width: 100%;
    max-height: 30px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   ID CARD BODY
   ========================================================= */

.rcg-id-card .rcg-card-body {
    position: relative;
    z-index: 1;
    height: calc(100% - 57px);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}


/* =========================================================
   REPORTER PHOTO
   ========================================================= */

.rcg-live-photo {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    border: 3px solid var(--rcg-accent);
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow:
        0 4px 12px
        rgba(15, 23, 42, .14);
}


/* =========================================================
   REPORTER NAME
   ========================================================= */

.rcg-live-name {
    width: 100%;
    margin: 6px 0 2px;
    color: var(--rcg-text);
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.rcg-live-designation {
    margin: 0 0 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   INFO TABLE
   ========================================================= */

.rcg-info-table {
    width: 100%;
    margin-top: 3px;
    padding: 6px 7px;
    background:
        var(--rcg-secondary);
    border:
        1px solid
        var(--rcg-border);
    border-radius: 6px;
    font-size: 8px;
    line-height: 1.25;
}

.rcg-info-table div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 3px;
}

.rcg-info-table div:last-child {
    margin-bottom: 0;
}

.rcg-info-table span {
    color: #64748b;
    font-weight: 700;
    flex: 0 0 auto;
}

.rcg-info-table strong {
    color: var(--rcg-text);
    text-align: right;
    word-break: break-word;
}


/* =========================================================
   CARD FOOTER
   ========================================================= */

.rcg-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 7px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.rcg-live-qr {
    width: 45px;
    height: 45px;
    display: block;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 3px;
}

.rcg-sig-box {
    min-width: 70px;
    text-align: center;
}

.rcg-live-sig {
    width: auto;
    max-width: 95px;
    height: 23px;
    display: block;
    object-fit: contain;
    margin: 0 auto 2px;
}

.rcg-sig-box small {
    display: block;
    border-top: 1px solid #94a3b8;
    padding-top: 2px;
    color: #64748b;
    font-size: 7px;
    line-height: 1.1;
    white-space: nowrap;
}


/* =========================================================
   OFFICIAL SEAL
   ========================================================= */

.rcg-live-seal {
    position: absolute;
    width: 40px;
    height: 40px;
    right: 8px;
    bottom: 8px;
    object-fit: contain;
    opacity: .85;
    z-index: 3;
}


/* =========================================================
   BACK WATERMARK
   ========================================================= */

.rcg-back-watermark {
    position: absolute;
    width: 150px;
    height: 150px;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: .10;
    pointer-events: none;
    z-index: 0;
}


/* =========================================================
   ID BACK
   ========================================================= */

.rcg-id-card.back-side {
    background:
        var(--rcg-background);
}

.rcg-back-header {
    min-height: 50px !important;
}

.rcg-id-card.back-side .rcg-card-body {
    justify-content: flex-start;
}

.rcg-live-back-name {
    position: relative;
    z-index: 2;
    margin-top: 6px;
}

#rcg_live_back_terms {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 8px 0 8px;
    color: #475569;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}


/* =========================================================
   VISITING CARD
   ========================================================= */

.rcg-visiting-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    background:
        var(--rcg-background);
}

.rcg-vc-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 7px 12px;
    border-bottom:
        1px solid
        var(--rcg-border);
}

.rcg-vc-header h2 {
    margin: 0;
    color: var(--rcg-primary);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
    word-break: break-word;
}

.rcg-vc-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
}

.rcg-vc-photo {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    border-radius: 9px;
}

.rcg-vc-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.rcg-vc-info .rcg-live-name {
    margin-top: 0;
    margin-bottom: 1px;
    font-size: 16px;
    line-height: 1.15;
}

.rcg-vc-info .rcg-live-designation {
    margin-bottom: 5px;
    color: var(--rcg-primary);
    font-size: 9px;
}

.rcg-vc-contact {
    margin: 3px 0;
    color: #475569;
    font-size: 8px;
    line-height: 1.2;
    word-break: break-word;
}

.rcg-vc-contact span {
    word-break: break-word;
}


/* =========================================================
   VISITING CARD BACK
   ========================================================= */

.rcg-vc-back-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-align: center;
}

.rcg-vc-back-content .rcg-live-logo {
    width: 105px;
    max-height: 35px;
}

.rcg-vc-back-content h2 {
    margin: 6px 0 2px;
    color: var(--rcg-primary);
    font-size: 17px;
    line-height: 1.15;
    font-weight: 800;
}

.rcg-vc-back-content p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.2;
}

.rcg-vc-back-content .rcg-live-qr {
    width: 48px;
    height: 48px;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.rcg-vc-social {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.rcg-vc-social a,
.rcg-vc-social span {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rcg-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   STATUS BADGE
   ========================================================= */

.rcg-status-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 5;
    padding: 3px 6px;
    border-radius: 20px;
    background: #16a34a;
    color: #ffffff;
    font-size: 6px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.rcg-status-badge.expired {
    background: #dc2626;
}

.rcg-status-badge.suspended {
    background: #d97706;
}


/* =========================================================
   TEMPLATE 1
   ROYAL BLUE CLASSIC
   ========================================================= */

.tpl-1 .rcg-id-card {
    border-top: 4px solid var(--rcg-primary);
}

.tpl-1 .rcg-id-card .rcg-card-header {
    border-radius: 0;
}

.tpl-1 .rcg-id-card .rcg-card-body {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.tpl-1 .rcg-visiting-card {
    border-top: 5px solid var(--rcg-primary);
    border-bottom: 3px solid var(--rcg-accent);
}

.tpl-1 .rcg-vc-header {
    background: #f8fbff;
}


/* =========================================================
   TEMPLATE 2
   DARK VELVET
   ========================================================= */

.tpl-2 .rcg-card {
    background:
        linear-gradient(
            145deg,
            #0f172a,
            #1e293b
        ) !important;
    color: #f8fafc;
    border-color: #334155;
}

.tpl-2 .rcg-card::before {
    background: #ffffff;
    opacity: .04;
}

.tpl-2 .rcg-card::after {
    background: #94a3b8;
    opacity: .05;
}

.tpl-2 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            #020617,
            #0f172a
        ) !important;
    color: #f8fafc;
}

.tpl-2 .rcg-live-name,
.tpl-2 .rcg-info-table strong {
    color: #f8fafc;
}

.tpl-2 .rcg-live-designation,
.tpl-2 .rcg-vc-contact,
.tpl-2 .rcg-vc-back-content p {
    color: #cbd5e1;
}

.tpl-2 .rcg-info-table {
    background: rgba(255,255,255,.06);
    border-color: #334155;
}

.tpl-2 .rcg-vc-header {
    border-color: #334155;
    background: rgba(255,255,255,.03);
}

.tpl-2 .rcg-vc-header h2,
.tpl-2 .rcg-vc-back-content h2 {
    color: #f8fafc;
}

.tpl-2 .rcg-live-qr {
    border-color: #ffffff;
}


/* =========================================================
   TEMPLATE 3
   CRIMSON NEWS
   ========================================================= */

.tpl-3 .rcg-card {
    border-radius: 3px;
}

.tpl-3 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-3 .rcg-id-card .rcg-card-body {
    padding-top: 14px;
}

.tpl-3 .rcg-live-photo {
    border-radius: 7px;
    border-width: 3px;
}

.tpl-3 .rcg-visiting-card {
    border-left: 6px solid var(--rcg-primary);
}

.tpl-3 .rcg-vc-header {
    border-bottom: 3px solid var(--rcg-accent);
}


/* =========================================================
   TEMPLATE 4
   EMERALD MODERN
   ========================================================= */

.tpl-4 .rcg-card {
    border-radius: 16px;
}

.tpl-4 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-4 .rcg-live-photo {
    border-width: 4px;
}

.tpl-4 .rcg-info-table {
    border-radius: 10px;
}

.tpl-4 .rcg-visiting-card {
    border-top: 0;
    border-right: 5px solid var(--rcg-primary);
}

.tpl-4 .rcg-vc-header {
    border-radius: 0 0 10px 10px;
}


/* =========================================================
   TEMPLATE 5
   CORPORATE GOLD
   ========================================================= */

.tpl-5 .rcg-card {
    border-radius: 2px;
}

.tpl-5 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-5 .rcg-card-header::after {
    height: 5px;
    background:
        linear-gradient(
            90deg,
            var(--rcg-accent),
            #fbbf24,
            var(--rcg-accent)
        );
}

.tpl-5 .rcg-live-photo {
    border-color: var(--rcg-accent);
    border-radius: 4px;
}

.tpl-5 .rcg-visiting-card {
    background:
        linear-gradient(
            135deg,
            #fffdf7,
            #fffbeb
        );
    border-bottom: 5px solid var(--rcg-accent);
}


/* =========================================================
   TEMPLATE 6
   PURPLE WAVE
   ========================================================= */

.tpl-6 .rcg-card {
    border-radius: 20px 5px 20px 5px;
}

.tpl-6 .rcg-card::before {
    width: 180px;
    height: 180px;
    top: -100px;
    right: -70px;
    opacity: .12;
}

.tpl-6 .rcg-card::after {
    width: 140px;
    height: 140px;
    bottom: -80px;
    left: -70px;
    opacity: .10;
}

.tpl-6 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-6 .rcg-visiting-card {
    border-top: 5px solid var(--rcg-primary);
}


/* =========================================================
   TEMPLATE 7
   MINIMAL SLATE
   ========================================================= */

.tpl-7 .rcg-card {
    box-shadow:
        0 5px 16px
        rgba(15, 23, 42, .09);
    border-radius: 5px;
}

.tpl-7 .rcg-card::before,
.tpl-7 .rcg-card::after {
    display: none;
}

.tpl-7 .rcg-card-header {
    background: var(--rcg-primary) !important;
}

.tpl-7 .rcg-live-photo {
    border-width: 1px;
    border-color: #64748b;
    box-shadow: none;
}

.tpl-7 .rcg-info-table {
    background: #ffffff;
    border-color: #e2e8f0;
}

.tpl-7 .rcg-visiting-card {
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}


/* =========================================================
   TEMPLATE 8
   OCEAN TEAL PRESS
   ========================================================= */

.tpl-8 .rcg-card {
    border-radius: 10px 24px 10px 24px;
}

.tpl-8 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-8 .rcg-id-card .rcg-card-body {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f0fdfa
        );
}

.tpl-8 .rcg-visiting-card {
    border-left: 4px solid var(--rcg-primary);
    border-right: 4px solid var(--rcg-accent);
}


/* =========================================================
   TEMPLATE 9
   VIBRANT CORAL
   ========================================================= */

.tpl-9 .rcg-card {
    border-radius: 14px;
}

.tpl-9 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            var(--rcg-primary),
            var(--rcg-accent)
        ) !important;
}

.tpl-9 .rcg-live-photo {
    border-color: var(--rcg-accent);
}

.tpl-9 .rcg-info-table {
    background: var(--rcg-secondary);
    border-color: var(--rcg-border);
}

.tpl-9 .rcg-visiting-card {
    border-bottom: 6px solid var(--rcg-primary);
}


/* =========================================================
   TEMPLATE 10
   MIDNIGHT DARK GOLD
   ========================================================= */

.tpl-10 .rcg-card {
    background:
        linear-gradient(
            135deg,
            #030712,
            #111827,
            #1f2937
        ) !important;
    color: #f9fafb;
    border-color: var(--rcg-accent);
}

.tpl-10 .rcg-card::before {
    width: 190px;
    height: 190px;
    background: var(--rcg-accent);
    opacity: .07;
}

.tpl-10 .rcg-card::after {
    background: var(--rcg-accent);
    opacity: .06;
}

.tpl-10 .rcg-card-header {
    background:
        linear-gradient(
            135deg,
            #030712,
            #111827
        ) !important;
    color: var(--rcg-accent);
    border-bottom: 1px solid var(--rcg-accent);
}

.tpl-10 .rcg-card-header::after {
    background: var(--rcg-accent);
}

.tpl-10 .rcg-live-name,
.tpl-10 .rcg-info-table strong {
    color: #f9fafb;
}

.tpl-10 .rcg-live-designation,
.tpl-10 .rcg-vc-contact,
.tpl-10 .rcg-vc-back-content p {
    color: #d1d5db;
}

.tpl-10 .rcg-info-table {
    background: rgba(255,255,255,.05);
    border-color: #374151;
}

.tpl-10 .rcg-vc-header {
    background: rgba(255,255,255,.03);
    border-color: #374151;
}

.tpl-10 .rcg-vc-header h2,
.tpl-10 .rcg-vc-back-content h2 {
    color: var(--rcg-accent);
}

.tpl-10 .rcg-visiting-card {
    border-top: 2px solid var(--rcg-accent);
    border-bottom: 2px solid var(--rcg-accent);
}


/* =========================================================
   THEME VARIABLE OVERRIDES
   ========================================================= */

.rcg-card {
    --rcg-primary:
        var(--rcg-primary, #1e40af);

    --rcg-secondary:
        var(--rcg-secondary, #dbeafe);

    --rcg-accent:
        var(--rcg-accent, #2563eb);

    --rcg-background:
        var(--rcg-background, #ffffff);

    --rcg-text:
        var(--rcg-text, #0f172a);

    --rcg-border:
        var(--rcg-border, #cbd5e1);
}


/* =========================================================
   PRINT MODE
   ========================================================= */

@media print {

    body * {
        visibility: hidden !important;
    }

    .rcg-card,
    .rcg-card * {
        visibility: visible !important;
    }

    .rcg-card {
        box-shadow: none !important;
        transform: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .rcg-id-card {
        width: 54mm !important;
        height: 86mm !important;
    }

    .rcg-visiting-card {
        width: 89mm !important;
        height: 51mm !important;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .rcg-form-section,
    .rcg-preview-section {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .rcg-preview-section {
        order: 2;
    }
}


@media (max-width: 600px) {

    .rcg-admin-container {
        gap: 12px !important;
    }

    .rcg-form-section,
    .rcg-preview-section {
        padding: 12px;
        border-radius: 9px;
    }

    .rcg-field-row {
        flex-direction: column;
        gap: 0;
    }

    .rcg-cards-wrapper {
        padding: 15px 5px;
        gap: 15px;
    }

    .rcg-id-card {
        transform-origin: center;
    }

    .rcg-visiting-card {
        transform-origin: center;
    }

    .rcg-tab-nav-btn {
        flex: 1;
        min-width: 100px;
        padding: 8px 9px;
    }
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rcg-card,
    .rcg-tab-nav-btn,
    .rcg-field-group input,
    .rcg-field-group select,
    .rcg-field-group textarea {
        transition: none !important;
    }
}


/* =========================================================
   ADDED: PDF EXPORT TOOLBAR
   ========================================================= */

.rcg-pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
}

.rcg-pdf-btn {
    font-size: 11px !important;
    font-weight: 700 !important;
}


/* =========================================================
   ADDED: STATUS BADGE HELPERS (used on admin list + verify page)
   ========================================================= */

.rcg-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.rcg-status-pill.status-active {
    background: #16a34a;
}

.rcg-status-pill.status-expired {
    background: #dc2626;
}

.rcg-status-pill.status-suspended {
    background: #d97706;
}


/* =========================================================
   ADDED: FRONTEND VERIFICATION PAGE
   ========================================================= */

.rcg-verify-wrapper {
    max-width: 780px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
}

.rcg-verify-search-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.rcg-verify-search-box h3 {
    margin-top: 0;
    color: #1e40af;
}

.rcg-verify-search-group {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 14px auto 0;
}

.rcg-verify-search-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
}

.rcg-verify-search-group button {
    background: #1e40af;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}

.rcg-verify-loading {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.rcg-verify-result {
    text-align: center;
}

.rcg-verify-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 16px;
}

.rcg-verify-error {
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}
