/* =============================================
 * Coded By - DARK LMNx9 (Limon Hossain)
 * GitHub - https://github.com/LMNx9-JOHNY
 * Website - https://dark.lmnx9.workers.dev
 * WhatsApp - https://wa.me/+8801882168975
 * Telegram - https://t.me/x_LMNx9
============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Mina", sans-serif;
}

:root {
    --hb-primary: #1b4d3e;
    --hb-dark-green: #0f3a2e;
    --hb-purple: #800080;
    --hb-deep-pink: #ff1493;
    --hb-purple-light: #f3e8f3;
    --hb-pink-light: #fff0f7;
    --hb-primary-light: #e8f3ef;

    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e1e1e1;

    --shadow-sm: 0 5px 15px rgba(27, 77, 62, 0.08);
    --shadow-md: 0 10px 25px rgba(128, 0, 128, 0.1);
    --shadow-lg: 0 20px 40px rgba(255, 20, 147, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--bg-light);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.main-nav #LOGO {
    width: clamp(80px, 15vw, 110px);
    height: auto;
    transition: var(--transition);
}

.main-nav #LOGO:hover {
    transform: scale(1.05);
}

.profile-img {
    width: clamp(36px, 8vw, 42px);
    height: clamp(36px, 8vw, 42px);
    border-radius: 50%;
    border: 2px solid var(--hb-primary);
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(27, 77, 62, 0.2);
}

.profile-img:hover {
    transform: scale(1.1);
    border-color: var(--hb-deep-pink);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: clamp(20px, 5vw, 40px);
    background: linear-gradient(
        135deg,
        var(--bg-white) 0%,
        var(--bg-light) 100%
    );
    padding: clamp(20px, 4vw, 30px) clamp(15px, 3vw, 20px);
    border-radius: clamp(30px, 8vw, 50px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(27, 77, 62, 0.03) 0%,
        rgba(128, 0, 128, 0.02) 50%,
        rgba(255, 20, 147, 0.01) 100%
    );
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.page-header h1 {
    font-size: clamp(28px, 8vw, 48px);
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0 5px;
    position: relative;
}

.page-header .subtitle {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 600;
    color: var(--hb-purple);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 2vw, 10px);
    flex-wrap: wrap;
}

.page-header .subtitle i {
    color: var(--hb-deep-pink);
    font-size: clamp(14px, 3vw, 20px);
}

.page-header .description {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 15px;
}

.page-header hr {
    border: none;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink),
        transparent
    );
    width: min(200px, 50%);
    margin: 15px auto;
}

.boss-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: white;
    padding: clamp(6px, 2vw, 8px) clamp(20px, 5vw, 30px);
    border-radius: 50px;
    font-size: clamp(14px, 3.5vw, 20px);
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.boss-badge i {
    margin-right: 8px;
    color: var(--hb-deep-pink);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
    }
}

.product-card {
    background: var(--bg-white);
    border-radius: clamp(20px, 4vw, 25px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--hb-deep-pink), var(--hb-purple));
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 20, 147, 0.3);
}

.product-content {
    padding: 15px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hb-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--hb-deep-pink);
    margin-bottom: 8px;
}

.product-price small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}

.product-description {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(128, 0, 128, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--hb-purple), var(--hb-deep-pink));
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.4);
}

.btn-buy i {
    font-size: 12px;
}

@media (max-width: 576px) {
    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 14px;
        min-height: 36px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-description {
        font-size: 11px;
        min-height: 30px;
        margin-bottom: 8px;
    }

    .btn-buy {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .product-image {
        height: 160px;
    }
}

.modal-content {
    border-radius: clamp(20px, 4vw, 30px);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background: linear-gradient(
        135deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
    color: white;
    border-bottom: none;
    padding: clamp(15px, 3vw, 25px) clamp(20px, 4vw, 30px);
}

.modal-header h5 {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .btn-close {
    background: white;
    opacity: 1;
}

.modal-body {
    padding: clamp(15px, 3vw, 25px) clamp(15px, 3vw, 20px);
}

.payment-methods {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    justify-content: center;
    margin-bottom: clamp(20px, 4vw, 25px);
    flex-wrap: wrap;
}

.payment-method-card {
    flex: 1;
    min-width: 120px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 15px;
    padding: clamp(12px, 2.5vw, 15px) clamp(10px, 2vw, 12px);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    border-color: var(--hb-primary);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.1);
}

.payment-method-card.active {
    border-color: var(--hb-deep-pink);
    background: var(--hb-pink-light);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.15);
}

.payment-method-card i {
    font-size: clamp(32px, 6vw, 42px);
    margin-bottom: 8px;
    color: var(--hb-primary);
}

.payment-method-card.active i {
    color: var(--hb-deep-pink);
}

.payment-method-card h4 {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 700;
    margin: 8px 0 4px;
    color: var(--text-dark);
}

.payment-method-card p {
    font-size: clamp(11px, 2.5vw, 12px);
    color: var(--text-muted);
    margin: 0;
}

.payment-method-card .check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--hb-deep-pink);
    font-size: clamp(14px, 3vw, 16px);
    display: none;
}

.payment-method-card.active .check-icon {
    display: block;
}

.number-card {
    background: linear-gradient(
        135deg,
        var(--hb-primary),
        var(--hb-purple),
        var(--hb-deep-pink)
    );
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    margin-bottom: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.number-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.number-card::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.number-card-title {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.number-card-number {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.number-card-number i {
    font-size: clamp(24px, 5vw, 32px);
}

.number-card-copy {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2.5vw, 15px);
    border-radius: 50px;
    font-size: clamp(12px, 2.5vw, 13px);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.number-card-copy:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.price-display {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: white;
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.price-display::before {
    content: "৳";
    position: absolute;
    bottom: -10px;
    right: 15px;
    font-size: clamp(60px, 12vw, 80px);
    opacity: 0.1;
    color: white;
}

.price-label {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 5px;
}

.price-amount {
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 900;
    line-height: 1.2;
}

.form-section {
    background: var(--bg-light);
    border-radius: 15px;
    padding: clamp(15px, 3vw, 20px);
    margin-top: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--hb-primary);
    margin-bottom: 6px;
    font-size: clamp(13px, 2.8vw, 14px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: var(--hb-deep-pink);
    font-size: clamp(14px, 3vw, 16px);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 15px);
    border: 2px solid var(--border-light);
    font-size: clamp(13px, 2.8vw, 14px);
    transition: var(--transition);
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--hb-purple);
    box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.1);
    outline: none;
}

.btn-submit {
    background: linear-gradient(135deg, var(--hb-primary), var(--hb-purple));
    color: white;
    border: none;
    padding: clamp(12px, 2.5vw, 15px);
    border-radius: 10px;
    font-size: clamp(16px, 3.5vw, 18px);
    font-weight: 700;
    width: 100%;
    margin-top: 20px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--hb-purple), var(--hb-deep-pink));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    font-size: clamp(14px, 3vw, 16px);
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(10px, 2vw, 15px);
    margin-bottom: 15px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: clamp(12px, 2.5vw, 15px) clamp(15px, 3vw, 20px);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    border-left: 4px solid var(--hb-primary);
    max-width: min(350px, 90vw);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--hb-primary);
}

.notification.error {
    border-left-color: #ff4444;
}

.notification i {
    font-size: clamp(20px, 4vw, 24px);
    margin-right: 12px;
}

.notification.success i {
    color: var(--hb-primary);
}

.notification.error i {
    color: #ff4444;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .payment-methods {
        gap: 8px;
    }

    .payment-method-card {
        min-width: 100px;
        padding: 10px;
    }

    .payment-method-card i {
        font-size: 28px;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .payment-method-card {
        min-width: 85px;
        padding: 8px 5px;
    }

    .payment-method-card i {
        font-size: 24px;
    }

    .payment-method-card h4 {
        font-size: 12px;
    }

    .payment-method-card p {
        font-size: 10px;
    }

    .number-card-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }

    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (hover: none) {
    .product-card:hover,
    .payment-method-card:hover,
    .btn-buy:hover,
    .btn-submit:hover {
        transform: none;
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
