:root {
    --bg-color: #f5faff;
    --text-color: #333;
    --primary-cyan: #4dd0e1;
    --primary-teal: #4db6ac;
    --card-radius: 20px;
    --btn-radius: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    /* Soft watercolor background effect */
    background: radial-gradient(circle at top left, #e0f7fa 0%, transparent 40%),
                radial-gradient(circle at bottom right, #e8f5e9 0%, transparent 40%),
                #ffffff;
}

.app-container {
    width: 100%;
    max-width: 1024px; /* Increased from 480px for tablets */
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px; /* Space for bottom actions */
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0 auto; /* Center it */
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Header */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.nav-header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

/* Content */
.content {
    padding: 10px 20px;
    flex: 1;
}

.warning-banner {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Top Cards */
.top-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    flex: 1;
    background: #fff;
    border-radius: var(--card-radius);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    height: 140px;
}

.card-icon {
    margin-bottom: 10px;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.pet-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.game-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.card-label {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
}

.card-sublabel {
    margin-top: 5px;
    font-size: 12px;
    color: #006064;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    opacity: 0.9;
}

/* Specific Card Styles */
.card-cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}
.card-cyan .card-label {
    background-color: #4dd0e1;
}
.card-cyan .card-sublabel {
    position: absolute;
    top: 12px;
    left: 0;
    width: 100%;
    color: #006064;
    font-weight: bold;
    font-size: 13px;
    margin: 0;
    padding: 0 10px;
    background: transparent;
    pointer-events: none; /* Let clicks pass through */
}

.card-teal {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}
.card-teal .card-label {
    background-color: #4db6ac;
}

/* Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.divider-icon {
    transform: rotate(45deg);
}

/* Grid Menu */
.grid-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.grid-item {
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.item-purple {
    background: linear-gradient(to right, #e1bee7, #d1c4e9);
}

.item-red-empty {
    background: linear-gradient(to right, #ffcdd2, #ef9a9a);
    opacity: 0.8;
}

.item-red {
    background: linear-gradient(to right, #ffcdd2, #ef9a9a);
}

.item-blue {
    background: linear-gradient(to right, #b3e5fc, #81d4fa);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 50%;
}

.dot.active {
    background-color: #4dd0e1;
}

/* Bottom Actions */
.bottom-actions {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 1024px; /* Matches container max-width */
    display: flex;
    justify-content: space-around; /* Distribute evenly */
    padding: 0 40px;
    pointer-events: none; /* Let clicks pass through container */
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s;
}

.action-btn:active {
    transform: scale(0.95);
}

.btn-phone {
    background: linear-gradient(135deg, #d1c4e9 0%, #b39ddb 100%);
}

.btn-chat {
    background: linear-gradient(135deg, #81d4fa 0%, #4fc3f7 100%);
}

.btn-my {
    background: linear-gradient(135deg, #ffcc80 0%, #ff9800 100%);
}

.btn-share {
    background: linear-gradient(135deg, #81d4fa 0%, #03a9f4 100%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .grid-item {
    animation: fadeIn 0.5s ease-out forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
