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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 30px 16px;
}

.container {
    max-width: 640px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 28px;
    color: white;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1rem;
    opacity: 0.88;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 18px;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    color: #333;
}

input[type="text"]:focus {
    border-color: #667eea;
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.message {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.message.hidden {
    display: none;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.list-header h2 {
    margin-bottom: 0;
}

.refresh-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #f0f0f0;
    color: #555;
    border-radius: 8px;
}

.refresh-btn:hover {
    background: #e0e0e0;
    opacity: 1;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}

.store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #eef0ff;
    transition: background 0.15s;
    animation: fadeIn 0.3s ease;
}

.store-item:hover {
    background: #eef0ff;
}

.store-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.store-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.store-meta {
    font-size: 0.78rem;
    color: #999;
}

.delete-btn {
    background: transparent;
    color: #e57373;
    border: 1px solid #e57373;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 7px;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
    opacity: 1;
    transform: none;
}

.loading, .empty-state {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 0.95rem;
}

.store-count {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

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