/* ══════════════════════════════════════════
   HOME PAGE TILES
══════════════════════════════════════════ */

.tiles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.tile-card {
    border-radius: 20px !important;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    min-height: 200px;
}

.tile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25) !important;
}

.tile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

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

.tile-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.tile-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tile-card:hover .tile-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.tile-icon {
    font-size: 2.2rem;
    color: white;
}

.tile-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.tile-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.tile-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.tile-count {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.tile-count-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.tile-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tile-card:hover .tile-arrow {
    background: rgba(255,255,255,0.35);
    transform: translateX(5px);
}

/* ── Welcome Header ── */
.welcome-header {
    text-align: center;
    padding: 40px 20px 10px;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tiles-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .tile-card { min-height: 160px; }
    .tile-title { font-size: 1.4rem; }
    .tile-count { font-size: 2rem; }
    .welcome-title { font-size: 1.8rem; }
    .tile-body { padding: 20px; }
    .tile-icon-wrapper { width: 60px; height: 60px; }
    .tile-icon { font-size: 1.6rem; }
}