.icard-page {
    width: 100%;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 14% 8%, rgba(220, 38, 38, 0.10), transparent 30%),
        radial-gradient(circle at 90% 82%, rgba(15, 23, 42, 0.10), transparent 34%),
        #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 18px;
}

.icard-device {
    width: 100%;
    max-width: 470px;
    min-height: calc(100dvh - 36px);
    background: transparent;
    border-radius: 30px;
    padding: 0;
}

.press-page-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 2px 2px 0;
}

.press-back-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.press-back-btn ion-icon {
    font-size: 24px;
}

.press-header-text h1 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.6px;
}

.press-header-text p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 850;
}

.icard-state-card,
.icard-action-card {
    width: 100%;
    min-height: 220px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
    padding: 26px 20px;
    color: #0f172a;
}

.icard-state-card ion-icon,
.icard-action-card ion-icon {
    font-size: 34px;
    color: #dc2626;
}

.icard-state-card h2,
.icard-action-card h2 {
    margin: 16px 0 8px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.icard-state-card p,
.icard-action-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.icard-action-card a,
.icard-action-card button,
.icard-state-card a {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

.loader {
    width: 32px;
    height: 32px;
    border: 3px solid #fee2e2;
    border-top-color: #dc2626;
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.press-card-glow-shell {
    max-width: 430px;
    margin: 0 auto 16px;
    background:
        radial-gradient(circle at 20% 10%, rgba(220, 38, 38, 0.18), transparent 28%),
        radial-gradient(circle at 90% 90%, rgba(17, 24, 39, 0.12), transparent 34%),
        #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    padding: 14px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.gnpm-press-card-stack {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.gnpm-id-card {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 2 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.gnpm-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    z-index: 1;
}

.gnpm-front-photo {
    position: absolute;
    left: 6.5%;
    top: 37%;
    width: 28.4%;
    height: 26.7%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #971014;
    background: #f8fafc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .20);
    z-index: 3;
}

.gnpm-front-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gnpm-front-details {
    position: absolute;
    top: 38%;
    left: 38%;
    width: 52%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #111111;
    font-size: 9.5px;
    line-height: 1.15;
    z-index: 3;
}

.gnpm-front-row {
    display: grid;
    grid-template-columns: 43% 6% 51%;
    align-items: start;
}

.gnpm-front-row span {
    font-weight: 600;
}

.gnpm-front-row b {
    text-align: center;
    font-weight: 800;
}

.gnpm-front-row strong {
    font-weight: 850;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#cardNumber {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: 10px !important;
    letter-spacing: 0.15px !important;
}

.gnpm-front-row:first-child strong {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.gnpm-front-designation {
    position: absolute;
    left: 6.5%;
    top: 64.4%;
    width: 34.4%;
    height: 4.7%;
    background: #b40000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 2px;
}

.gnpm-front-signature-box {
    position: absolute;
    left: 34.2%;
    top: 71.5%;
    width: 31%;
    height: 16.2%;
    z-index: 8;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 3px 3px;
    pointer-events: none;
    overflow: hidden;
}

.gnpm-front-signature-box::before {
    content: "";
    position: absolute;
    inset: -4px -6px -8px -6px;
    background: #ffffff;
    z-index: -1;
}

.gnpm-front-signature-box img {
    width: 92%;
    height: 48%;
    object-fit: contain;
    display: block;
    margin-bottom: 1px;
}

.gnpm-signature-line {
    width: 82%;
    height: 1px;
    background: #444444;
    display: block;
    margin-bottom: 2px;
}

.gnpm-front-signature-box small {
    color: #111111;
    font-size: 6px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.gnpm-front-qr {
    position: absolute;
    right: 7.5%;
    bottom: 12.3%;
    width: 22.5%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 5px;
}

.gnpm-front-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gnpm-front-qr ion-icon {
    font-size: 34px;
    color: #991b1b;
}

.gnpm-front-address {
    position: absolute;
    left: 5.5% !important;
    width: 89% !important;
    top: 90.8% !important;
    height: 9.5% !important;
    color: #ffffff !important;
    text-align: center !important;
    z-index: 3;
    display: block !important;
    overflow: hidden !important;
    padding: 0 6px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

.gnpm-address-main {
    display: block !important;
    font-size: 7.4px !important;
    line-height: 1.18 !important;
    font-weight: 500 !important;
}

.gnpm-address-location {
    display: block !important;
    margin-top: 2px !important;
    font-size: 8.6px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
}

.gnpm-back-rules {
    position: absolute;
    top: 9.7%;
    left: 6%;
    width: 88%;
    font-size: 11px;
    line-height: 1.34;
    color: #000000;
    z-index: 3;
}

.gnpm-back-rules ol {
    margin: 0;
    padding-left: 16px;
}

.gnpm-back-rules li {
    margin-bottom: 5px;
    text-align: justify;
}

.press-card-actions.compact-actions {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.ready-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ready-heading-row h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 950;
}

.ready-heading-row p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 800;
}

.ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.ready-badge ion-icon {
    font-size: 16px;
}

.compact-actions .download-btn,
.compact-actions .outline-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.compact-actions .download-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.26);
}

.compact-actions .outline-btn {
    margin-top: 10px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e2e8f0;
}

.compact-actions .download-btn ion-icon,
.compact-actions .outline-btn ion-icon {
    font-size: 18px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    z-index: 9999;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.toast.show {
    display: block;
}

@media (max-width: 430px) {
    .icard-page {
        padding: 14px;
    }

    .press-card-glow-shell {
        padding: 10px;
        border-radius: 28px;
    }

    .press-header-text h1 {
        font-size: 23px;
    }

    .gnpm-front-details {
        gap: 5px;
        font-size: 10.8px;
    }

    .gnpm-front-designation {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .gnpm-address-main {
        font-size: 11px !important;
    }

    .gnpm-address-location {
        font-size: 8.2px !important;
    }

    .gnpm-back-rules {
        font-size: 9.6px;
        line-height: 1.28;
    }

    .gnpm-back-rules li {
        margin-bottom: 4px;
    }
}
.gnpm-front-address {
    position: absolute !important;
    left: 34.2%;
    top: 71.5%;
    width: 31%;
    height: 16.2%;
    z-index: 9 !important;

    display: block !important;
    color: #ffffff !important;
    text-align: center !important;

    font-weight:500 !important;
    padding: 0 6px !important;
    overflow: visible !important;

    word-break: normal !important;
    overflow-wrap: break-word !important;

    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

.gnpm-address-main {
    display: block !important;
    max-height: 27px !important;
    overflow: hidden !important;
    

    font-size: 11px !important;
    line-height: 1.13 !important;
    font-weight: 500 !important;
}

.gnpm-address-location {
    display: block !important;
    margin-top: 2px !important;

    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;

    color: #ffffff !important;
    white-space: nowrap !important;
}