body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}


/* .wrap>.container {
    padding: 70px 15px 20px;
} */

.footer {
    min-height: 120px;
    height: auto;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}


/* add sorting icons to gridview sort links */

a.asc:after,
a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content:
        /*"\e113"*/
        "\e151";
}

a.desc:after {
    content:
        /*"\e114"*/
        "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}


/* .grid-view th {
    white-space: nowrap;
} */

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


/* align the logout "link" (button in form) of the navbar */

.nav li>form>button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
}

.nav>li>form>button.logout:focus {
    outline: none;
}

.personal-number {
    display: inline-block;
    margin: 5px;
}

/* Simple red highlight for invalid inputs */
.has-error {
    border-color: #a94442 !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483 !important;
}

/* Green border for normal card numbers */
.normal-card {
    border-color: #5cb85c !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(92, 184, 92, 0.6) !important;
}

/* Gold border for gold card numbers */
.gold-card {
    border-color: #f0ad4e !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(240, 173, 78, 0.6) !important;
}


/* 3D Buttons Effects */

.btn3d {
    transition: all .08s linear;
    position: relative;
    outline: medium none;
    outline-style: none;
    -moz-outline-style: none;
    border: 0px;
    margin-right: 10px;
    margin-top: 15px;
}

.btn3d:focus {
    outline: medium none;
    outline-style: none;
    -moz-outline-style: none;
}

.btn3d:active {
    top: 9px;
}

.btn-default.btn3d {
    box-shadow: 0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #adadad, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #fff;
}

.btn-primary.btn3d {
    box-shadow: 0 0 0 1px #428bca inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #357ebd, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #428bca;
}

.btn-success.btn3d {
    box-shadow: 0 0 0 1px #5cb85c inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #4cae4c, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #5cb85c;
}

.btn-info.btn3d {
    box-shadow: 0 0 0 1px #5bc0de inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #46b8da, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #5bc0de;
}

.btn-warning.btn3d {
    box-shadow: 0 0 0 1px #f0ad4e inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #eea236, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #f0ad4e;
}

.btn-danger.btn3d {
    box-shadow: 0 0 0 1px #c63702 inset, 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 8px 0 0 #C24032, 0 8px 0 1px rgba(0, 0, 0, 0.4), 0 8px 8px 1px rgba(0, 0, 0, 0.5);
    background-color: #c63702;
}

.example-buttons-wrapper {
    margin-top: -10px;
    margin-bottom: 25px;
}

.main-logo {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    margin-top: 30px;
}

.g-recaptcha {
    margin-left: auto;
    margin-right: auto;
}

/* Navigation buttons for card number pagination */
.navigation-buttons {
    text-align: center;
    margin: 20px auto;
    display: block;
}

.navigation-buttons .btn {
    margin: 5px;
}

/* Center the card numbers grid */
#numbers-container {
    text-align: center;
}

/* Random number button styling */
.input-group-btn .btn {
    padding: 6px 12px;
}

.input-group-btn .btn img {
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.input-group-btn .btn:hover {
    background-color: #e6e6e6;
    border-color: #adadad;
}

.input-group-btn .btn:hover img {
    opacity: 1;
}

/* Partner blocks styling */
.partner-block {
    display: block;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.partner-block:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #000;
}

.partner-city-badge {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid #000;
    border-top: none;
    border-right: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    background-color: #fff;
    color: #000;
}

.partner-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #000;
    margin-top: 5px;
}

.partner-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.partner-phone {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.view-all-btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-weight: bold;
    font-size: 16px;
}

.view-all-btn:hover {
    background-color: #f0f0f0;
}

.view-all-text {
    color: #000;
}

/* Mobile Sticky Footer */
/* Mobile Partners Slide-up Panel */
.mobile-partners-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* Trigger bar at bottom */
.mobile-partners-trigger {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #000;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10001;
}

.mobile-partners-trigger span {
    color: #000;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-partners-trigger .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mobile-partners-trigger svg {
    color: #000;
    flex-shrink: 0;
}

/* Sliding content panel */
.mobile-partners-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    /* Use dynamic viewport height for iOS */
    max-height: 100vh;
    /* Fallback for older browsers */
    background-color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 10002;
    display: flex;
    flex-direction: column;
}

.mobile-partners-content.active {
    transform: translateY(0);
}

/* Panel header with close button */
.mobile-partners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-top: max(20px, env(safe-area-inset-top));
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    flex-shrink: 0;
}

.mobile-partners-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-partners-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.mobile-partners-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-partners-close svg {
    color: #000;
}

/* Scrollable partners list */
.mobile-partners-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 5px;
    -webkit-overflow-scrolling: touch;
}

/* City header */
.mobile-city-header {
    font-size: 24px;
    font-weight: bold;
    padding: 15px 10px 10px 10px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    color: #000;
}

.mobile-city-header:first-child {
    margin-top: 0;
}

/* Individual partner item */
.mobile-partner-item {
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    position: relative;
}

.mobile-partner-item .partner-info {
    display: flex;
    flex-direction: column;
}

.mobile-partner-item .partner-info h4 {
    margin: 0 0 8px 0;
    padding-right: 80px;
    /* Reserve space for city badge */
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.mobile-partner-item .partner-city {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-top: none;
    border-right: none;
    padding: 4px 12px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-partner-item .partner-info p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.mobile-partner-item .partner-links {
    display: flex;
    align-items: center;
    margin-top: 12px;
    gap: 15px;
}

.mobile-partner-item .partner-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.mobile-partner-item .partner-phone svg {
    width: 14px;
    height: 14px;
}

.mobile-partner-item .partner-web {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    padding: 0;
    transition: background-color 0.2s;
}

.mobile-partner-item .partner-web:hover {
    background-color: #f0f0f0;
}

.mobile-partner-item .partner-web svg {
    width: 18px;
    height: 18px;
}

/* Overlay backdrop */
.mobile-partners-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10000;
}

.mobile-partners-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Updated Partner Catalog Block Styles */
.partner-block-catalog {
    display: block;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 25px;
    /* Space for WWW icon */
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

.partner-block-catalog:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.partner-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.partner-controls {
    margin-top: 10px;
    /* NO position:relative here - so .partner-www-link positions relative to .partner-block-catalog */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partner-phone {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    z-index: 2;
    /* Clickable above overlay */
}

.partner-phone:hover {
    text-decoration: none;
    color: #000;
}

.partner-www-link {
    position: absolute;
    bottom: 8px;
    /* Fixed distance from bottom of .partner-block-catalog */
    right: 8px;
    /* Fixed distance from right of .partner-block-catalog */
    width: 45px;
    height: 45px;
    z-index: 2;
    /* Clickable above overlay */
}

.partner-www-link img {
    width: 100%;
    height: auto;
}

/* Dice Button Pulse Animation */
@keyframes dicePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
        transform: scale(1.05);
    }
}

.dice-button {
    position: relative;
    animation: dicePulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.dice-button:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
}

.dice-button img {
    display: block;
}