* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Hero Header */
.hero-header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-user-section {
    position: absolute;
    top: 20px;
    right: 20px;
}

.hero-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}

.hero-user-name {
    font-weight: 500;
    color: white;
    font-size: 1rem;
}

.hero-btn-logout {
    padding: 8px 18px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn-logout:hover {
    background: #c82333;
    transform: scale(1.05);
}

.hero-logo-left {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
    animation: fadeInUp 0.8s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.main-header {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    flex: 1;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066cc;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
}

.panel {
    display: none;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.panel.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.panel h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.upload-section {
    margin-bottom: 25px;
}

.upload-section label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.file-input {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
}

.btn-warning {
    background: #f6ad55;
    color: white;
}

.btn-warning:hover {
    background: #ed8936;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.preview {
    margin: 20px 0;
    text-align: center;
}

.preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    border: 3px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    animation: slideIn 0.3s;
}

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

.status-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.status-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.status-info {
    background: #bee3f8;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border: 3px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 12px;
    background: white;
}

.gallery-item-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    word-break: break-word;
}

.confidence {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.controls h3 {
    color: #333;
    margin: 0;
}

.file-count {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.group-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.group-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.create-group-form {
    margin-bottom: 20px;
}

.groups-list {
    margin-top: 20px;
}

.group-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.group-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.group-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.group-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.group-actions button {
    margin-left: 5px;
}

#modelsLoading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#modelsLoading.hidden {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 35px;
    background: #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 10px;
}

/* Admin Page Styles */
.admin-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.card-header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 25px 30px;
}

.card-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.card-header p {
    opacity: 0.95;
    font-size: 1rem;
}

.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.create-group-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.upload-area {
    margin-bottom: 25px;
}

.upload-label {
    display: block;
    padding: 50px;
    border: 3px dashed #d0d0d0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-label:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.upload-text strong {
    color: #0066cc;
    font-size: 1.1rem;
}

.upload-hint {
    color: #888;
    margin-top: 8px;
}

.file-input-hidden {
    display: none;
}

.file-count {
    margin-top: 12px;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-logout, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
}

.btn-primary:disabled, .btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.progress-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.progress-card h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.groups-list {
    margin-top: 25px;
}

/* Status Messages */
.status {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Models Loading */
#modelsLoading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0066cc;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#modelsLoading.hidden {
    display: none;
}

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

/* Admin Management Styles */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.member-card:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.member-card.is-admin {
    background: #e3f2fd;
    border-color: #0066cc;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.member-details {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.member-email {
    font-size: 0.85rem;
    color: #666;
}

.member-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #0066cc;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
}

.member-actions {
    display: flex;
    gap: 8px;
}

.btn-make-admin, .btn-remove-admin {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-make-admin {
    background: #48bb78;
    color: white;
}

.btn-make-admin:hover {
    background: #38a169;
}

.btn-remove-admin {
    background: #f56565;
    color: white;
}

.btn-remove-admin:hover {
    background: #e53e3e;
}

.admins-list {
    margin-top: 15px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
}

.admin-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.admin-details h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
}

.admin-details p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    body {
        padding: 15px;
    }

    .container {
        max-width: 100%;
    }

    .header h1 {
        font-size: 2rem;
    }

    .panel {
        padding: 25px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .groups-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        padding: 0;
        background: #f5f7fa;
    }

    .hero-header {
        padding: 40px 15px;
    }

    .hero-user-section {
        position: static;
        margin-bottom: 15px;
    }

    .hero-user-info {
        justify-content: center;
        flex-wrap: wrap;
        padding: 8px 15px;
    }

    .hero-user-name {
        font-size: 0.9rem;
    }

    .hero-logo-left {
        position: static;
        transform: none;
        height: 70px;
        margin: 0 auto 15px;
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .container {
        padding: 10px;
    }

    .header {
        margin-bottom: 20px;
        padding: 15px 10px;
    }

    .header h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .header p {
        font-size: 0.95rem;
    }

    .user-info {
        position: static;
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .user-info img {
        width: 32px !important;
        height: 32px !important;
    }

    .user-info span {
        font-size: 0.85rem;
        flex: 1;
        margin: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-info .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-left: 5px !important;
        margin-right: 0 !important;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }

    .tab-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .panel {
        padding: 15px;
        border-radius: 10px;
    }

    .panel h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .panel h3 {
        font-size: 1.1rem;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    /* Group Section */
    .group-section {
        margin-bottom: 25px;
    }

    .create-group-form {
        flex-direction: column;
        gap: 10px;
    }

    .form-input,
    .form-select {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .upload-section {
        margin-top: 15px;
    }

    .upload-section label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .file-input {
        font-size: 0.85rem;
        padding: 10px;
    }

    .file-count {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    /* Groups List */
    .groups-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .group-item {
        padding: 12px;
    }

    .group-item h4 {
        font-size: 1rem;
    }

    .group-item p {
        font-size: 0.85rem;
    }

    .group-stats {
        font-size: 0.8rem;
        gap: 8px;
    }

    .group-actions {
        flex-direction: column;
        gap: 6px;
        margin-top: 10px;
    }

    .group-actions .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .btn-primary,
    .btn-success,
    .btn-warning,
    .btn-danger,
    .btn-secondary {
        width: 100%;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .gallery-item img {
        height: 140px;
    }

    .gallery-item-overlay {
        padding: 8px;
    }

    .match-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Controls */
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .controls > div {
        width: 100%;
    }

    .controls input[type="file"] {
        font-size: 0.85rem;
    }

    .selfie-preview {
        margin: 15px 0;
    }

    .selfie-preview img {
        max-width: 150px;
        max-height: 150px;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Status Messages */
    .status {
        padding: 12px;
        font-size: 0.9rem;
        margin: 12px 0;
    }

    /* Progress Bar */
    .progress-bar {
        height: 30px;
        margin: 15px 0;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        margin-top: 30px;
        font-size: 0.85rem;
        padding: 0 10px;
    }

    /* Models Loading */
    #modelsLoading {
        font-size: 0.9rem;
        padding: 12px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .header p {
        font-size: 0.85rem;
    }

    .panel {
        padding: 12px;
    }

    .panel h2 {
        font-size: 1.2rem;
    }

    .panel h3 {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item img {
        height: 120px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

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

    .user-info span {
        font-size: 0.8rem;
    }
}
