/* ============================================================================
   NFT Minting Section - Modern Design
   Inspired by top NFT projects like Azuki, Moonbirds, Doodles
   ============================================================================ */

/* Hero Section */
.nft-hero-section {
    position: relative;
    min-height: auto;
    display: block;
    padding: 2rem 0;
    margin: 1.5rem 0;
    overflow: visible;
}

/* Animated Background */
.nft-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg,
        #F0FDF4 0%,
        #E0F2F1 25%,
        #D1FAE5 50%,
        #B2F5EA 75%,
        #C7F9CC 100%
    );
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nft-animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(132, 204, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.nft-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Hero Title */
.nft-hero-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.nft-main-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title-gradient {
    background: linear-gradient(135deg, #84CC16 0%, #14B8A6 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(132, 204, 22, 0.5));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 30px rgba(20, 184, 166, 0.8));
    }
}

.nft-main-subtitle {
    font-size: 1.2rem;
    color: rgba(22, 101, 52, 0.85);
    font-weight: 500;
}

/* Main Minting Area */
.nft-mint-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 3D NFT Showcase */
.nft-showcase-3d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nft-card-3d {
    perspective: 1500px;
    width: 100%;
    max-width: 500px;
}

.nft-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateY(5deg);
    }
    75% {
        transform: translateY(-10px) rotateY(-5deg);
    }
}

.nft-card-3d:hover .nft-card-inner {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.nft-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(167, 139, 250, 0.4),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.nft-glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 28px;
    background: linear-gradient(135deg, #a78bfa, #ec4899, #f59e0b);
    opacity: 0.3;
    filter: blur(30px);
    animation: glowPulseRing 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulseRing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.nft-floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(167, 139, 250, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(236, 72, 153, 0.8), transparent),
        radial-gradient(3px 3px at 80% 10%, rgba(245, 158, 11, 0.8), transparent);
    background-size: 100% 100%;
    animation: floatingParticles 4s ease-in-out infinite;
}

@keyframes floatingParticles {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

/* NFT Badges */
.nft-badges-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nft-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-primary {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #a78bfa;
    color: #a78bfa;
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    border-color: #ec4899;
    color: #ec4899;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(167, 139, 250, 0.5);
    }
}

.nft-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.6);
}

/* Mint Control Panel */
.nft-mint-control {
    position: relative;
}

.mint-panel-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(167, 139, 250, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Stats Dashboard */
.mint-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.15);
    border-color: #a78bfa;
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.stat-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.8rem;
}

.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a78bfa 0%, #8b5cf6 100%);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Wallet Section */
.mint-wallet-section {
    margin-bottom: 1.2rem;
}

.wallet-status-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    border: 2px solid #fbbf24;
    margin-bottom: 1rem;
}

.wallet-icon-display {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 14px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.wallet-info-display {
    flex: 1;
}

.wallet-label {
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.wallet-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #78350f;
}

.wallet-address-display-hero {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 12px;
    border: 2px solid #10b981;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #065f46;
    font-weight: 600;
}

.wallet-address-display-hero i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Mint Status */
.mint-status-display {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mint-status-display.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.mint-status-display.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.mint-status-display.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #78350f;
}

.mint-status-display.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    color: #1e3a8a;
}

.status-icon-hero {
    font-size: 1.5rem;
}

.status-message-hero {
    flex: 1;
    font-weight: 600;
    line-height: 1.5;
}

/* Mint Button - Hero */
.mint-button-hero {
    position: relative;
    width: 100%;
    padding: 1.8rem 2.5rem;
    border: none;
    border-radius: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.mint-btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    z-index: 0;
    transition: all 0.3s ease;
}

.mint-button-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.mint-button-hero:hover::before {
    width: 300px;
    height: 300px;
}

.mint-button-hero:hover .mint-btn-bg {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    transform: scale(1.05);
}

.mint-btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mint-button-hero:active {
    transform: scale(0.98);
}

.mint-button-hero:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contract Info */
.contract-info-minimal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 0.9rem;
}

.contract-label {
    color: #64748b;
    font-weight: 600;
}

