:root {
    --bg-0: #0f1012;            /* page background */
    --bg-1: #16181c;            /* panels/cards */
    --bg-2: #1e2126;            /* elevated panels */
    --text-1: #ffffff;          /* main text */
    --text-2: #b0b3b8;          /* secondary text */
    --primary-color: #3b82f6;   /* primary accent */
    --primary-hover: #2563eb;
    --border: #2f3441;
    --card-shadow: 0 8px 24px rgba(0,0,0,0.25);
    --hover-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.digital-rent-page {
    font-family: 'Sarabun', system-ui, -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--text-1);
    /* min-height handled by body flex layout */
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 70%);
    padding: 60px 0 80px;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-section .lead {
    color: var(--text-2);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
}

.search-input-group {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.search-input-group:focus-within {
    background: radial-gradient(circle at top left, rgba(59,130,246,0.18), rgba(15,16,18,0.95));
    border-color: rgba(129,140,248,0.9);
    box-shadow: 0 0 30px rgba(59,130,246,0.35);
}

.search-input-group::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free","Font Awesome 5 Free","FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 22px;
    color: rgba(255,255,255,0.45);
    pointer-events: none;
    font-size: 0.95rem;
}

.search-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 14px 24px 14px 48px;
    font-size: 1.1rem;
    flex-grow: 1;
    outline: none;
}

.search-input-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input-group button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 11px 30px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 10px 24px rgba(37,99,235,0.55);
    white-space: nowrap;
}

.search-input-group button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-1);
    position: relative;
    text-align: center;
}

.section-title i {
    color: var(--primary-color);
}

/* Category Filter */
.category-filter {
    position: relative;
    z-index: 10;
    margin-bottom: 50px;
    padding: 10px 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.category-btn:hover {
    background: var(--bg-1);
    color: #fff;
    border-color: var(--text-2);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Tool Card */
.tool-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255,255,255,0.2);
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-wrapper img, 
.tool-icon-wrapper .placeholder-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-icon-wrapper img {
    transform: scale(1.06);
}

.tool-icon-wrapper .placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-2);
}

.tool-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tool-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 16, 18, 0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 4px;
}

.tool-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.tool-status-indicator {
    color: #22c55e;
    font-size: 0.95rem;
}

.tool-desc {
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    gap: 8px;
}

.tool-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.tool-meta-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.tool-price {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #16a34a;
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.85rem;
}

.tool-price small {
    font-size: 0.75rem;
    color: #dcfce7;
    font-weight: 500;
    margin-left: 4px;
}

.tool-duration-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-weight: 600;
    font-size: 0.8rem;
}

.btn-card-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-card-action:hover {
    background: var(--bg-2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-card-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    padding: 0 24px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-card-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
    color: var(--text-2);
}

.empty-state h4 {
    color: var(--text-1);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.6rem; }
    .search-box { margin-top: 30px; }
}

@media (max-width: 768px) {
    .tool-card {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 50px;
    }
    .hero-section h1 {
        font-size: 2.1rem;
    }
    .search-box {
        margin-top: 24px;
    }
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        padding: 8px;
    }
    .search-input-group::before {
        display: none;
    }
    .search-input-group input {
        padding: 12px 18px;
        font-size: 1rem;
    }
    .search-input-group button {
        padding: 9px 20px;
        width: 100%;
        margin-top: 6px;
    }
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    .tool-card {
        flex-direction: column;
        align-items: stretch;
    }
    .tool-icon-wrapper {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }
    .btn-card-primary {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 8px;
    }
}

@media (min-width: 992px) {
    .tool-meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    .tool-meta-left {
        justify-content: flex-start;
        width: auto;
    }
    .tool-meta-right {
        justify-content: flex-end;
        margin-left: auto;
        width: auto;
    }
    .digital-rent-page .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }
}


/* Tool Details Page */
.tool-details-page {
    font-family: 'Sarabun', system-ui, -apple-system, sans-serif;
    color: var(--text-1);
    position: relative;
    z-index: 10;
}

.tool-details-page .breadcrumb-item a {
    color: var(--text-1);
    transition: color 0.2s;
    text-decoration: none;
}

.tool-details-page .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.tool-details-page .breadcrumb-item.active {
    color: var(--text-2);
}

.tool-details-page .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-2);
}