.contract-address-mini {
    flex: 1;
    color: #1e293b;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.btn-copy-inline,
.btn-info-inline {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-copy-inline:hover {
    background: #a78bfa;
    color: white;
    transform: scale(1.1);
}

.btn-info-inline:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

/* My NFTs Gallery Section */
/* Gallery Section inside NFT Hero */
.gallery-section {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.gallery-title h2 i {
    color: #a78bfa;
    margin-right: 1rem;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.my-nfts-gallery {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.gallery-loading i {
    font-size: 3rem;
    color: #a78bfa;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.gallery-loading p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* NFT Gallery Grid */
/* NFT Gallery Grid - Desktop 5 columns */
.my-nfts-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.nfts-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.nft-gallery-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
}

.nft-gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.nft-gallery-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.nft-gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nft-gallery-item:hover .nft-gallery-image img {
    transform: scale(1.1);
}

.nft-gallery-info {
    padding: 1.8rem;
}

.nft-gallery-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nft-gallery-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
}

.nft-gallery-id {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.nft-gallery-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.nft-gallery-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.nft-gallery-attribute {
    background: #f8fafc;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.nft-attribute-type {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.nft-attribute-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 700;
}

.nft-gallery-actions {
    display: flex;
    gap: 0.8rem;
}

.btn-view-nft-gallery {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-view-nft-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.gallery-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.gallery-empty p {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.btn-start-minting-gallery {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-start-minting-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nft-mint-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mint-stats-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .nft-main-title {
        font-size: 2.8rem;
    }

    .my-nfts-gallery,
    .nfts-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nft-hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .nft-main-title {
        font-size: 2.2rem;
    }

    .nft-main-subtitle {
        font-size: 1rem;
    }

    .mint-stats-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .mint-panel-card {
        padding: 1.8rem;
    }

    .mint-button-hero {
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
    }

    .my-nfts-gallery,
    .nfts-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nft-main-title {
        font-size: 1.8rem;
    }

    .mint-panel-card {
        padding: 1.5rem;
    }

    .contract-info-minimal {
        flex-wrap: wrap;
    }

    .gallery-title h2 {
        font-size: 2rem;
    }

    .my-nfts-gallery,
    .nfts-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   NFT Info Modal Enhancements
   ============================================ */

/* Contract Details Grid */
.contract-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.1);
    border-color: #c7d2fe;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.detail-icon i {
    font-size: 1.3rem;
    color: white;
}

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

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.detail-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.contract-address-full {
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #7c3aed;
    word-break: break-all;
}

.btn-copy-inline-small {
    padding: 0.5rem 0.8rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-copy-inline-small:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.link-external {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-external:hover {
    color: #7c3aed;
}

.link-external i {
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

/* NFT Rules Grid */
.nft-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.rule-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 12px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #8b5cf6;
}

.rule-card.highlight {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #8b5cf6;
}

.rule-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.rule-card.highlight .rule-icon {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
        transform: scale(1.05);
    }
}

.rule-icon i {
    font-size: 1.6rem;
    color: white;
}

.rule-content {
    flex: 1;
}

.rule-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.rule-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Mint Steps Modern */
.mint-steps-modern {
    margin-top: 1.5rem;
    position: relative;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    z-index: 2;
    position: relative;
}

.step-content {
    flex: 1;
    padding: 0.5rem 0;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.step-connector {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #8b5cf6 0%, #c7d2fe 100%);
    margin-left: 23.5px;
    position: relative;
    z-index: 1;
}

/* Quick Action Button */
.nft-info-action {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.btn-action-primary {
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.btn-action-primary i {
    font-size: 1.3rem;
}

/* Modal Section Spacing */
.nft-info-section {
    margin-bottom: 2.5rem;
}

.nft-info-section:last-child {
    margin-bottom: 0;
}

.nft-info-section h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nft-info-section h4 i {
    color: #8b5cf6;
}

/* Responsive Adjustments for Modal */
@media (max-width: 768px) {
    .contract-details-grid {
        grid-template-columns: 1fr;
    }

    .nft-rules-grid {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 1.2rem;
    }

    .rule-card {
        padding: 1.5rem 1rem;
    }

    .step-item {
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-connector {
        margin-left: 19px;
        height: 30px;
    }

    .btn-action-primary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
}

/* Compact Stats */
.mint-stats-compact {
    margin-bottom: 1.2rem;
}

.stat-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 14px;
    border: 2px solid #7dd3fc;
}

.stat-icon-compact {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stat-icon-compact i {
    font-size: 1.2rem;
    color: white;
}

.stat-content-compact {
    flex: 1;
}

.stat-label-compact {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.stat-value-compact {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.stat-progress-bar-compact {
    width: 100%;
    height: 6px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.stat-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ============================================================================
   NEW COMPACT NFT LAYOUT
   ============================================================================ */

/* Main container: Left-Right layout */
.nft-mint-compact {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Left: My NFT Collection */
.nft-collection-left {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.collection-header h3 {
    font-size: 1.25rem;
    color: #1F2937;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collection-header h3 i {
    color: #84CC16;
}

.my-nfts-gallery-compact {
    min-height: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
}

/* When loading/empty state */
.my-nfts-gallery-compact:has(.gallery-loading) {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .my-nfts-gallery-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

.gallery-loading {
    text-align: center;
    color: #6B7280;
}

.gallery-loading i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Right: Mint Section */
.nft-mint-right {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Total Minted Progress */
.total-minted-section {
    text-align: center;
    padding-bottom: 0.5rem;
}

.minted-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.minted-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.minted-progress-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
}

.minted-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #84CC16 0%, #14B8A6 100%);
    transition: width 0.3s ease;
    border-radius: 8px;
}

/* NFT Image */
.nft-image-container {
    margin: 0.5rem 0;
}

.nft-image-compact {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nft-image-compact:hover {
    transform: scale(1.02);
}

/* Wallet Status */
.wallet-status-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #F3F4F6;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4B5563;
}

.wallet-status-compact i {
    color: #84CC16;
}

.wallet-address-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ECFDF5;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #065F46;
    font-family: 'Courier New', monospace;
}

.wallet-address-compact i {
    color: #10B981;
}

/* Mint Status Message */
.mint-status-compact {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.mint-status-compact.hidden {
    display: none;
}

/* Mint Button */
.mint-btn-compact {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mint-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.4);
}

.mint-btn-compact:active {
    transform: translateY(0);
}

.mint-btn-compact:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
}

/* Footer Links */
.nft-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #E5E7EB;
}

.contract-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.contract-link code {
    background: #F3F4F6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.contract-link .btn-icon {
    background: transparent;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contract-link .btn-icon:hover {
    background: #F3F4F6;
    border-color: #84CC16;
    color: #84CC16;
}

.nft-info-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #84CC16;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nft-info-link:hover {
    color: #65A30D;
}

/* Responsive */
@media (max-width: 1024px) {
    .nft-mint-compact {
        grid-template-columns: 1fr;
    }
    
    .nft-mint-right {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nft-mint-compact {
        padding: 1rem;
    }
    
    .nft-collection-left,
    .nft-mint-right {
        padding: 1rem;
    }
}