/* Image Section */
.tool-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-1);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    aspect-ratio: 16/9;
}

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

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

/* Content Section */
.tool-details-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    line-height: 1.2;
}

.tool-details-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    margin-left: 0;
}

.meta-row {
    gap: 0.75rem;
}

.meta-row .tool-details-category,
.meta-row .tool-category,
.meta-row .status-badge {
    margin-bottom: 0;
}

.status-badge.available {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.full {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Info Cards */
.info-card {
    background: rgba(22, 24, 28, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.info-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.info-card h5 i {
    color: var(--primary-color);
}

.info-text {
    color: var(--text-2);
    line-height: 1.7;
    font-size: 1rem;
}

/* Form Elements */
.form-control, .form-select {
    background-color: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-2);
    border-color: var(--primary-color);
    color: var(--text-1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.btn-rent {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-rent:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    filter: brightness(1.1);
}

.btn-rent:disabled {
    background: var(--bg-2);
    color: var(--text-2);
    cursor: not-allowed;
    box-shadow: none;
}

/* Reviews */
.review-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: transform 0.2s ease;
}

.review-card:hover {
    border-color: #4b5563;
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-2);
}

.text-muted-light {
    color: #e5e7eb !important;
}

.input-group-text {
    background-color: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text-1);
    justify-content: center;
}

.form-select.text-center {
    text-align: center;
    text-align-last: center;
}

#rental_duration {
    text-align: center;
}

.info-card h5,
.info-card .info-text {
    text-align: center;
}

select.form-select option {
    text-align: center;
}

body > main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.digital-rent-page {
    flex-grow: 1;
}

.empty-state {
    min-height: 50vh;
}

.tool-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    line-height: 1.2;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
}

.card-header-custom {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body-custom {
    padding: 1.5rem;
}

.payment-container {
    max-width: 500px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.glass-card {
    background: #1e293b;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    position: relative;
}

.product-ticket {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-ticket::before,
.product-ticket::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #1e293b;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.product-ticket::before {
    left: -10px;
}
.product-ticket::after {
    right: -10px;
}

.price-tag {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: right;
}

.wallet-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.wallet-card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.wallet-balance {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
}

.btn-pay {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-pay:active:not(:disabled) {
    transform: translateY(0);
}

.btn-pay:disabled {
    background: #334155;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-topup {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-topup:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.status-badge {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.status-ready {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-not-ready {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.page-header {
    background: linear-gradient(180deg, rgba(22,24,30,0.8) 0%, rgba(15,16,18,0) 100%);
    padding: 40px 0 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.stats-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    min-height: 120px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--hover-shadow);
    border-color: rgba(59, 130, 246, 0.25);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.stats-card:hover {
    transform: none;
    box-shadow: var(--hover-shadow);
    border-color: rgba(59, 130, 246, 0.3);
}

.stats-card:hover::before {
    opacity: 1;
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.stats-label {
    color: var(--text-2);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    gap: 10px;
    padding-bottom: 10px;
    position: sticky;
    top: 10px;
    z-index: 50;
    background: var(--bg-0);
}

.nav-tabs .nav-link {
    color: var(--text-2);
    border: 1px solid transparent;
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-weight: 600;
    box-shadow: none;
}

.rental-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rental-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--hover-shadow);
    border-color: rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.rental-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: var(--bg-2);
    overflow: hidden;
}

.rental-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rental-card:hover .rental-img-wrapper img {
    transform: scale(1.1);
}

.rental-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rental-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    line-height: 1.4;
}

.rental-meta {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    padding: 8px 12px;
    border-radius: 8px;
    width: fit-content;
}

.btn-action {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-action.pending {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.2);
    cursor: not-allowed;
    opacity: 0.85;
}

#rentalTabsContent {
    min-height: 240px;
}

#rentalTabsContent .tab-pane {
    display: none;
    opacity: 0;
    position: relative;
}

#rentalTabsContent .tab-pane.active {
    display: block;
    opacity: 1;
}

.download-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-card {
    background: var(--bg-1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.download-icon {
    width: 100px;
    height: 100px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.tool-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-box {
    background: var(--bg-2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
    border: 1px solid var(--border);
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-1);
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: white;
    filter: brightness(1.1);
}

.btn-back {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-top: 1.5rem;
    display: inline-block;
}

.btn-back:hover {
    color: var(--text-1);
}
